Set the QuerySurge Agent Memory Allocation (Linux)
- Make sure the Agent is not executing. You can do this by logging into QuerySurge and checking the Agent status.
- Log into the QuerySurge Agent box either as root or as a sudoer (or equivalent).
- On the QuerySurge Agent box, stop your QuerySurge Agent with following command:
service QuerySurge stop agent
- Navigate to the QuerySurge /agent/config directory, which is found at:
/<QuerySurge Install Dir>/QuerySurge/agent/config - with the default install location, this is in: /opt/QuerySurge/agent/config - Make a backup copy of the file agentconfig.xml using the following command:
cp agentconfig.xml agentconfig.xml.bak
- Edit the agentconfig.xml file with a text editor. Look for the <heap> tag, which by default looks like:
<heap>1000</heap>
This means 1000MB heap request for the Agent (this is the default size). Edit the heap size to change it to the desired value.
Example: If you want to change the agentconfig.xml to set the Agent heap to 3000MB, the tag should look like: <heap>3000</heap> - Make sure that you have not accidentally changed the XML so that it is invalid. Save the file. Start the QuerySurge services using the following command:
service QuerySurge start agent
- If you have mis-edited the agentconfig.xml file, the Agent will most likely be unable to start. If it fails to start, check the file. (You can always revert to your backup copy.)
- If you have other QuerySurge Agents deployed on other boxes, they should be configured with the same value, if possible.
Comments
0 comments
Please sign in to leave a comment.