The following example modifies the process definition of a server:
Using Jacl:
set server1 [$AdminConfig getid /Cell:mycell/Node:mynode/Server:server1/]
Example output:
server1(cells/mycell/nodes/mynode/servers/server1:server.xml#Server_1)
Using Jacl:
set processDef [$AdminConfig list JavaProcessDef $server1] set controllerProcessDef [lindex $processDef 1] set servantProcessDef [lindex $processDef 1]
Example output:
(cells/mycell/nodes/mynode/servers/server1:server.xml#JavaProcessDef_1) (cells/mycell/nodes/mynode/servers/server1:server.xml#JavaProcessDef_2)
The following examples show how to change the process definition of the servant region. You can change the process definition of the controller region by substituting controllerProcessDef for servantProcessDef .
Using Jacl:
$AdminConfig modify $servantProcessDef {{workingDirectory /temp/user1}}
Using Jacl:
set errFile [list stderrFilename \${LOG_ROOT}/server1/new_stderr.log] set attr [list $errFile] $AdminConfig modify $servantProcessDef [subst {{ioRedirect {$attr}}}]
Using Jacl:
$AdminConfig modify $servantProcessDef {{execution {{processPriority 15}}}}
Using Jacl:
$AdminConfig modify $servantProcessDef {{monitoringPolicy {{maximumStartupAttempts 1}}}}
You can modify this example to change other attributes in the process definition object.
Using Jacl:
$AdminConfig save