Setting the runtime parameters of the plug-in server JVM
System administrators can set the runtime parameters of the plug-in server JVM by using REST Administration APIs.
The following example shows a POST method to set the runtime parameters JVM of the plug-in server by using cURL:
curl -X POST \
-H 'Content-Type: application/json' \
-d '{
"PluginVMArgs": "-Xms2G -Xmx4G"
}
' \
http://127.0.0.1:9089/ima/v1/configuration/
The following shows an example response to the POST method.
{
"Version": "v1",
"Code": "CWLNA6011",
"Message": "The requested configuration change has completed successfully."
}
The following example shows restarting the protocol plug-in server:
curl -X POST \
-H 'Content-Type: application/json' \
-d '{
"Service": "Plugin"
}
' \
http://127.0.0.1:9089/ima/v1/service/restart
The following example shows an example response to the POST method to restart the protocol plug-in server:
{
"Version": "v1",
"Code": "CWLNA6011",
"Message": "The requested configuration change has completed successfully."
}