0

我正在使用 Jboss eap 6.1 alpha 运行我的 struts 应用程序。我注意到服务器日志中有很多与 org.hornetq.jms.server 相关的 DEBUG 消息。

我已经在 J​​boss eap 6.1 alpha 服务器的standalone.xml 文件中配置了我的 DB、JMS、HORNETQ 连接。

谁能告诉我,如何处理这个问题,因为这些消息(调试)会在几分钟内淹没我的服务器日志文件。

服务器日志

DEBUG [org.hornetq.jms.server] (Periodic Recovery) Returning the following list on getXAREsources:

 DEBUG [org.hornetq.jms.server] (Periodic Recovery) =======================================================================================

DEBUG [org.hornetq.jms.server] (Periodic Recovery) Returning the following list on getXAREsources:
13:16:53,953 DEBUG [org.hornetq.jms.server] (Periodic Recovery) server-id=fccb2b48-1d2b-11e4-830a-bdd16bd01a24, value=HornetQXAResourceWrapper [serverLocator=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=2605346d-2eae-11e4-afcb-abf5482a08bd, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0], discoveryGroupConfiguration=null], csf=ClientSessionFactoryImpl [serverLocator=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=2605346d-2eae-11e4-afcb-abf5482a08bd, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0], discoveryGroupConfiguration=null], connectorConfig=TransportConfiguration(name=2605346d-2eae-11e4-afcb-abf5482a08bd, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0, backupConfig=null], delegate=DelegatingSession [session=ClientSessionImpl [name=2af1bc76-2eae-11e4-afcb-abf5482a08bd, username=null, closed=false, factory = ClientSessionFactoryImpl [serverLocator=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=2605346d-2eae-11e4-afcb-abf5482a08bd, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0], discoveryGroupConfiguration=null], connectorConfig=TransportConfiguration(name=2605346d-2eae-11e4-afcb-abf5482a08bd, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0, backupConfig=null], metaData=()]@56bd6e3d], xaRecoveryConfigs=[XARecoveryConfig [transportConfiguration = [TransportConfiguration(name=2605346d-2eae-11e4-afcb-abf5482a08bd, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0], discoveryConfiguration = null, username=null, password=null]], instance=1798001212]
13:16:53,953 DEBUG [org.hornetq.jms.server] (Periodic Recovery) 

=======================================================================================

13:16:53,953 DEBUG [org.hornetq.jms.server] (Periodic Recovery) looking for recover at DelegatingSession [session=ClientSessionImpl [name=2af1bc76-2eae-11e4-afcb-abf5482a08bd, username=null, closed=false, factory = ClientSessionFactoryImpl [serverLocator=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=2605346d-2eae-11e4-afcb-abf5482a08bd, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0], discoveryGroupConfiguration=null], connectorConfig=TransportConfiguration(name=2605346d-2eae-11e4-afcb-abf5482a08bd, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0, backupConfig=null], metaData=()]@56bd6e3d] configuration [XARecoveryConfig [transportConfiguration = [TransportConfiguration(name=2605346d-2eae-11e4-afcb-abf5482a08bd, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0], discoveryConfiguration = null, username=null, password=null]]
13:16:53,953 DEBUG [org.hornetq.jms.server] (Periodic Recovery) looking for recover at DelegatingSession [session=ClientSessionImpl [name=2af1bc76-2eae-11e4-afcb-abf5482a08bd, username=null, closed=false, factory = ClientSessionFactoryImpl [serverLocator=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=2605346d-2eae-11e4-afcb-abf5482a08bd, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0], discoveryGroupConfiguration=null], connectorConfig=TransportConfiguration(name=2605346d-2eae-11e4-afcb-abf5482a08bd, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0, backupConfig=null], metaData=()]@56bd6e3d] configuration [XARecoveryConfig [transportConfiguration = [TransportConfiguration(name=2605346d-2eae-11e4-afcb-abf5482a08bd, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0], discoveryConfiguration = null, username=null, password=null]]
13:16:58,344 DEBUG [org.apache.catalina.session] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Start expire sessions StandardManager at 1409833018344 sessioncount 0
13:16:58,344 DEBUG [org.apache.catalina.session] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) End expire sessions StandardManager processingTime 0 expired sessions: 0
13:16:58,344 DEBUG [org.apache.catalina.session] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Start expire sessions StandardManager at 1409833018344 sessioncount 0
13:16:58,344 DEBUG [org.apache.catalina.session] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) End expire sessions StandardManager processingTime 0 expired sessions: 0
13:16:58,344 DEBUG [org.apache.catalina.session] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Start expire sessions StandardManager at 1409833018344 sessioncount 0
13:16:58,344 DEBUG [org.apache.catalina.session] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) End expire sessions StandardManager processingTime 0 expired sessions: 0

谢谢

4

1 回答 1

0

在您的 jboss-log4j.xml 文件中,将适当的类别更改为较低级别,例如 INFO、WARN、ERROR、FATAL。

该文件通常位于 ${JBOSS_HOME}/server/${SERVER}/conf/jboss-log4j.xml 中。

重启服务器

注意:您的默认记录器似乎在此文件中设置为 DEBUG

于 2014-12-16T05:09:47.070 回答