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

JVM gives error:Exception in thread "CompileThread0" java.lang.OutOfMemoryError:

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.3.1_01
    • hotspot
    • None
    • generic
    • solaris_2.4

      when running Oracle's application IRecivables on NT machine with flags -Xbatch
      -XX:+PrintCompilation. The exact error message on the console is :
      Exception in thread "CompileThread0" java.lang.OutOfMemoryError: requested
      201326600 bytes

      I have seen this error in more than one product, however, it always tries to
      allocate 200MB of memory, which seems excessive for a compiler thread. The
      command line for the VM is:
      d:\jdk1.3.1\jre\bin\java -server -Xms1000m -Xmx1000m -Xbatch
      -XX:+PrintCompilation -Djbo.debugoutput=silent org.apache.jserv.JServ
      d:\ORANT\Apache\Jserv\conf\jserv.properties 1> irec.out 2>err.out

      Please note that currently I can only produce this problem on NT. Also note
      that there is no core dump file, since this a handled exception and not a
      crash. The output file listing the compiled methods is attached to the
      message.

      I also tried setting the maximum permenant generation size (-XX:MaxPermSize)
      at 100M, but the problem still occurred at the same place with the same
      output.
      Please note that with the -Xcomp I
      could not display any jsp pages. The VM compiled a number of methods as
      the output file shows, however, it stops doing that after a certain
      point of time and does not respond to user requests any more. The VM
      keeps running but the output file is no longer updated and the user gets
      no output back from the jsp page.

      This is the command line used to start the VM on NT:
      d:\jdk1.3.1\jre\bin\java -server -Xcomp -Xbatch -XX:+PrintCompilation
      -Xms1000m -Xmx1000m -Djbo.debugoutput=silent org.apache.jserv.JServ
      d:\ORANT\Apache\Jserv\conf\jserv.properties 1> irec.out

      The file is located at:
      /net/harri/export/jle/build/licensees/Oracle/Irec.zip

            Unassigned Unassigned
            mthakore Mayank Thakore (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: