Re: Memory Leak

"Christopher G. Stach II" <[email protected]> Fri, 26 Feb 2010 01:44:54 -0600 (CST)
Newsgroups gmane.comp.db.mysql.java
Message-ID <[email protected]>
I'm not a MySQL developer, but...

----- "William Taylor" <[email protected]> wrote:

> Has this issue ever been resolved? 
>  http://bugs.mysql.com/bug.php?id=10954

It's not a bug. WTF? That is from 2005.

> Working on some code where I select 4 million rows and store the
> results in a short array.

Don't do that.

> java grows to 455M and never lets go of the memory.

Never? Do you have a test case that shows that *proper* code doesn't allow the JVM to GC? If you select 4M rows and store them in memory, do you expect them to be stored in fairy dust? Do you have profiler output? If you have a negative test case and you still have a bunch of RAM unaccounted for, that's a bug report for Sun or whoever makes your JVM.

-- 
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]