You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2020/06/16 15:24:56 UTC

[Bug 64528] New: Regression in 8.5.56, no statistics in GlobalRequestProcessor MBean anymore

https://bz.apache.org/bugzilla/show_bug.cgi?id=64528

            Bug ID: 64528
           Summary: Regression in 8.5.56, no statistics in
                    GlobalRequestProcessor MBean anymore
           Product: Tomcat 8
           Version: 8.5.56
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: schlm3@gmail.com
  Target Milestone: ----

We have used GlobalRequestProcessor MBean recently to access embedded Tomcat's
performance metrics.
This worked very well with 8.5.55 and 8.5.54 (and maybe it worked before too,
but not tested).
With 8.5.56, all values of GlobalRequestProcessor are 0 now.

I made a diff of both versions (8.5.55 against 8.5.56) sourcecode but could not
find an obvious source of the problem. 

I have seen Bug 63362, but this is not related, since it worked before 8.5.56
and we are not using websockets.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 64528] Regression in 8.5.56, no statistics in GlobalRequestProcessor MBean anymore

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64528

--- Comment #5 from Mark Thomas <ma...@apache.org> ---
Correct HTTP/2 traffic isn't included in the the GlobalRequestProcessor metrics
either. I'll add a note to Bug 63362.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 64528] Regression in 8.5.56, no statistics in GlobalRequestProcessor MBean anymore

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64528

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
OK. I can't reproduce this with current 8.5.x and a standard Tomcat build.

Switching to the 8.5.56 tag...

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 64528] Regression in 8.5.56, no statistics in GlobalRequestProcessor MBean anymore

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64528

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|NEW                         |RESOLVED

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
And I can't reproduce it from the 8.5.56 tag with either a standard Tomcat
instance nor with the embedded JARs.

This looks like configuration error at this point. Please use the users mailing
list for further assistance.

http://tomcat.apache.org/lists.html#tomcat-users

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 64528] Regression in 8.5.56, no statistics in GlobalRequestProcessor MBean anymore

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64528

--- Comment #4 from Markus Schlegel <sc...@gmail.com> ---
Given that it is related to the http/2 protocol upgrade, I think it indeed is
related to Bug 63362.
Nevertheless, since Tomcat Performance optimisation literature all over the net
refers to GlobalRequestProcessor as a source of metrics, I would very welcome
if that MBean would also work for upgraded http/2 connections.
Also it is still unclear for me which code change caused this problem to appear
in 8.5.56.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 64528] Regression in 8.5.56, no statistics in GlobalRequestProcessor MBean anymore

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64528

--- Comment #3 from Markus Schlegel <sc...@gmail.com> ---
If I disable the http/2 upgrade, it works again:

    boolean ENABLE_HTTP2 = false;
    if (ENABLE_HTTP2) {
        Http2Protocol http2Protocol = new Http2Protocol();
        sslConnector.addUpgradeProtocol(http2Protocol);
    }

We had the ENABLE_HTTP2=true in our code before, such that our customers could
easily enable http/2 by simply adding the native library. However, most of the
time this was not the case. Therefore, http/2 was never really used in our app.
I have disabled it now by default and GlobalRequestProcessor is working again
now.
Please note, that using GlobalRequestProcessor for performance metrics is being
recommended in many documentations about Tomcat. People and tools might rely on
it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org