I have a memory problem which it exceeds a maximum limit and my application
will suspend to restart my service of this application, after that everything
is okay.
so i need ask about,
How can I know if my Garbage Collection is working or not??
How can I force Garbage Collection to work???
How can I force Garbage Collection to stop???
if there are addetional way to trace Memory performance beside Runtime class??
Alex - 19 Dec 2005 07:54 GMT
You can use a profiler to trace it. Check out the following threads:
http://www.javakb.com/Uwe/Misc/SR.aspx?p=memory+profiler
Ben_ - 19 Dec 2005 16:52 GMT
You can begin here :
http://java.sun.com/performance/reference/whitepapers/tuning.html.
Cos - 20 Dec 2005 20:52 GMT
Besides, I'd suggest you to switch to latest release of Java5 or latest
build of future Java6, which is available from www.java.net: there are
a lot of greate improvements in GC performance and ergonomics since
1.4.2 and even 1.5.0
--
Take care,
Cos