Configuration Details
Configuration Details in Configure HEAL Modules.
Configuration Details#
The configuration details are as follows:
| Attribute | Description | Value | Example |
|---|---|---|---|
| "enableLibAgent" | To enable/disable the library | true - it will enable the library. false - it will disable the library. If this value is set to "false", then, regardless of what values are configured for "enableJMXArgs" & "enableJIMArgs", none of the args will get added to the JVMs. |
enableLibAgent="true" |
| "portFilePath" | 1. This stores the allocated JMX port data per app server or per JVM. 2. It will be replaced by the installer script itself. |
||
| "enableJMXArgs" | To add the JMX arguments, | true – Enable adding JMX arguments features. false - it will not add the JMX arguments. |
enableJMXArgs="true" |
| "JMXBasePort" | 1. To start JMX port allocation for app servers starting from this port 2. If there is already a JMX port allocated by the customer for the app server, then configure the same here. |
By default, the installer will replace this placeholder with 8200. This can be configurable in "install_libhealagent.conf" | |
| "extraArgsConfFilePath" | 1. File path to store extraArgs.properties. 2. This file is needed to store the required extra arguments for the JBoss component to inject JMX args. Data in this file will be populated by the Discovery agent when JBoss (versions lower than 7) is discovered. The same data will be used by monitor-jvm to inject JMX args for JBoss if its version is less than 7. |
The placeholder will be replaced by the installer itself while installing the monitor-jvm module | |
| "JMXArgs" | 1. List of JMX arguments that need to be injected into the qualified jvm process. 2. Below is the default list that comes with the build. JMXArgs="-Djava.heal.library.arguments.updated -Djava.rmi.server.hostname=@@@HOST_IP@@@ -Dcom.sun.management.jmxremote.port=@@@PORT@@@ -Dcom.sun.management.jmxremote.rmi.port=@@@PORT@@@ -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.ssl.need.client.auth=false -Dcom.sun.management.jmxremote.registry.ssl=false" 3. These args can be modified based on the requirement. But, to see the changes injected to jvm process, an app server restart is mandatory. |
||
| "enableJIMArgs" | To add the Jim arguments | true - it will add Jim's arguments false - it will not add the jim arguments |
enableJIMArgs="true" |
| "minJavaVersion" | Minimum supported Java version required to enable jim Agent. | 1. By default, the minimum supported java version will be "1.8". 2. This value can be updated based on the required java version. 3. If he configured java version is below "1.8", then library will consider minimum java version as "1.8" only. |
minJavaVersion="1.8" |
| "jimConfMapFilePath" | This is path for jimConfig.properties file which will be populated by Discovery agent upon discovering any app server (jboss, tomcat & weblogic). | Placeholder will be replaced by the installer script itself while installing monitor-jvm module. | |
| "JIMArgs" | 1. The order must be -javaagent followed by config file. 2. If there is a change in the order, the library might misbehave. 3. Below is the default list of JIM args that comes with the build: JIMArgs="-javaagent:@@@JIMAGENT_PATH@@@/heal-jim-opentelemetry-javaagent.jar -Dotel.javaagent.configuration-file=@@@JIMAGENT_PATH@@@/config/agent-cache.properties" |
Placeholder will be replaced by the installer itself while installing monitor-jvm module. | |
| "whiteListRegexArgs" | 1. This is the list of regex patterns that will be used by the library to filter the components for adding the JMX & JIM args. 2. If the user wants to add JMX & JIM args via this library for any custom Java process, then the regex pattern of that process should be added to this whiteListRegexArgs. 3. ApacheTomcat's start, Weblogic's server, JBoss resgex patterns are available by default as below: whiteListRegexArgs="ApacheTomcat=[tT][oO][mM][cC][aA][tT]:[sS][tT][aA][rR][tT]$ Weblogic=[Ww][eE][bB][lL][oO][gG][iI][cC]:[wW][eE][bB][lL][oO][gG][iI][cC].[sS][eE][rR][vV][eE][rR]$ JBoss=[jJ][bB][oO][sS][sS]" Note: If these existing whitelisted patterns are disturbed, then library may not add JMX and JIM args to the jvm process as the regex match fails. |
||
| "blackListRegexArgs" | 1. This is the list of regex patterns which will be used by the library to filter the components for skipping the adding the JMX and JIM args 2. If the user doesn't want to add JMX & JIM args for any java process, then the regex pattern of that process should be added to this blackListRegexArgs. 3. ApacheTomcat's stop, Weblogic's shutdown/NodeManager, JBoss's shutdown/version patterns are available by default as blackListRegexArgs as below: blackListRegexArgs="ApacheTomcat=[tT][oO][mM][cC][aA][tT]:[sS][tT][oO][pP] Weblogic=[Ww][eE][bB][lL][oO][gG][iI][cC].*:[sS][hH][uU][tT][dD][oO][wW][nN] WeblogicNodeManager=^[Ww][eE][bB][lL][oO][gG][iI][cC].[nN][oO][dD][eE][mM][aA][nN][jJ][aA][gG][eE][rR]$:[-][vV]$ JBoss=[jJ][bB][oO][sS][sS];[sS][hH][uU][tT][dD][oO][wW][nN] JBoss=[jJ][bB][oO][sS][sS];[-][vV].**" 4. Stop or shutdown patterns for any app server are to be listed in the blackListRegexArgs so that the library won't consider those processes to add JMX & JIM args. |
||
| "serverInstance" | 1. Instance to separate the app server instances from each other. 2. To give spaces in the key in serverInstance configuration, use "##space##". 3. To give multiple keys in the serverInstance configuration, use "@@". 4. Below is the default list for server instances: serverInstance="ApacheTomcat=-Dcatalina.home Weblogic=-Dweblogic.home@@-Dweblogic.Name WeblogicNodeManager= WebSphere= JBoss=-Djboss.server.base.dir@@-Djboss.server.data.dir@@-D[Process##space##Controller]@@-D[Host##space##Controller]" |
||
| "log_file_location" | 1. It has a placeholder that will be replaced by the install script, and the install script will create the logs folder. 2. If the logs folder is not present, then monitor-jvm will create the respective folder. |
||
| "log_filename" | 1. Name for the log file 2. Default name is "healagent," and the log file will be created as "healagent.log". 3. The first character of a filename cannot start with a dot (.) |
1. It can only contain letters from [a-z][A-Z][1-9] and three special characters. 2. If its values do not follow the above rules, then the library will set the default value "healagent" to it. |
|
| "log_pattern" | 1. Log pattern to write in healagent.log. 2. It should have a mandatory space to separate date and time. 3. If there is no space or if the configured pattern is invalid, then it will switch to the default log pattern. 4. Milliseconds are not supported in the log pattern. |
Default value is "%Y-%m-%d %H:%M:%S" | |
| "log_level" | Log level for the logs to write in healagent.log upon any app server restart. | 1. Default value is "warn". 2. Supported values are: error, info, warn, debug, trace 3. If its value does not match the above values, then the library will set the default value warning to it. |
|
| "log_file_rotation_number" | This is an integer value that defines how many healagent.log files to be stored. | 1. Default value is 5. 2. It can have values from 3 to 50. 3. If the value is less than 3, then the library will set the default min value of 3. 4. If its value is greater than 50, then the library will set the default max value of 50 to it. |
|
| "log_file_rotation_size" | This is the size of the log file after which it should rotate. | 1. It can have a size from 5K to 100M. 2. If its value is less than 5K, then the library will set the default min value 5k to it. 3. If its value is greater than 100M, then the library will set the default max value 100M. 4. The default value for it is 2M. |