Configure the JVM using scripting
Overview
Use wsadmin to enable JVM debug.
Procedure
- Using AdminTask...
AdminTask.setJVMDebugMode (['-serverName', 'server1', '-nodeName', 'node1', '-debugMode', 'true'])
- Using AdminConfig...
### Identify the server and assign it to the serverx variable.Save the configuration changes and synchronize the node.
serverx = AdminConfig.getid('/Cell:mycell/Node:mynode/Server:server1/')
print serverx### Identify the JVM belonging to this server and assign it to the jvm variable.
jvm = AdminConfig.list('JavaVirtualMachine', serverx)
print jvm### Modify the JVM to turn on debugging.
AdminConfig.modify(jvm, [['debugMode', 'true'], ['debugArgs', "-Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777"]])
Use the AdminConfig object for scripted administration
Related Reference
Commands for the AdminConfig object