Re: Memory Leak

"Christopher G. Stach II" <[email protected]> Fri, 26 Feb 2010 02:57:50 -0600 (CST)
Newsgroups gmane.comp.db.mysql.java
Message-ID <[email protected]>
----- "William Taylor" <[email protected]> wrote:

> each output after that shows ~255MB of ram used.
> regardless of how long you let the program run the GC never reclaims
> the memory.

That depends on a lot of things.

> top says java is using ~289MB ram.
> mysqld shows ~7.4mb ram

Which collector are you using? What does GC output look like when you run with ``-verbose:gc -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps''? The GC could ostensibly be performing as it should. What does the class histogram look like if you dump/inspect the heap?

-- 
Christopher G. Stach II
http://ldsys.net/~cgs/

-- 
MySQL Java Mailing List
For list archives: http://lists.mysql.com/java
To unsubscribe:    http://lists.mysql.com/[email protected]