Thread: Java Error?

Results 1 to 5 of 5
  1. #1 Java Error? 
    Banned

    Join Date
    Oct 2009
    Age
    28
    Posts
    1,579
    Thanks given
    4
    Thanks received
    23
    Rep Power
    0
    What does this mean...?

    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
    #
    Does it mean my RAM aka memory is low and not allowing java to function correctly...?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,227
    Thanks given
    3,283
    Thanks received
    2,875
    Rep Power
    5000
    java.lang.OutOfMemoryError

    Hurr...
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Oct 2009
    Age
    28
    Posts
    1,579
    Thanks given
    4
    Thanks received
    23
    Rep Power
    0
    What I thought....what should I do?
    Reply With Quote  
     

  4. #4  
    Registered Member
    Its paris's Avatar
    Join Date
    Apr 2009
    Posts
    1,141
    Thanks given
    56
    Thanks received
    234
    Rep Power
    689
    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:
    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
    Which means the JVM has a minimum of 512MB available for whatever it's doing and a maximum of 1024MB.
    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.
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Oct 2009
    Age
    28
    Posts
    1,579
    Thanks given
    4
    Thanks received
    23
    Rep Power
    0
    Thanks
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •