This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Memory leak with Sockets?
- From: Stanley Brown <stanley dot brown13 at verizon dot net>
- To: java at gcc dot gnu dot org
- Date: Tue, 28 Oct 2003 21:17:48 -0500
- Subject: Memory leak with Sockets?
I have a program that is opening and closing a Socket hundreds of times
sending small amounts of information back and forth from a remote
server. Works great with the Sun JRE. But the same app, compiled with
GCJ, consumes an ever increasing amount of memory every second its
running until it eventually crashes due to lack of memory. Ive tried
Mohan's GCC/GCJ 3.3 and 3.4 versions and had the same result. I havent
had much time to test this but I dont think the opening and closing of
the Sockets is causing the issue as much as reading and writing on
them. Any help would be appreciated.