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

            Bug ID: 65521
           Summary: httpd high CPU usage after jboss-remoting client exits
                    unexpectedly
           Product: Apache httpd-2
           Version: 2.4.48
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy_http
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 37990
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37990&action=edit
httpd error log

When httpd is used as a reverse proxy to WildFly, if a jboss-remoting Java
client (EJB client) exits unexpectedly (without closing the connection to httpd
/ WildFly), httpd enters a state where it causes high CPU usage. E.g.

top - 19:01:21 up 2 days, 22:42,  3 users,  load average: 0.29, 0.08, 0.02
Tasks:   1 total,   1 running,   0 sleeping,   0 stopped,   0 zombie
Cpu(s): 16.6%us, 27.6%sy,  0.0%ni, 52.3%id,  1.8%wa,  0.0%hi,  1.7%si,  0.0%st
Mem:  16333992k total, 15372600k used,   961392k free,   150668k buffers
Swap:  8241148k total,   483044k used,  7758104k free,  7163264k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 2807 httpspro  20   0 82524 2984 1532 R 84.6  0.0   0:25.94 httpd

If trace8 log level is activated, the logs are filled with lines like the
following:

[Thu Aug 26 15:37:02.854938 2021] [proxy:trace8] [pid 2085] proxy_util.c(4800):
[client 127.0.0.1:57485] proxy: HTTP: polling (client=14, origin=0)
[Thu Aug 26 15:37:02.854941 2021] [proxy:trace8] [pid 2085] proxy_util.c(4823):
[client 127.0.0.1:57485] AH10215: proxy: HTTP: woken up, 1 result(s)
[Thu Aug 26 15:37:02.854942 2021] [proxy:trace8] [pid 2085] proxy_util.c(4831):
[client 127.0.0.1:57485] proxy: HTTP: #0: client: 30/14
[Thu Aug 26 15:37:02.854944 2021] [proxy:trace8] [pid 2085] proxy_util.c(4800):
[client 127.0.0.1:57485] proxy: HTTP: polling (client=14, origin=0)
[Thu Aug 26 15:37:02.854946 2021] [proxy:trace8] [pid 2085] proxy_util.c(4823):
[client 127.0.0.1:57485] AH10215: proxy: HTTP: woken up, 1 result(s)
[Thu Aug 26 15:37:02.854948 2021] [proxy:trace8] [pid 2085] proxy_util.c(4831):
[client 127.0.0.1:57485] proxy: HTTP: #0: client: 30/14

The httpd logs (trace8 + dumpio) are attached. See error_log.

In order to resolve the issue, httpd needs to be restarted. The issue does not
reproduce when the following configuration directive is used:
ProxyWebsocketFallbackToProxyHttp Off

The issue was reproduced when both the Java client and httpd run on RHEL 6.7
(with WildFly 20). If the Java client runs on Windows the issue does not
reproduce.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to