Modifying JVM Memory Sizes
Stop a server by using the relevant command:
On UNIX use $NCHOME/bin/stopGUIServer.sh or $NCHOME/bin/stopImpactServer.sh.
Edit the file $IMPACT_HOME\wlp\usr\servers\<instance>\jvm.options.
<instance>
For GUI Server it is ImpactUI.
For Impact Server it is the name of the Server Instance you provided during install time, the default is NCI.
For your environment, specify the appropriate -Xms or -Xmx.
Start the server by using the relevant command:
On UNIX use $NCHOME/bin/startGUIServer.sh or $NCHOME/bin/startImpactServer.sh.
CORE FILES ARE HERE
For WebGUI
Stop the JazzSM server
cd /opt/IBM/JazzSM/profile/bin directory.
# ./wsadmin.sh -lang jython -conntype NONE
WASX7357I: By request, this scripting client is not connected to any server process. Certain configuration and application operations will be available in local mode.
*sys-package-mgr*: processing new jar, '/opt/IBM/WebSphere/AppServer/java/jre/lib/deploy.jar'
*sys-package-mgr*: processing new jar, '/opt/IBM/WebSphere/AppServer/java/jre/lib/javaws.jar'
*sys-package-mgr*: processing new jar, '/opt/IBM/WebSphere/AppServer/java/jre/lib/j9zip.jar'
*sys-package-mgr*: processing new jar, '/opt/IBM/WebSphere/AppServer/java/jre/lib/xmldsigfw.jar'
*sys-package-mgr*: processing new jar, '/opt/IBM/WebSphere/AppServer/java/jre/lib/plugin.jar'
WASX7031I: For help, enter: "print Help.help()"
wsadmin>jvm=AdminConfig.list("JavaVirtualMachine")
wsadmin>print 'initialHeapSize: ' + AdminConfig.showAttribute(jvm, 'initialHeapSize')
initialHeapSize: 512
wsadmin>print 'maximumHeapSize: ' + AdminConfig.showAttribute(jvm, 'maximumHeapSize')
maximumHeapSize: 4096
wsadmin>
AdminConfig.modify(jvm, '[[initialHeapSize xxx]]')
AdminConfig.modify(jvm, '[[maximumHeapSize xxx]]')
AdminConfig.save()
exit
xxx is the new heap size value, in megabytes
Restart JazzSM.
cd /opt/IBM/JazzSM/profile/bin
[root@dash bin]# ./stopServer.sh server1
Oct 24, 2016 4:47:16 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
ADMU0116I: Tool information is being logged in file
/opt/IBM/JazzSM/profile/logs/server1/stopServer.log
ADMU0128I: Starting tool with the JazzSMProfile profile
ADMU3100I: Reading configuration for server: server1
Realm/Cell Name: <default>
Username: smadmin
Password:
ADMU3201I: Server stop request issued. Waiting for stop status.
ADMU4000I: Server server1 stop completed.
[root@dash bin]# ./startServer.sh server1
ADMU0116I: Tool information is being logged in file
/opt/IBM/JazzSM/profile/logs/server1/startServer.log
ADMU0128I: Starting tool with the JazzSMProfile profile
ADMU3100I: Reading configuration for server: server1
ADMU3200I: Server launched. Waiting for initialization status.
cd /opt/IBM/JazzSM/profile/bin directory.
# ./wsadmin.sh -lang jython -conntype NONE
WASX7357I: By request, this scripting client is not connected to any server process. Certain configuration and application operations will be available in local mode.
*sys-package-mgr*: processing new jar, '/opt/IBM/WebSphere/AppServer/java/jre/lib/deploy.jar'
*sys-package-mgr*: processing new jar, '/opt/IBM/WebSphere/AppServer/java/jre/lib/javaws.jar'
*sys-package-mgr*: processing new jar, '/opt/IBM/WebSphere/AppServer/java/jre/lib/j9zip.jar'
*sys-package-mgr*: processing new jar, '/opt/IBM/WebSphere/AppServer/java/jre/lib/xmldsigfw.jar'
*sys-package-mgr*: processing new jar, '/opt/IBM/WebSphere/AppServer/java/jre/lib/plugin.jar'
WASX7031I: For help, enter: "print Help.help()"
wsadmin>jvm=AdminConfig.list("JavaVirtualMachine")
wsadmin>print 'initialHeapSize: ' + AdminConfig.showAttribute(jvm, 'initialHeapSize')
initialHeapSize: 512
wsadmin>print 'maximumHeapSize: ' + AdminConfig.showAttribute(jvm, 'maximumHeapSize')
maximumHeapSize: 4096
wsadmin>
AdminConfig.modify(jvm, '[[initialHeapSize xxx]]')
AdminConfig.modify(jvm, '[[maximumHeapSize xxx]]')
AdminConfig.save()
exit
xxx is the new heap size value, in megabytes
Restart JazzSM.
cd /opt/IBM/JazzSM/profile/bin
[root@dash bin]# ./stopServer.sh server1
Oct 24, 2016 4:47:16 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
ADMU0116I: Tool information is being logged in file
/opt/IBM/JazzSM/profile/logs/server1/stopServer.log
ADMU0128I: Starting tool with the JazzSMProfile profile
ADMU3100I: Reading configuration for server: server1
Realm/Cell Name: <default>
Username: smadmin
Password:
ADMU3201I: Server stop request issued. Waiting for stop status.
ADMU4000I: Server server1 stop completed.
[root@dash bin]# ./startServer.sh server1
ADMU0116I: Tool information is being logged in file
/opt/IBM/JazzSM/profile/logs/server1/startServer.log
ADMU0128I: Starting tool with the JazzSMProfile profile
ADMU3100I: Reading configuration for server: server1
ADMU3200I: Server launched. Waiting for initialization status.
Impact GUI/Core
Stop a server by using the relevant command:
On UNIX use $NCHOME/bin/stopGUIServer.sh or $NCHOME/bin/stopImpactServer.sh.
Edit the file $IMPACT_HOME\wlp\usr\servers\<instance>\jvm.options.
<instance>
For GUI Server it is ImpactUI.
For Impact Server it is the name of the Server Instance you provided during install time, the default is NCI.
For your environment, specify the appropriate -Xms or -Xmx.
Start the server by using the relevant command:
On UNIX use $NCHOME/bin/startGUIServer.sh or $NCHOME/bin/startImpactServer.sh.
CORE FILES ARE HERE
/opt/IBM/tivoli/impact/wlp/usr/server/NCI |
No comments:
Post a Comment