My Application(a Desktop application) through the following exception in 

```
java.lang.OutOfMemoryError: requested 4096000 bytes for GrET in C:\BUILD_AREA\jdk6_12\hotspot\src\share\vm\utilities\growableArray.cpp. Out of swap space?

```

What are the possible reasons for the above error.

Here is the jvm argument which are set

VM Arguments:

jvm\_args: -Dsun.net.inetaddr.ttl=10 vfprintf exit abort -Xms5242880 -Xmx1711276032 -XX:NewSize=2621440 -XX:MaxNewSize=855638016 -XX:+HeapDumpOnOutOfMemoryError -Dsun.rmi.dgc.server.gcInterval=60000 -Dsun.rmi.dgc.client.gcInterval=60000 -Djava.security.properties=wigan.java.security -Xss512K 

--------------- S Y S T E M ---------------

OS: Windows NT 6.1 Build 7601 Service Pack 1

CPU:total 24 (16 cores per cpu, 2 threads per core) family 6 model 13 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, ht

Memory: 4k page, physical 4194303k(4194303k free), swap 4194303k(4194303k free)

vm\_info: Java HotSpot(TM) Server VM (11.2-b01) for windows-x86 JRE (1.6.0\_12-b04), built on Jan 17 2009 09:52:33 by "java\_re" with MS VC++ 7.1

I added -XX:+HeapDumpOnOutOfMemoryError to the jvm parameters, but it jvm didn't dump the heap, I never find any .hprof file. Why?

Is it compulsary that when ever the hs\_err\_pidXXXX.log file is created the hprof file also created?