To modify the Java virtual machine (JVM) of the server to turn on debug mode, do the following steps:
There are two ways to perform this task. Choose one of the following Object Type:
Using the AdminTask object:
Using Jacl:
- $AdminTask setJVMDebugMode {-serverName server1 -nodeName node1 -debugMode true}
Using Jython:
- AdminTask.setJVMDebugMode (['-serverName', 'server1', '-nodeName', 'node1', '-debugMode', 'true'])
Using the AdminConfig object:
Identify the server and assign it to the server1 variable
Using Jacl:
- set server1 [$AdminConfig getid /Cell:mycell/Node:mynode/Server:server1/]
- set jvm [$AdminConfig list JavaVirtualMachine $server1]
- $AdminConfig modify $jvm {{initialHeapSize 512} { maximumHeapSize 1024} {genericJvmArguments "-Xnoclassgc -Duser.timezone::GMT+05:30"} {debugMode true} {debugArgs "-Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777"}}
Using Jython:
- server1 = AdminConfig.getid('/Cell:mycell/Node:mynode/Server:server1/')
- JVMID = AdminConfig.list('JavaVirtualMachine', server1)
- AdminConfig.modify(JVMID,[['initialHeapSize', '512'], ['maximumHeapSize', '1024'], ['verboseModeGarbageCollection', 'true'], ['genericJvmArguments', '-Xnoclassgc -Duser.timezone::GMT+05:30'], ['debugMode', 'true'], ['debugArgs', '-Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777']])
No comments:
Post a Comment