Hi,
I have a client and server. The server reads data of around 2 MB from a
file and then writes it to a client using a socket. I started the server
with -Xmx64m and -Xms64m so i beleive it has suffient memory.
But strangely the socket connection is getting closed and i get the
following exception.
The gc statements would continue till the free memory would shrink to
15% and would raise a java.lang.OutOfMemoryError.
I am using jdk1.2.2 on a solaris box.
Any help would be appreciated
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:87)
at java.io.OutputStreamWriter.flushBuffer(Compiled Code)
at java.io.OutputStreamWriter.flush(Compiled Code)
at java.io.BufferedWriter.flush(Compiled Code)
GC[0] in 62 ms: (64Mb, 90% free) -> (64Mb, 92% free)
GC[0] in 80 ms: (64Mb, 89% free) -> (64Mb, 92% free)
GC[0] in 64 ms: (64Mb, 89% free) -> (64Mb, 92% free)
GC[0] in 81 ms: (64Mb, 89% free) -> (64Mb, 92% free)
GC[0] in 60 ms: (64Mb, 89% free) -> (64Mb, 90% free)
GC[0] in 72 ms: (64Mb, 89% free) -> (64Mb, 90% free)
GC[0] in 89 ms: (64Mb, 87% free) -> (64Mb, 90% free)
GC[0] in 88 ms: (64Mb, 87% free) -> (64Mb, 90% free)
GC[0] in 88 ms: (64Mb, 84% free) -> (64Mb, 87% free)
GC[0] in 89 ms: (64Mb, 84% free) -> (64Mb, 87% free)
GC[0] in 89 ms: (64Mb, 84% free) -> (64Mb, 87% free)
GC[0] in 88 ms: (64Mb, 84% free) -> (64Mb, 87% free)
Sent via Deja.com http://www.deja.com/
Before you buy.