I have allocated a MaxPermSize of 256 M. Besides if it were a Perm Size
thing, the heap would not be 100% utilized, Would it?
I see that the heap is constantly utilized at 99% before the OOM
occurs.
-Paddy
On Mon, 20 Jun 2005 22:31:07 -0700, paddy_ganti wrote:
> I have allocated a MaxPermSize of 256 M. Besides if it were a Perm Size
> thing, the heap would not be 100% utilized, Would it?
>
> I see that the heap is constantly utilized at 99% before the OOM
> occurs.
Could you have a "memory leak" by keeping references way past the
natural expiration date? It can be frustratingly easy to have "dangling
references". Just remember, anything reachable by means of a static member
of any class will remain reachable for the entire lifetime of your
application.
I once worked on a project that tried to cache objects (only a limited
number could exist, and often the same object would be requested more then
once). To cut a long and painful story short: It is much better to
allocate and destroy the same object 10000 times then to try and be smart,
and keep it around after it should have died.

Signature
In pioneer days they used oxen for heavy pulling, and when one ox
couldn't budge a log, they didn't try to grow a larger ox. We shouldn't
be trying for bigger computers, but for more systems of computers.
--- Rear Admiral Grace Murray Hopper
paddy_ganti@yahoo.com - 21 Jun 2005 15:29 GMT
Stefan,
Thats exactly what I feared. I will look into static members throughout
my codebase but this forensic effort of determining exactly which
object is leaky might take some specialised tools and time.
-Paddy
Alan Krueger - 22 Jun 2005 00:00 GMT
> Thats exactly what I feared. I will look into static members throughout
> my codebase but this forensic effort of determining exactly which
> object is leaky might take some specialised tools and time.
I'd recommend JProfiler for that.
http://www.ej-technologies.com/products/jprofiler/overview.html
paddy_ganti@yahoo.com - 22 Jun 2005 01:08 GMT
Thank You Alan. Appreciate it.
I just downloaded it and seems to offer a great potential in solving
these kind of problems.
-Paddy
*- The sufficiency of my merit is to know that my merit is not
sufficient-*