This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
memory leaks and java ...
- From: "Erik Poupaert" <erik dot poupaert at chello dot be>
- To: "GCJ Java" <java at gcc dot gnu dot org>
- Date: Fri, 21 Mar 2003 23:33:24 +0100
- Subject: memory leaks and java ...
I may also have fallen victim to the myth that automatic garbage collection
prevents memory leaks ... If you google on the subject, the problem seems to
be widespread. Are there any particular methods or settings in libgcj that
can be of use to prevent a server application from consuming all memory?
I've already added System.gc() here and there, but I doubt it is such an
effective strategy. By the way, the minGW thread creation seems to leak 4
bytes per thread created. Does anybody know anything about this?