Question & Answer
Question
Answer
You can change the Generic JVM arguments using wsadmin scripting tool.
We have only the function to set/replace it. We don't have a function to remove a part of it.
If you need to set the Generic JVM arguments for server1 under Node01,
1) Start the wsadmin scripting tool
./wsadmin.sh -lang jython -username [username] -password [password]
2) Check the current Generic JVM arguments
wsadmin>print AdminTask.showJVMProperties('[-nodeName Node01 -serverName server1 -propertyName genericJvmArguments]')
*You can replace each value to your node name and server name.
3) Set the value for generic JVM arguments
wsadmin>AdminTask.setGenericJVMArguments('[-nodeName Node01 -serverName server1 -genericJvmArguments "xxxxx"]')
*You can replace xxxxx to your value that you want to use.
You will receive 'true' after setting it.
4) Save the changes
wsadmin>AdminConfig.save()
5) Check the Generic JVM arguments if it has changed correctly.
wsadmin>print AdminTask.showJVMProperties('[-nodeName Node01 -serverName server1 -propertyName genericJvmArguments]')
6) Restart the server1 for the changes to take effect.
-------------------------------
For more detail on parameters (setGenericJVMArguments and showJVMProperties), you can refer to the following link:
Was this topic helpful?
Document Information
Modified date:
15 November 2022
UID
ibm16839453