Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6309516

OutOfMemoryError test silently exits with code 1 on linux

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • CPU:
      generic
    • OS:
      generic

      Description

      Attached program causes java to exit with exit code 1 after 15-25 iterations without any messages on linux.

      The program does eatMemory() in a loop. eatMemory() tries to fill available memory by allocating chunks of memory till it encounters OOM, then chunk size is halved and is repeated till chunk size is small, then references are released.

      I cannot reproduce this on Solaris sparc or x86. The problem only exists with -XX:+UseParallelGC. Options -XX:-UseGCTimeLimit or -XX:ParallelGCThreads seem to have no effect. There is no problem with 1.5.

      Steps to reproduce:

      javac MemoryEater.java
      $JAVA_HOME/bin/java -client -XX:+UseParallelGC -Xmx128M MemoryEater 5; echo $?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jcoomes John Coomes
              Reporter:
              nhaustov Nicolay Haustov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: