Out of memory errors

Discussion in 'Java' started by John Smith, Oct 3, 2005.

  1. John Smith

    John Smith Guest

    I am having a nightmare with memory problems first it was heap space, I
    fixed the leaks in our code and now it fails in the compiler thread:

    Heap
    PSYoungGen total 58240K, used 38053K [0x31580000, 0x36ad0000,
    0x36ad0000)
    eden space 29120K, 100% used [0x31580000,0x331f0000,0x331f0000)
    from space 29120K, 30% used [0x331f0000,0x33aa9798,0x34e60000)
    to space 29120K, 0% used [0x34e60000,0x34e60000,0x36ad0000)
    PSOldGen total 33856K, used 23191K [0x06ad0000, 0x08be0000,
    0x31580000)
    object space 33856K, 68% used [0x06ad0000,0x08175f90,0x08be0000)
    PSPermGen total 16384K, used 8523K [0x02ad0000, 0x03ad0000,
    0x06ad0000)
    object space 16384K, 52% used [0x02ad0000,0x03322c60,0x03ad0000)
    [GC [PSYoungGen: 38053K->11357K(56448K)] 61245K->34549K(90304K), 0.0548500
    secs]
    Heap after GC invocations=3896:
    Heap
    PSYoungGen total 56448K, used 11357K [0x31580000, 0x36910000,
    0x36ad0000)
    eden space 29120K, 0% used [0x31580000,0x31580000,0x331f0000)
    from space 27328K, 41% used [0x34e60000,0x35977760,0x36910000)
    to space 28224K, 0% used [0x331f0000,0x331f0000,0x34d80000)
    PSOldGen total 33856K, used 23191K [0x06ad0000, 0x08be0000,
    0x31580000)
    object space 33856K, 68% used [0x06ad0000,0x08175f90,0x08be0000)
    PSPermGen total 16384K, used 8523K [0x02ad0000, 0x03ad0000,
    0x06ad0000)
    object space 16384K, 52% used [0x02ad0000,0x03322c60,0x03ad0000)
    } {Heap before GC invocations=3897:
    Heap
    PSYoungGen total 56448K, used 40477K [0x31580000, 0x36910000,
    0x36ad0000)
    eden space 29120K, 100% used [0x31580000,0x331f0000,0x331f0000)
    from space 27328K, 41% used [0x34e60000,0x35977760,0x36910000)
    to space 28224K, 0% used [0x331f0000,0x331f0000,0x34d80000)
    PSOldGen total 33856K, used 23191K [0x06ad0000, 0x08be0000,
    0x31580000)
    object space 33856K, 68% used [0x06ad0000,0x08175f90,0x08be0000)
    PSPermGen total 16384K, used 8524K [0x02ad0000, 0x03ad0000,
    0x06ad0000)
    object space 16384K, 52% used [0x02ad0000,0x03323010,0x03ad0000)
    [GC [PSYoungGen: 40477K->13701K(57344K)] 63669K->36893K(91200K), 0.0660287
    secs]
    Heap after GC invocations=3897:
    Heap
    PSYoungGen total 57344K, used 13701K [0x31580000, 0x36810000,
    0x36ad0000)
    eden space 29120K, 0% used [0x31580000,0x31580000,0x331f0000)
    from space 28224K, 48% used [0x331f0000,0x33f516c8,0x34d80000)
    to space 26944K, 0% used [0x34dc0000,0x34dc0000,0x36810000)
    PSOldGen total 33856K, used 23191K [0x06ad0000, 0x08be0000,
    0x31580000)
    object space 33856K, 68% used [0x06ad0000,0x08175f90,0x08be0000)
    PSPermGen total 16384K, used 8524K [0x02ad0000, 0x03ad0000,
    0x06ad0000)
    object space 16384K, 52% used [0x02ad0000,0x03323010,0x03ad0000)
    }
    Exception in thread "CompilerThread1" java.lang.OutOfMemoryError: requested
    310608 bytes for Chunk::
    new. Out of swap space?

    The machine was started with -Xmx512m and as you can see it is no where near
    that limit. The machine is windows 2003 server with java verson is :
    java version "1.5.0_05"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
    Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)

    The machine has 3gb of memory and at the time it fails task manager says it
    is using just 350m

    Any help would be gratefully appreciated

    Thanks

    Jon
    John Smith, Oct 3, 2005
    #1
    1. Advertising

  2. John Smith

    Roedy Green Guest

    On Mon, 3 Oct 2005 12:19:05 +0100, "John Smith"
    <> wrote or quoted :

    >Any help would be gratefully appreciated


    I presume you are using Windows of some sort.

    Go into settings | control panel | system | advanced | performance
    options | change

    and make sure you have a decently fat swapfile defined. After you
    have changed that you might want to run PageDefrag from
    http://sysinternals.com/ntw2k/information.shtml
    to defrag it.
    --
    Canadian Mind Products, Roedy Green.
    http://mindprod.com Again taking new Java programming contracts.
    Roedy Green, Oct 4, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ShikariShambu
    Replies:
    1
    Views:
    1,127
    Natty Gur
    Dec 30, 2003
  2. Mark Goldin

    Errors, errors, errors

    Mark Goldin, Jan 17, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    942
    Mark Goldin
    Jan 17, 2004
  3. George1776

    Out-of-memory errors and caching errors.

    George1776, Aug 28, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    1,290
    George1776
    Sep 14, 2006
  4. pit3k
    Replies:
    6
    Views:
    3,333
    pit3k
    Sep 22, 2005
  5. catphive

    -Xmx out of memory errors

    catphive, May 28, 2007, in forum: Java
    Replies:
    7
    Views:
    627
    catphive
    Jun 8, 2007
Loading...

Share This Page