IBM Support

Java.lang.OutOfMemoryError: PermGen space

Troubleshooting


Problem

WebLogic 9.2 startweblogic.cmd throws an error.

Cause


In the StartWeblogic.cmd this code runs with the wrong parameter.

@REM Had to have a separate test here BECAUSE of immediate variable expansion on windows
if "%JAVA_VENDOR%"=="Sun" (
set MEM_ARGS=%MEM_ARGS% %MEM_DEV_ARGS% -XX:MaxPermSize=128m
)

The 128m is overriding the 512m .

Diagnosing The Problem

The following error will appear when you start the WebLogic server.



<MaxAdminServer> <ÝACTIVE¨ ExecuteThread: '1' for queue:
'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <>
<1257881451005> <BEA-000802> <ExecuteRequest failed
java.lang.OutOfMemoryError: PermGen space.
java.lang.OutOfMemoryError: PermGen space

Resolving The Problem


Navigate to your \bea\user_projects\domains\MaximoServer\bin directory using Windows Explorer. Right click the setDomainEnv.cmd file and choose Edit.

Edit the setDomainEnv.cmd file to make sure you have entered the memory arguments as follows.

@REM original set MEM_ARGS=-Xms256m -Xmx512m
set MEM_ARGS=-Xms512m -Xmx1024m -XX:MaxPermSize=512m

Also make the following changes

@REM Had to have a separate test here BECAUSE of immediate variable expansion on windows

if "%JAVA_VENDOR%"=="Sun" (
set MEM_ARGS=%MEM_ARGS% %MEM_DEV_ARGS% -XX:MaxPermSize=512m

After the changes save the file and start WebLogic

[{"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"6.2.5;6.2.6;6.2.7;6.2.8;7.1;7.1.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}},{"Product":{"code":"SS2H8H","label":"Tivoli Asset Management"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"","label":""}},{"Product":{"code":"SSLKTY","label":"Maximo Asset Management for IT"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}},{"Product":{"code":"SSKTXT","label":"Tivoli Change and Configuration Management Database"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}},{"Product":{"code":"SS6HJK","label":"Tivoli Service Request Manager"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

More support for:
IBM Maximo Asset Management

Software version:
6.2.5, 6.2.6, 6.2.7, 6.2.8, 7.1, 7.1.1

Operating system(s):
AIX, HP-UX, Linux, Solaris, Windows

Document number:
131855

Modified date:
19 August 2022

UID

swg21411216

Manage My Notification Subscriptions