删除某些JBOSS记录器的日志记录

时间:2018-09-25 12:41:28

标签: jboss

如何在JBOSS 6.3中删除某些记录器的日志记录(或设置较低的级别)。

我的console.logserver.logorg.jboss.jca.adapters.jdbc.WrappedConnection上有很多条目,增长速度太快了

我尝试过:

  <logger category="org.jboss.jca.adapters.jdbc.WrappedConnection">
                <level name="ERROR"/>
            </logger>

内部

  ../hcname/domain/configuration/domain.conf 

个人资料ha(应用运行所在的个人资料)。

无论如何,日志文件总是充满很多警告。

以下是记录的消息的示例:

[Server:app] 2018-09-25 16:40:27 WARN  [org.jboss.jca.adapters.jdbc.WrappedConnection] (ajp-server-vip1.domain.com/10.128.201.27:8049-19) Closing a result set you left open! Please close it yourself.: java.lang.Throwable: STACKTRACE
[Server:app]  at org.jboss.jca.adapters.jdbc.WrappedStatement.registerResultSet(WrappedStatement.java:1357)
[Server:app]  at org.jboss.jca.adapters.jdbc.WrappedStatement.getResultSet(WrappedStatement.java:740)
[Server:app]  at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.execPreparedStatement(JdbcControlImpl.java:315) [beehive-jdbc-control.jar:1.0.2]
[Server:app]  at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.invoke(JdbcControlImpl.java:225) [beehive-jdbc-control.jar:1.0.2]
[Server:app]  at com.boehringer.serialnumber.jdbc.SubmissionDbCtrlBean.getAllSubmissionsLockedByUser(SubmissionDbCtrlBean.java:737) [SerialNumber.jar:]
[Server:app]  at com.boehringer.serialnumber.custom.SubmissionCtrlImpl.getAllLockedSubmissionsLockedByUser(SubmissionCtrlImpl.java:1209) [SerialNumber.jar:]
[Server:app]  at com.boehringer.serialnumber.custom.SubmissionCtrlBean.getAllLockedSubmissionsLockedByUser(SubmissionCtrlBean.java:242) [SerialNumber.jar:]
[Server:app]  at global.SerialNumberController.onDestroy(SerialNumberController.java:350) [classes:]
[Server:app]  at org.apache.beehive.netui.pageflow.PageFlowManagedObject.destroy(PageFlowManagedObject.java:104) [beehive-netui-core.jar:1.0.2]
[Server:app]  at org.apache.beehive.netui.pageflow.FlowController.destroy(FlowController.java:610) [beehive-netui-core.jar:1.0.2]
[Server:app]  at org.apache.beehive.netui.pageflow.PageFlowManagedObject.valueUnbound(PageFlowManagedObject.java:154) [beehive-netui-core.jar:1.0.2]
[Server:app]  at org.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1578) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
[Server:app]  at org.apache.catalina.session.StandardSession.expire(StandardSession.java:740) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
[Server:app]  at org.apache.catalina.session.StandardSession.expire(StandardSession.java:644) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
[Server:app]  at org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1092) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
[Server:app]  at org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:150) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
[Server:app]  at Controller.logout(Controller.java:304)
[Server:app]  at sun.reflect.GeneratedMethodAccessor511.invoke(Unknown Source) [:1.7.0_181]
[Server:app]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_181]
[Server:app]  at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_181]
[Server:app]  at org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:879) [beehive-netui-core.jar:1.0.2]
[Server:app]  at org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809) [beehive-netui-core.jar:1.0.2]
[Server:app]  at org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:478) [beehive-netui-core.jar:1.0.2]
[Server:app]  at org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:306) [beehive-netui-core.jar:1.0.2]
[Server:app]  at org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:336) [beehive-netui-core.jar:1.0.2]
[Server:app]  at org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execute(FlowControllerAction.java:52) [beehive-netui-core.jar:1.0.2]
[Server:app]  at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) [struts.jar:1.2.9]
[Server:app]  at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(PageFlowRequestProcessor.java:97) [beehive-netui-core.jar:1.0.2]
[Server:app]  at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunner.execute(PageFlowRequestProcessor.java:2044) [beehive-netui-core.jar:1.0.2]
[Server:app]  at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors.wrapAction(ActionInterceptors.java:91) [beehive-netui-core.jar:1.0.2]
[Server:app]  at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:2116) [beehive-netui-core.jar:1.0.2]
[Server:app]  at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) [struts.jar:1.2.9]
[Server:app]  at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:556) [beehive-netui-core.jar:1.0.2]
[Server:app]  at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:853) [beehive-netui-core.jar:1.0.2]
[Server:app]  at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:631) [beehive-netui-core.jar:1.0.2]
[Server:app]  at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:158) [beehive-netui-core.jar:1.0.2]
[Server:app]  at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) [struts.jar:1.2.9]
[Server:app]  at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
[Server:app]  at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
[Server:app]  at org.apache.catalina.core.appFilterChain.internalDoFilter(appFilterChain.java:295) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
[Server:app]  at org.apache.catalina.core.appFilterChain.doFilter(appFilterChain.java:214) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
[Server:app]  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
[Server:app]  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
[Server:app]  at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.event(JBossWebContext.java:91)
[Server:app]  at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.invoke(JBossWebContext.java:72)
[Server:app]  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:512) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
[Server:app]  at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.8.Final-redhat-2.jar:7.5.8.Final-redhat-2]
[Server:app]  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
[Server:app]  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
[Server:app]  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
[Server:app]  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
[Server:app]  at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:490) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
[Server:app]  at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:420) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
[Server:app]  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1]
[Server:app]  at java.lang.Thread.run(Thread.java:748) [rt.jar:1.7.0_181]

1 个答案:

答案 0 :(得分:1)

最好使用CLI或Web控制台进行更改,而不是手动编辑配置文件。对于日志记录尤其如此,因为在启动操作期间会使用logging.properties文件,该文件会在进行管理配置更改时更新。

这是一个CLI命令,可以配置记录器,而不必重新启动服务器。

/profile=ha/subsystem=logging/logger=org.jboss.jca.adapters.jdbc.WrappedConnection:add(level=ERROR)