Where to Configure Database Agent Properties
You can configure agent properties in the following locations:
- The
controller-info.xml
file located in the<db_agent_home>/conf
directory -
The system properties (
-D options)
section in the JVM start-up command. The system properties override the settings in thecontroller-info.xml
file. System properties are case-sensitive.java -XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError=“kill -9 %p” -jar db-agent.jar
Use the following command if you are using Java >15:
java -XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError=“kill -9 %p” -jar db-agent.jar --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED
Alternatively, you can use a script to start the agent.
- Windows
/start-dbagent -Xms<min_heap_size> -Xmx<max_heap_size> &
- Linux
-
./start-dbagent -Xms<min_heap_size> -Xmx<max_heap_size> &