Out of memory errors

J

John Smith

I am having a nightmare with memory problems first it was heap space, I
fixed the leaks in our code and now it fails in the compiler thread:

Heap
PSYoungGen total 58240K, used 38053K [0x31580000, 0x36ad0000,
0x36ad0000)
eden space 29120K, 100% used [0x31580000,0x331f0000,0x331f0000)
from space 29120K, 30% used [0x331f0000,0x33aa9798,0x34e60000)
to space 29120K, 0% used [0x34e60000,0x34e60000,0x36ad0000)
PSOldGen total 33856K, used 23191K [0x06ad0000, 0x08be0000,
0x31580000)
object space 33856K, 68% used [0x06ad0000,0x08175f90,0x08be0000)
PSPermGen total 16384K, used 8523K [0x02ad0000, 0x03ad0000,
0x06ad0000)
object space 16384K, 52% used [0x02ad0000,0x03322c60,0x03ad0000)
[GC [PSYoungGen: 38053K->11357K(56448K)] 61245K->34549K(90304K), 0.0548500
secs]
Heap after GC invocations=3896:
Heap
PSYoungGen total 56448K, used 11357K [0x31580000, 0x36910000,
0x36ad0000)
eden space 29120K, 0% used [0x31580000,0x31580000,0x331f0000)
from space 27328K, 41% used [0x34e60000,0x35977760,0x36910000)
to space 28224K, 0% used [0x331f0000,0x331f0000,0x34d80000)
PSOldGen total 33856K, used 23191K [0x06ad0000, 0x08be0000,
0x31580000)
object space 33856K, 68% used [0x06ad0000,0x08175f90,0x08be0000)
PSPermGen total 16384K, used 8523K [0x02ad0000, 0x03ad0000,
0x06ad0000)
object space 16384K, 52% used [0x02ad0000,0x03322c60,0x03ad0000)
} {Heap before GC invocations=3897:
Heap
PSYoungGen total 56448K, used 40477K [0x31580000, 0x36910000,
0x36ad0000)
eden space 29120K, 100% used [0x31580000,0x331f0000,0x331f0000)
from space 27328K, 41% used [0x34e60000,0x35977760,0x36910000)
to space 28224K, 0% used [0x331f0000,0x331f0000,0x34d80000)
PSOldGen total 33856K, used 23191K [0x06ad0000, 0x08be0000,
0x31580000)
object space 33856K, 68% used [0x06ad0000,0x08175f90,0x08be0000)
PSPermGen total 16384K, used 8524K [0x02ad0000, 0x03ad0000,
0x06ad0000)
object space 16384K, 52% used [0x02ad0000,0x03323010,0x03ad0000)
[GC [PSYoungGen: 40477K->13701K(57344K)] 63669K->36893K(91200K), 0.0660287
secs]
Heap after GC invocations=3897:
Heap
PSYoungGen total 57344K, used 13701K [0x31580000, 0x36810000,
0x36ad0000)
eden space 29120K, 0% used [0x31580000,0x31580000,0x331f0000)
from space 28224K, 48% used [0x331f0000,0x33f516c8,0x34d80000)
to space 26944K, 0% used [0x34dc0000,0x34dc0000,0x36810000)
PSOldGen total 33856K, used 23191K [0x06ad0000, 0x08be0000,
0x31580000)
object space 33856K, 68% used [0x06ad0000,0x08175f90,0x08be0000)
PSPermGen total 16384K, used 8524K [0x02ad0000, 0x03ad0000,
0x06ad0000)
object space 16384K, 52% used [0x02ad0000,0x03323010,0x03ad0000)
}
Exception in thread "CompilerThread1" java.lang.OutOfMemoryError: requested
310608 bytes for Chunk::
new. Out of swap space?

The machine was started with -Xmx512m and as you can see it is no where near
that limit. The machine is windows 2003 server with java verson is :
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)

The machine has 3gb of memory and at the time it fails task manager says it
is using just 350m

Any help would be gratefully appreciated

Thanks

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top