Support Article
ExcludeAgents JVM setting fails for agent names containing space
SA-44553
Summary
When trying to exclude particular agents to run in a specific node using below JVM argument:
-DExcludeAgents
The setting does not work when used with Agent name that includes spaces, for example:
-DExcludeAgents=Pega-Engine:Collect PegaDATA database blob size statistics
Error Messages
Not Applicable
Steps to Reproduce
1. Attempt to exclude the agent using the -DExcludeAgent JVM argument.
2. Start Pega application.
3. Observe agent with spaces in its name is still running.
Root Cause
Arguments were not being passed into the Java options correctly.Resolution
To resolve this issue, properly encapsulate the java options in quotes. Note that the below example is windows:
set JAVA_OPTS=-Xms4096m -Xmx4096m -XX:MaxMetaspaceSize=1024m -DExcludeAgents="Pega-Engine:Collect PegaDATA database blob size statistics"
Also, if one must include multiple agents in the same argument use commas to separate the agent names as is documented here:
https://pdn.pega.com/configuring-nodes-run-selected-agents/configuring-nodes-run-selected-agents
Published February 20, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.