Setting the maximum size of permanent generation for HotSpot™ v1.0.1 and v1.3.1

Technote (FAQ)
Problem
Instructions on setting the maximum size of permanent generation for the Java™ HotSpot virtual machine.
Solution
To set the maximum size of permanent generation in HotSpot v1.0.1, use the command line option:

-XX:MaxPermSize=<desired size in kilo bytes>

For example:-XX:MaxPermSize=32768

Appending k or K to indicate kilobytes, or m or M to indicate megabytes is not supported in HotSpot v1.0.1. This option only takes an integer that specifies a value in kilobytes.

To set the maximum size of permanent generation in HotSpot v1.3.1, use the command line option:

-XX:MaxPermSize=<desired size in bytes>

This sets the maximum size of permanent generation (in bytes). Appending the letter k or K to indicate kilobytes, or m or M to indicate megabytes is supported.

For example: -XX:MaxPermSize=128K specifies a value of 128 kilobytes for MaxPermSize.











Document Information

Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, Java SDK
Operating system(s): HPUX
Software version: 3.5, 4.0, 5.0, 5.1, 6.0
Software edition: Edition Independent
Reference #: 1162241
IBM Group: Software Group
Modified date: 2004-03-03