Configure the JVM using wsadmin

 

An example modifying the JVM of a server to turn on debug follows...

 

Using Jacl...

### Identify the server and assign it to the server variable.
set server [$AdminConfig getid /Cell:cell/Node:node/Server:server/]

set jvm [$AdminConfig list JavaVirtualMachine $server]

$AdminConfig modify $jvm \
{ \
    {debugMode true} \
    {debugArgs "-Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777"} \
}

$AdminConfig save

 

Using Jython

server = AdminConfig.getid('/Cell:cell/Node:node/Server:server/')
print server

jvm = AdminConfig.list('JavaVirtualMachine', server)
print jvm

AdminConfig.modify(jvm, [ \
    ['debugMode', 'true'], \
    ['debugArgs',  "-Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777"]])

AdminConfig.save()