Am 22.09.2022 um 22:01 schrieb Rainer Jung:
I see a problem and wanted to do a quick heads up before double checking:

When looking at the MBeans via the jmxproxy in the manager webapp, especially the Catalina:type=RequestProcessor,worker="http-nio-<PORT>",name=HttpRequest<NUM>, version 9.0.66 misses lots of attributes we previously made available:

bytesReceived
bytesSent
errorCount
lastRequestProcessingTime
maxRequestUri
maxTime
processingTime
requestCount
stage
workerThreadName

The attributes that are still available are:

contentLength
currentQueryString
currentUri
globalProcessor
method
modelerType
Name
peerAddr
protocol
remoteAddr
remoteAddrForwarded
requestBytesReceived
requestBytesSent
requestProcessingTime
rpName
serverPort
virtualHost

It seems the recent 10.0 and 10.1 suffer from the same problem.

I noticed this during testing, because I use tooling that is based on parts of this MBean info.

Best regards,

Rainer

The logs show (just an example, one such block for any missing attribute):

2022-09-22 18:11:06,791 141650 ERROR [https-jsse-nio-8144-exec-9] org.apache.catalina.mbeans.MBeanDumper (MBeanDumper.java:106) - Error getting attribute [workerThreadName] for object name [Catalina:type=RequestProcessor,worker="http-nio-8180",name=HttpRequest1] javax.management.ReflectionException: Cannot find getter method [setWorkerThreadName] on resource [org.apache.coyote.RequestInfo@380a60fd] at org.apache.tomcat.util.modeler.ManagedBean.getGetter(ManagedBean.java:461) ~[tomcat-coyote.jar:9.0.66] at org.apache.tomcat.util.modeler.BaseModelMBean.getAttribute(BaseModelMBean.java:167) ~[tomcat-coyote.jar:9.0.66] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:641) ~[?:?] at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678) ~[?:?] at org.apache.catalina.mbeans.MBeanDumper.dumpBeans(MBeanDumper.java:89) ~[catalina.jar:9.0.66] at org.apache.catalina.manager.JMXProxyServlet.listBeans(JMXProxyServlet.java:194) ~[catalina.jar:9.0.66] at org.apache.catalina.manager.JMXProxyServlet.doGet(JMXProxyServlet.java:129) ~[catalina.jar:9.0.66]
...
Caused by: java.lang.NoSuchMethodException: org.apache.coyote.RequestInfo.setWorkerThreadName()
        at java.lang.Class.getMethod(Class.java:2108) ~[?:?]
at org.apache.tomcat.util.modeler.ManagedBean.getGetter(ManagedBean.java:454) ~[tomcat-coyote.jar:9.0.66]
        ... 35 more

Regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to