java heap issues

With jdk 1.4.2_12, and maximum heap set to 2048M, I see the following message when the used heap exceeds 1024M :

Exception java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate. Out of swap space?

Any ideas as to what causes this ? Our solaris server has over 60GB of swap space.

[318 byte] By [hsv2007a] at [2007-11-26 17:57:53]
# 1

Seems that you are running out of C-heap, not java heap. The GC is a consumer of the C heap and is the one reporting the error.

Are you using any third-party native code or library? Try actually decreasing the JVM heap.

To adjust the heap size, you could use -XX:+PrintGCDetails to get an idea of the actual size of the heap before a full GC (which happens right before the OutOfMemoryError), and use the [url=http://java.sun.com/docs/hotspot/gc1.4.2/]GC tuning guide[/url] to that effect.

karma-9a at 2007-7-9 5:11:06 > top of Java-index,Java HotSpot Virtual Machine,Specifications...