Elliott C. Back: In Aere Aedificare

java.lang.OutOfMemoryError

Posted in Code, Java by Elliott Back on January 3rd, 2007.

Isn’t this a cute little error:

Exception java.lang.OutOfMemoryError: requested 4096000 bytes for GrET* in C:/BUILD_AREA/jdk1.5.0_09/hotspot\src\share\vm\utilities\growableArray.cpp. Out of swap space?

I got home from Shanghai to see this guy, although I’m not sure why a request for 4MB of memory would fail…

Update: I wasn’t leaking memory or anything, either. And I gave a big heap to play with. Maybe the system as a whole ran out of some kind of addressable memory, say threads or process space, and it threw this error. I don’t honestly know, since this was on Windows XP 32bit Pro, and not linux. I neglected at the time to save a coredump, as well.

This entry was posted on Wednesday, January 3rd, 2007 at 1:28 am and is tagged with outofmemoryerror, coredump, exception java, swap space, java lang, heap, shanghai, windows xp, memory, threads, linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback.

3 Responses to 'java.lang.OutOfMemoryError'

  1. tariq said:

    on April 10th, 2007 at 9:34 pm

    hi there
    me also came across the same exception
    Exception java.lang.OutOfMemoryError: requested 4096000 bytes for GrET* in D:/BUILD_AREA/jdk1.5.0_09/hotspot\src\share\vm\utilities\growableArray.cpp. Out of swap space?
    am running JRUN 4 in win2000 my heap size for JRUN jvm settings is
    128M min and 512 Max .plz help me regarding this issuw
    or even mail me to asmdt at yahoo dot com

    tnx

  2. xpdz said:

    on June 12th, 2007 at 3:22 am

    hi, pls refer to this thread, i think it helpful:
    forum.java.sun.com/thread.jspa?threadID=747363&messageID=4281966

  3. prashant said:

    on January 15th, 2008 at 1:48 am

    if u set your JVM memory max 1Gb or more.
    so it will not help u.
    Becoz after some time it may again full.
    u have to maintain your code so that..
    Not allocate memory through new inside any loop which is called many times,
    it again and again allocate the memory…

Your Thoughts Go Here:

Powered by WP Hashcash