[ale] OT: java gc

Denny Chambers dchambers at bugfixer.net
Tue Mar 9 23:04:33 EST 2004


You probably will want to run a profiler on you code. This help you find 
where the leak is occuring. There are several free ones out there. You 
can also download JProfiler 
(http://www.ej-technologies.com/products/jprofiler/overview.html) which 
gives you a trial period. It has some nice tool to what the heap, and 
see what instances are being created and cleaned up.

Denny

miguel wrote:

>hello alers..
>
>need your opinion:
>i have a java program that runs for several days then it begins
>to throw out of memory exceptions. its a small multi-threaded
>app.server. i don't consider it that memory intensive.
>it seems that over the long run the gc is not freeing up enough
>of the heap. i played with the -Xmx param and obviously all it does
>is to delay the exceptions. other than system.gc calls and assigning
>objects to null are there other ways i can "hint" the gc to "please
>hurry and free up some of the heap" before more allocations take place?
>i guess tuning with the -X heap settings i can have the jvm call the gc
>more often?
>
>tia
>-miguel
>
>
>_______________________________________________
>Ale mailing list
>Ale at ale.org
>http://www.ale.org/mailman/listinfo/ale
>
>
>  
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3190 bytes
Desc: S/MIME Cryptographic Signature




More information about the Ale mailing list