JRun can write status information to the JRun log files about the connection between a JRun server and a web server. You can obtain this status information from the connection between a JRun server and a third-party web server or the JRun web server (JWS).
To enable JRun to collect connection status information, you enable metrics logging, either through the JMC or by setting the metricsEnabled attribute of the LoggerService to true in a JRun server's jrun.xml file.
For more information on the JRun logging mechanism, see Chapter 4, "Logging". For more information on the JMC, see the JMC online Help.
The following example shows the metricsEnabled attribute set to true:
...
<service class="jrunx.logger.LoggerService" name="LoggerService"> ��<attribute name="errorEnabled">true</attribute> ��<attribute name="warningEnabled">true</attribute> ��<attribute name="infoEnabled">true</attribute> ��<attribute name="debugEnabled">false</attribute> ��<attribute name="metricsEnabled">true</attribute> ...
The metrics logger writes information to the JRun server's log file at intervals specified by the metricsLogFrequency attribute. This value is specified in seconds and the default is 60 seconds.
The metricsFormat attribute controls the information written to a log file.
Use the web prefix to capture metrics for the JRun web server.; use the jrpp prefix to captures statistics for the web server connector. Statistics that have no prefix are for the JVM associated with the JRun server.
The metricsFormat attribute can contain literal text and any or all of the following metrics variables:
The following example shows attributes for the metrics logger:
...
<service class="jrunx.logger.LoggerService" name="LoggerService">
��<attribute name="errorEnabled">true</attribute>
��<attribute name="warningEnabled">true</attribute>
��<attribute name="infoEnabled">true</attribute>
��<attribute name="debugEnabled">false</attribute>
��<attribute name="metricsEnabled">true</attribute>
��<attribute name="metricsLogFrequency">10</attribute>
��<attribute name="metricsFormat">Web threads (busy/total): {jrpp.busyTh}/{jrpp.totalTh}
�� Sessions: {sessions} Total Memory={totalMemory} Free={freeMemory}</attribute>
...
The following example shows the log message for this format:
02/14 16:11:53 metrics Web threads (busy/total): 0/2 Sessions: 2 Total Memory=7252 Free=3103
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/jrun/4/JRun_Administrators_Guide/netmon2.htm
Comments
ColonelNusterd said on Mar 3, 2004 at 7:40 AM :