JRun 4.x server
JRun 4.x server
Log Track Supported: Yes
Config Track Supported: Yes
Custom Properties Supported: None
Supported Control Actions: start,stop,restart
Supported Metrics:
| Name | Alias | Units | Category | Default On | Default Interval |
|---|---|---|---|---|---|
| JVM Active Thread Count | ActiveThreadCount | none | UTILIZATION | true | 5 min |
| JVM Active Thread Group Count | ActiveThreadGroupCount | none | UTILIZATION | false | 5 min |
| JVM Free Memory | FreeMemory | B | UTILIZATION | false | 5 min |
| JVM Total Memory | TotalMemory | B | UTILIZATION | false | 5 min |
| Uptime | Uptime | ms | AVAILABILITY | false | 5 min |
| Availability | Availability | percentage | AVAILABILITY | true | 5 min |
| Process CPU System Time | TimeSys | sec | UTILIZATION | false | 10 min |
| Process CPU User Time | TimeUser | sec | UTILIZATION | false | 10 min |
| Process Memory Size | MemSize | B | UTILIZATION | false | 5 min |
| Process Resident Memory Size | MemResident | B | UTILIZATION | false | 5 min |
| Process Shared Memory Size | MemShare | B | UTILIZATION | false | 5 min |
| Process Page Faults | PageFaults | none | UTILIZATION | false | 10 min |
| Process Page Faults per Minute | PageFaults1m | none | UTILIZATION | false | 10 min |
| Process Open File Descriptors | OpenFd | none | UTILIZATION | false | 5 min |
| Number of Requests Served | RequestCount | none | THROUGHPUT | true | 10 min |
| Number of Requests Served per Minute | RequestCount1m | none | THROUGHPUT | true | 10 min |
| Total Processing Time | TotalTime | ms | PERFORMANCE | true | 10 min |
| Total Processing Time per Minute | TotalTime1m | ms | PERFORMANCE | true | 10 min |
Configuration help:
Configure JRun 4.x for Monitoring
To enable monitoring of JRun servers and services the JRun server must be instrumented using a filter to collect metrics and a webapp to deliver the metric data into HQ. The web application, filter and any additional jars are packaged in the HQ agent directory under product_connectors/servlet. All commands below should be issued from this directory.
cp libs/hq-filter.jar ${installpath}/servers/lib
cp -R hyperic-hq ${installpath}/servers/${serverName}
Finally, the filter must be enabled. The following must be added to ${installpath}/servers/${serverName}/SERVER_INF/default-web.xml. Keep in mind that each tag type must be grouped together.
<filter>
<filter-name>JMXFilter</filter-name>
<filter-class>org.hyperic.hq.product.servlet.filter.JMXFilter</filter-class>
<!-- Uncomment the following line to enable response time logging.
The directory you specify as the param can include properties
referenced from the System.properties of the vm.
The ResponseTime log file will by default store the last 1 hour's
worth of response time data. This file gets truncated as soon as
data is succesfully sent into the server. The file is named uniquely
for each webapp in the form: yourContextName_HQResponseTime.log
If this fragment is included in the global web.xml for the container,
all webapps in it will generate response time data, and have logs
following the format described above. You can enable it individually
on each webapp as well if you dont want every webapp to generate
response time data
-->
<!--
<init-param>
<param-name>responseTimeLogDir</param-name>
<param-value>/home/johnmark/software/hyperic-hq-agent-3.1.0/logs</param-value>
</init-param>
-->
<!-- these are optional parameters which you can override to optimize logging -->
<!--
<init-param>
<param-name>bufferSize</param-name>
<param-value>8k</param-value>
</init-param>
<init-param>
<param-name>bufferTime</param-name>
<param-value>1h</param-value>
</init-param>
-->
</filter>
<filter-mapping>
<filter-name>JMXFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.hyperic.hq.product.servlet.filter.JMXSessionListener</listener-class>
</listener>
<servlet>
<servlet-name>JMXWebappMetricServlet</servlet-name>
<servlet-class>org.hyperic.hq.product.servlet.filter.JMXFilterInitServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
This can be tested by verifying your webapps show up correctly in the JMX Servlet. You may need to modify the hostname in the URL if your jmxUrl is configured relative to the agent host.
General Log and Config Track Properties
- Enable Config Tracking - Check to enable config tracking.
- Configuration Files - Comma delimited list of configuration files to track. Relative files are resolved to ${installpath}.
- Enable Log Tracking - Check to enable log tracking.
- Track event log level - Only track events of level greater than or equal to this level. Order is: [Error, Warn, Info, Debug]
Mapping:- FATAL,ERROR -> Error
- WARN -> Warn
- INFO -> Info
- DEBUG -> Debug
- Log Pattern Match - Include messages that match the given regular expression. The given pattern can be a substring to look for in log messages or a regular expression. See: java.util.regex.Pattern.
- Log Pattern Exclude - Exclude messages that match the given regular expression.
- Log Files - Comma delimited list of log files to track. Relative files are resolved to ${installpath}.