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

JDK1.3 throws OutOfMemoryError when trying to allocate PermGeneration space

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86, sparc
    • OS:
      solaris_7, solaris_8, windows_nt

      Description

      When Weblogic Server (WLS) loads more than ~400 EJBs, the HotSpot VM throws an OutOfMemoryError exception. This occurs even though there appears to be lots of memory available; in our scenario, there was over 460 mb of memory available
      based on a call to Runtime.getRuntime().freeMemory(). Loading large number
      of EJBs was possible with previous versions of the VM.

      The HotSpot VM was throwing the OutOfMemoryError when trying to allocate
      PermGeneration space. It appears that the HotSpot VM has different sections
      of memory. The permanent generation section (used for classes, methods,
      symbols ??) has an initial size of 1 mb and a max size of 32 mb.

      Fortunately, this limit can be raised at runtime using the

              java -server -XX:MaxPermSize=65536K

      command line argument. The above command raises the MaxPermSize to 64 mb. With this limit, we were able to load additional ejbs.

      However, the -XX options are not supported, and ISVs/Customers are wary about using XX options.

      ==============
      Note that currently, increasing the MaxPermSize only delays the failure.

      neal.gafter@Eng 2001-05-22

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mearagolsunw Murali Earagolla (Inactive)
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: