Tomcat 服务器状态页面未显示所有详细信息
Tomcat server status page does not show all details
我最近将我的 Tomcat 网络服务器从版本 8.0.30 升级到 9.0.13。
但是manager/status页面并没有像以前那样显示所有细节。有谁知道可能是什么原因?我比较了两个版本的文件,它们看起来是一样的。
我附上了以下两个版本的 Tomcat Web 应用程序管理器 -> 服务器状态 页面的一些屏幕截图。
版本 8.0.30
版本 9.0.13
提前致谢。
在日志中发现异常:
21-Dec-2018 10:52:22.732 SEVERE [http-nio-8181-exec-46] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [Status] in context with path [/manager] threw exception [javax.management.AttributeNotFoundException: Cannot find attribute maxThreads for org.apache.tomcat.util.net.SocketProperties@556cee20] with root cause
javax.management.AttributeNotFoundException: Cannot find attribute maxThreads for org.apache.tomcat.util.net.SocketProperties@556cee20
at org.apache.tomcat.util.modeler.ManagedBean.getGetter(ManagedBean.java:434)
at org.apache.tomcat.util.modeler.BaseModelMBean.getAttribute(BaseModelMBean.java:167)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:647)
at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678)
at org.apache.catalina.manager.StatusTransformer.writeConnectorState(StatusTransformer.java:304)
at org.apache.catalina.manager.StatusManagerServlet.doGet(StatusManagerServlet.java:336)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:607)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:791)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1417)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Looks like there is already a solved issue addressing this.
它声称这已在 Tomcat 9.0.14 和 8.5.36 中修复,它们都已发布。请升级验证。
我的tomcat版本是8.5.47,也遇到这个错误
Cannot find attribute maxThreads for org.apache.tomcat.util.net.SocketProperties@526c0a99
我最近将我的 Tomcat 网络服务器从版本 8.0.30 升级到 9.0.13。
但是manager/status页面并没有像以前那样显示所有细节。有谁知道可能是什么原因?我比较了两个版本的文件,它们看起来是一样的。
我附上了以下两个版本的 Tomcat Web 应用程序管理器 -> 服务器状态 页面的一些屏幕截图。
版本 8.0.30
版本 9.0.13
提前致谢。
在日志中发现异常:
21-Dec-2018 10:52:22.732 SEVERE [http-nio-8181-exec-46] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [Status] in context with path [/manager] threw exception [javax.management.AttributeNotFoundException: Cannot find attribute maxThreads for org.apache.tomcat.util.net.SocketProperties@556cee20] with root cause javax.management.AttributeNotFoundException: Cannot find attribute maxThreads for org.apache.tomcat.util.net.SocketProperties@556cee20 at org.apache.tomcat.util.modeler.ManagedBean.getGetter(ManagedBean.java:434) at org.apache.tomcat.util.modeler.BaseModelMBean.getAttribute(BaseModelMBean.java:167) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:647) at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678) at org.apache.catalina.manager.StatusTransformer.writeConnectorState(StatusTransformer.java:304) at org.apache.catalina.manager.StatusManagerServlet.doGet(StatusManagerServlet.java:336) at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:607) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:791) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1417) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748)
Looks like there is already a solved issue addressing this.
它声称这已在 Tomcat 9.0.14 和 8.5.36 中修复,它们都已发布。请升级验证。
我的tomcat版本是8.5.47,也遇到这个错误
Cannot find attribute maxThreads for org.apache.tomcat.util.net.SocketProperties@526c0a99