Troubleshooting
Problem
Maximo performance is affected by the user load, heap parameters and Garbage Collection
Resolving The Problem
Maximo performance is affected by the user load, heap parameters and Garbage Collection.
Use the -verbosegc option to measure how much time and resources are put into Garbage Collection. This information will assist in tuning the heap size and determine if another Maximo Application Server is needed to handle the user/transaction load.
WebLogic Server 6.1
Add the -verbosegc parameter to the command line in the startmaximoserver.cmd or startweblogic.cmd (Windows) startmaximoserver.sh or startweblogic.sh (Unix) file (located in the bea\wlserver6.1\config\mydomain folder), edit the startup file that is used to start the Maximo Server from a command prompt. Redirect the messages to a log file. The log file will be in the bea\wlserver6.1 folder
"%JAVA_HOME%\bin\java" -hotspot -Xms128m -Xmx1024m -XX:MaxPermSize=128m -verbosegc -classpath "%CLASSPATH%" -Dweblogic.Domain=mydomain -Dweblogic.Name=MAXIMOSERVER "-Dbea.home=C:\bea" "-Dmxe.home=C:\MAXIMO" -Dweblogic.management.password=%WLS_PW% -Dweblogic.ProductionModeEnabled=%STARTMODE% "-Djava.security.policy==C:\bea\wlserver6.1/lib/weblogic.policy" weblogic.Server >> log.txt
If running as a Windows service add the -verbosegc and -Xloggc parameters to the command line in the installmaximoservice.cmd or installservice.cmd file (located in the bea\wlserver6.1\config\mydomain folder). Uninstall and reinstall the service
set CMDLINE="-verbosegc -Xloggc:c:\maximo\gc.log -mx1024m -classpath \"%CLASSPATH%\" -Dweblogic.Domain=mydomain -Dweblogic.Name=MAXIMOSERVER -Djava.security.policy==\"C:\bea\wlserver6.1/lib/weblogic.policy\" -Dbea.home=\"C:\\bea\" weblogic.Server"
WebLogic Server 7.0
Add the -verbosegc parameter to the command line in the startWLS.cmd (Windows) startWLS.sh (Unix) file (located in the bea\weblogic700\server\bin folder). Edit the startup file that is used to start WebLogic from a command prompt. Redirect the messages to a log file. The log file will be in the bea\user_projects\mydomain folder
Modify the first command line if running as a managed server. Modify the second command line if running as an admin server
@echo on
"%JAVA_HOME%\bin\java" %JAVA_VM% %MEM_ARGS% -verbosegc %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Dbea.home="C:\bea" -Dweblogic.management.username=%WLS_USER% -Dweblogic.management.password=%WLS_PW% -Dweblogic.management.server=%ADMIN_URL% -Dweblogic.ProductionModeEnabled=%STARTMODE% -Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy" weblogic.Server > testlog.txt
goto finish
:runAdmin
@echo on
"%JAVA_HOME%\bin\java" %JAVA_VM% %MEM_ARGS% -verbosegc %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Dbea.home="C:\bea" -Dweblogic.management.username=%WLS_USER% -Dweblogic.management.password=%WLS_PW% -Dweblogic.ProductionModeEnabled=%STARTMODE% -Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy" weblogic.Server > testlog.txt
If running as a Windows service add the -verbosegc and -Xloggc parameters to the command line in the installSvc.cmd (located in the bea\weblogic700\server\bin folder).
Modify the first command line if running as a managed server. Modify the second command line if running as an admin server
@echo off
if "%ADMIN_URL%" == "" goto runAdmin
@echo on
set CMDLINE="%JAVA_VM% -verbosegc -Xloggc:c:\maximo\gc.log %MEM_ARGS% %JAVA_OPTIONS% -classpath \"%CLASSPATH%\" -Dweblogic.Name=%SERVER_NAME% -Dbea.home=\"C:\bea7\" -Dweblogic.management.username=%WLS_USER% -Dweblogic.management.server=\"%ADMIN_URL%\" -Dweblogic.ProductionModeEnabled=%STARTMODE% -Djava.security.policy=\"%WL_HOME%\server\lib\weblogic.policy\" weblogic.Server"
goto finish
:runAdmin
@echo on
set CMDLINE="%JAVA_VM% -verbosegc -Xloggc:c:\maximo\gc.log %MEM_ARGS% %JAVA_OPTIONS% -classpath \"%CLASSPATH%\" -Dweblogic.Name=%SERVER_NAME% -Dbea.home=\"C:\bea7\" -Dweblogic.management.username=%WLS_USER% -Dweblogic.ProductionModeEnabled=%STARTMODE% -Djava.security.policy=\"%WL_HOME%\server\lib\weblogic.policy\" weblogic.Server"
WebLogic Server 8.1
Add the -verbosegc parameter to the command line in the startWebLogic.cmd (Windows) startWebLogic.sh (Unix) file if running as an admin server, startManagedWebLogic.cmd (Windows) startManagedWebLogic.sh (Unix) file if running as a managed server. Files are located in the bea\user_projects\domain\mydomain folder. Edit the startup file that is used to start WebLogic from a command prompt. Redirect the messages to a log file. The log file will be in the bea\user_projects\domain\mydomain folder
startWebLogic
%JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% -verbosegc %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy" weblogic.Server > testlog.txt
startManagedWebLogic
"%JAVA_HOME%\bin\java" %JAVA_VM% %MEM_ARGS% -verbosegc %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Dweblogic.management.username=%WLS_USER% -Dweblogic.management.password=%WLS_PW% -Dweblogic.management.server=%ADMIN_URL% -Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy" weblogic.Server > testlog.txt
If running as a Windows service add the -verbosegc and -Xloggc parameters to the command line in the installService.cmd (located in the bea\user_projects\domains\mydomain folder).
Modify the first command line if running as a managed server. Modify the second command line if running as an admin server
f "%ADMIN_URL%" == "" goto runAdmin
@echo on
set CMDLINE="%JAVA_VM% -verbosegc -Xloggc:c:\maximo\gc.log %MEM_ARGS% %JAVA_OPTIONS% -classpath \"%CLASSPATH%\" -Dweblogic.Name=%SERVER_NAME% -Dweblogic.management.username=%WLS_USER% -Dweblogic.management.server=\"%ADMIN_URL%\" -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy=\"%WL_HOME%\server\lib\weblogic.policy\" weblogic.Server"
goto installSvc
:runAdmin
@echo on
set CMDLINE="%JAVA_VM% -verbosegc -Xloggc:c:\maximo\gc.log %MEM_ARGS% %JAVA_OPTIONS% -classpath \"%CLASSPATH%\" -Dweblogic.Name=%SERVER_NAME% -Dweblogic.management.username=%WLS_USER% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy=\"%WL_HOME%\server\lib\weblogic.policy\" weblogic.Server"
WebLogic Server 9.2
Add the -verbosegc parameter to the command line in the startWebLogic.cmd (Windows) startWebLogic.sh (Unix) file. Files are located in the bea\user_projects\domain\mydomain\bin folder. Edit the startup file that is used to start WebLogic from a command prompt.
startWebLogic
if "%WLS_REDIRECT_LOG%"=="" (
echo Starting WLS with line:
echo %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %PROXY_SETTINGS% %SERVER_CLASS%
%JAVA_HOME%\bin\java %JAVA_VM% -verbosegc %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %PROXY_SETTINGS% %SERVER_CLASS%
) else (
echo Redirecting output from WLS window to %WLS_REDIRECT_LOG%
%JAVA_HOME%\bin\java %JAVA_VM% -verbosegc %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %PROXY_SETTINGS% %SERVER_CLASS% >"%WLS_REDIRECT_LOG%" 2>&1
)
If running as a Windows service add the -verbosegc and -Xloggc parameters to the command line in the install service script you created.
I.E.
set CMDLINE="%JAVA_VM% -verbosegc -Xloggc:c:\maximo\gc.log %MEM_ARGS% %JAVA_OPTIONS% -classpath \"%CLASSPATH%\" ....
Historical Number
M03668
Product Synonym
MAXIMO
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21262003