|
Is this statement true, false, or poorly formulated:
"In Java, memory leaks must always be related somehow to a long-lived object."
In this context, I am referring simply to regular objects, and not to system resources in general (file descriptors, and...
Started by John O on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Depending on the specifica of long-lived, and the inclusion/exclusion....
Interesting article here.
Be related somehow to a long-lived object."
A long-lived object is a Singleton, or something that will live.
|
|
I've read some articles on the web and some questions on StackOverFlow, but no one seems to have a definite answer over a) If google uses Long Lived TCP connections for Gmail, Mail etc, and b) If using it in a custom app will drain battery life , and ...
Started by Faisal Abid on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
On a regular interval (assume the same "refresh" rate as for the long-lived connection "trickle") : each a tool like tcpdump or wireshark on your router or other machine to determine how long the TCP.
|
|
I keep a JMS connection always open, because I have a MessageListener on it.
Is it a common need to worry about minimizing maintenance of applications with long lived JMS connections?
I was thinking something along the lines of try to recover from some...
Answer Snippets (Read the full thread at stackoverflow):
This is a TCP....
If this is the case, send a message every hour or so or, if you can, enable TCP_KEEPALIVE .
Most firewalls will cut an "idle" connection after a couple of hours .
Your will need to handle two cases:
Firewall between you and the JMS server .
|
Ask your Facebook Friends
|
We have a discussion going on in my team at the moment, and I'd be interested in other views. Suppose we have a RESTful web service whose role is to annotate documents by applying a variety of analysis algorithms and services. The basic interaction in...
Started by Ian Dickinson on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
You don't want them doing on AnnotationRequests so ....
They can't know and you can't predict how long it will take.
In which case, perhaps your REST" is imponderable.
Different results, so long as the calls themselves are side-effect free.
|
|
.NET 3.5, I've got some classes which stores up to 1MB of strings. Even though I need the object for a really long time I don't need to store the string for a long time.
How can I truly remove the string from memory without disposing the parent object...
Started by dr. evil on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Have you considered WeakReference ?
It's possible that you're referencing or copying the string somewhere else... .
And see if Flyweight fits you.
Assigning null to a private variable will do just fine .
IDisposable has nothing to do with memory management.
|
|
We are using NHibernate to manage our persistence in a complex modular windows forms application - but one thought keeps bothering me. We currently open a session on launch and open all objects through that session. I am worried that all loaded objects...
Started by Ewan Makepeace on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
This one....
I can see a couple of alternatives:
Eager-load the object tree (which, from what I can gather from the documentation is the default) Detach the objects, intercept the "click" event, and load the data from the database then, with a new session .
|
|
When you need to have very small objects, say that contains 2 float property, and you will have millions of them that aren't gonna be "destroyed" right away, are structs a better choice or classes?
Like in xna as a library, there are point3s, etc as structs...
Started by Joan Venge on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Not that clear how, if at all, this heap defrags itself, however for very long lived objects that perhaps long-term effects that may not be apparent by such a measurement, be aware that such arrays.
|
|
I've looked into COM servers and Windows services but I'm not sure what best suits my purposes or how to do it. What I want is something that can be started and run for an indefinite amount of time which holds an object so that other processes or applications...
Started by crazynoodle7 on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Hard....
You seem to be asking for two things -
a way to host a long-running, persistent, but it was always pretty slim.
As long as you know you can manipulate the serial a native solution.
But i understand you can create services with .net.
|
|
I'm working on a web-based application that is intended to have at least a 6 year lifetime. Once the application is delivered, chances are that it won't be modified during that time frame.
We're considering using the asp.net MVC framework and jQuery, ...
Started by chris on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
A final consideration: please note that 6 years are a very long time in the wild web world.
Opinion).
|
|
I am very interested in streaming data for web-applications. I have tried out some javascript libraries, but the hacks and browser-incompatibilities drive me crazy ! HTML5 will hopefully standardize streaming data, but until then, hopefully I can resort...
Started by I.devries on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
When you're loading things that Flash intuitively understands (MP3s, JPGs, SWFs and so on) then you would normally use a Loader , and then too you can ... .
Though I'm not familiar with what you're doing, it sounds like you should be looking at URLStream .
|