Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OutOfMemoryError

0 views
Skip to first unread message

dha...@my-deja.com

unread,
Mar 21, 2000, 3:00:00 AM3/21/00
to

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.

kdha...@hotmail.com

unread,
Mar 21, 2000, 3:00:00 AM3/21/00
to
0 new messages