java.lang.OutOfMemoryError
Hurr...
|
What does this mean...?
Does it mean my RAM aka memory is low and not allowing java to function correctly...?Code:# # A fatal error has been detected by the Java Runtime Environment: # # java.lang.OutOfMemoryError: requested 32744 bytes for ChunkPool::allocate. Out of swap space? # # Internal Error (allocation.cpp:117), pid=58812, tid=53860 # Error: ChunkPool::allocate # # JRE version: 6.0_20-b02 # Java VM: Java HotSpot(TM) 64-Bit Server VM (16.3-b01 mixed mode windows-amd64 ) # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp #
What I thought....what should I do?
You can set the minimum and maximum memory available to the java virtual machine repectively with -Xms<number of bytes> and -Xmx<number of bytes>.
I currently have them set to -Xms512m and -Xmx1024M.
Example in batch file:Which means the JVM has a minimum of 512MB available for whatever it's doing and a maximum of 1024MB.java -Xms512m -Xmx1024m -cp bin;lib/jython.jar;lib/slf4j-api-1.5.8.jar;lib/mina-core-2.0.0-M6.jar;lib/slf4j-jdk14-1.5.8.jar;lib/commons-compress-1.0.jar;lib/junit-4.6.jar;-server -XX:+AggressiveHeap -XX:MaxHeapFreeRatio=90 -XX:MinHeapFreeRatio=90 -XX:+DisableExplicitGC -XX:+RelaxAccessControlCheck -XX:+UseParallelGC -XX:CompileThreshold=1 -XX:ThreadStackSize=128 org.hyperion.Server
If the JVM needs more than this max, it will result in an OutOfMemoryException.
You need to be aware of the possibility that you have a memory leak. In short this means that your application requires memory to store things, but that these never get released.
If you keep having these OutOfMemoryExceptions even when you raise the maximum memory, you'll have to reseach memory leaks.
Thanks
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |