JBoss LoggingMonitor Service
----------------------------
--- $Id: readme.txt 34694 2005-08-07 12:33:37Z dimitris $ ----
INTRODUCTION
The JBoss LoggingMonitor service is similar in purpose to the other monitoring
services provided as a part of JBossAS. The JBoss LoggingMonitor service
monitor's the specified attributes of a MBean periodically and logs their value
to the filename specified. This file can then be used for debugging and/or
charting JBoss services information based upon your specific use case(s).
The JBoss LoggingMonitor service graduated succesfully from the
"JBoss World Of MBeans", to the jboss codebase. You can read more
about this here: http://www.jboss.org/wiki/Wiki.jsp?page=JBossWorldOfMBeans.
Additional information about the service maybe found in the JBoss wiki:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossLoggingMonitor
Questions regarding the use of the JBoss LoggingMonitor service should be
directed to the "Management, JMX/JBoss" user forum.
INSTALLATION/USE
Place the ./lib/logging-monitor.jar file in the lib directory of your JBoss server
configuration, and hot-deploy your customized *-service.xml file to your server
configuration's deploy directory. Multiple *-service.xml files can be deployed
simultaneously utilizing this MBean. Examples of various *-service.xml files
can be found in the ./deploy subdirectory.
*-SERVICE.XML FILE FORMAT
The JBoss LoggingMonitor service MBean's configuration file format is the same
as most JBoss MBean services. Its DTD is specified at
http://www.jboss.org/j2ee/dtd/jboss-service_4_0.dtd.
The following is a description of the attributes and their possible values:
Attribute Description
--------- -----------
Filename The name of the file to which monitoring information will be
logged. This attribute can not be set to null or the be
empty.
AppendToFile Whether or not a monitor's log file should have information
appended to it, if it already exists. This attribute is *not*
required, and the default value is "true".
PatternLayout Controls the org.apache.log4j.PatternLayout for logging entries.
The default pattern is "%d %-5p [%c] %m%n".
RolloverPeriod The rollover period for the monitor's log file. Valid values
are MONTH, WEEK, DAY, HALFDAY, HOUR, and MINUTE (case
insensitive). This attribute is *not* required, and the
default value is DAY.
MonitoredObjects The list of objects (MBeans) and their corresponding
attributes to be monitored.
This parameter is specified as a XML fragment as follows:
<configuration>
<monitoredmbean name="[object name]"
logger="[logger name]">
<attribute>[attribute name]</attribute>
<attribute>[attribute name]</attribute>
...
</monitoredmbean>
...
</configuration>
[object name] is the name of the MBean to be monitored.
[logger name] the name of the logger to be used when logging
attribute information.
[attribute name] the name of an attribute to be logged.
As the XML fragment indicates, any number of MBeans can be
monitored, and any number of attributes for a given MBean can
be specified.
MonitorPeriod The frequency with which to log information (in milliseconds).
This attribute must have a non-zero, positive value.
AUTHORS
James Wilson, original code
Dimitris Andreadis, integration into the jboss codebase
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论









收起资源包目录





































































































共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
tumy_liu
- 粉丝: 0
- 资源: 4

上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

会员权益专享
安全验证
文档复制为VIP权益,开通VIP直接复制

- 1
- 2
- 3
- 4
- 5
- 6
前往页