[JBoss JIRA] (MODCLUSTER-522) Memory leak in processing MCMP, wrong apr pool used for allocation
by Michal Karm Babacek (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-522?page=com.atlassian.jira.pl... ]
Michal Karm Babacek updated MODCLUSTER-522:
-------------------------------------------
Attachment: mod_cluster-mem.jpg
mod_cluster-mem1.jpg
> Memory leak in processing MCMP, wrong apr pool used for allocation
> ------------------------------------------------------------------
>
> Key: MODCLUSTER-522
> URL: https://issues.jboss.org/browse/MODCLUSTER-522
> Project: mod_cluster
> Issue Type: Bug
> Components: Native (httpd modules)
> Affects Versions: 1.3.1.Final, 2.0.0.Alpha1
> Environment: Solaris 10 x86_64, RHEL 6, Fedora 24, httpd 2.4.6, httpd 2.4.20
> Reporter: Michal Karm Babacek
> Assignee: Michal Karm Babacek
> Priority: Critical
> Attachments: mod_cluster-mem.jpg, mod_cluster-mem1.jpg
>
>
> There seems to be a wrong apr pool used for processing certain MCMP commands. We should use short life span pools for immediate processing and server-lifetime pools only for really persistent configuration. In the current state, with 20+ tomcat workers (1 alias and 1 context each) and virtually no client requests, we could see slow, but steady growth of heap allocated memory.
> TODO: Investigate the offending logic, make sure we ain't using long-lived pools for immediate processing.
> Illustrative memory overview - with constant number of Tomcats:
>
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 8 months
[JBoss JIRA] (MODCLUSTER-522) Memory leak in processing MCMP, wrong apr pool used for allocation
by Michal Karm Babacek (JIRA)
Michal Karm Babacek created MODCLUSTER-522:
----------------------------------------------
Summary: Memory leak in processing MCMP, wrong apr pool used for allocation
Key: MODCLUSTER-522
URL: https://issues.jboss.org/browse/MODCLUSTER-522
Project: mod_cluster
Issue Type: Bug
Components: Native (httpd modules)
Affects Versions: 1.3.1.Final, 2.0.0.Alpha1
Environment: Solaris 10 x86_64, RHEL 6, Fedora 24, httpd 2.4.6, httpd 2.4.20
Reporter: Michal Karm Babacek
Assignee: Michal Karm Babacek
Priority: Critical
There seems to be a wrong apr pool used for processing certain MCMP commands. We should use short life span pools for immediate processing and server-lifetime pools only for really persistent configuration. In the current state, with 20+ tomcat workers (1 alias and 1 context each) and virtually no client requests, we could see slow, but steady growth of heap allocated memory.
TODO: Investigate the offending logic, make sure we ain't using long-lived pools for immediate processing.
Illustrative memory overview - with constant number of Tomcats:
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 8 months
[JBoss JIRA] (MODCLUSTER-521) Old MSVC doesn't compile current 1.2.x codebase: mod_proxy_cluster
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-521?page=com.atlassian.jira.pl... ]
RH Bugzilla Integration commented on MODCLUSTER-521:
----------------------------------------------------
Jan Onderka <jonderka(a)redhat.com> changed the Status of [bug 1346877|https://bugzilla.redhat.com/show_bug.cgi?id=1346877] from ON_QA to VERIFIED
> Old MSVC doesn't compile current 1.2.x codebase: mod_proxy_cluster
> ------------------------------------------------------------------
>
> Key: MODCLUSTER-521
> URL: https://issues.jboss.org/browse/MODCLUSTER-521
> Project: mod_cluster
> Issue Type: Bug
> Components: Native (httpd modules)
> Affects Versions: 1.2.13.Final
> Environment: Windows
> Reporter: Michal Karm Babacek
> Assignee: Jean-Frederic Clere
> Priority: Critical
> Fix For: 1.2.14.Final
>
>
> {code}
> mod_proxy_cluster.c
> .\mod_proxy_cluster.c(1515) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
> .\mod_proxy_cluster.c(2062) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
> .\mod_proxy_cluster.c(2336) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
> .\mod_proxy_cluster.c(2337) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
> .\mod_proxy_cluster.c(3035) : warning C4244: 'return' : conversion from '__int64' to 'int', possible loss of data
> .\mod_proxy_cluster.c(3174) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
> .\mod_proxy_cluster.c(3196) : error C2275: 'proxy_context_table' : illegal use of this type as an expression
> .\mod_proxy_cluster.c(108) : see declaration of 'proxy_context_table'
> .\mod_proxy_cluster.c(3196) : error C2065: 'context_table' : undeclared identifier
> .\mod_proxy_cluster.c(3197) : error C2065: 'context_table' : undeclared identifier
> .\mod_proxy_cluster.c(3198) : error C2065: 'context_table' : undeclared identifier
> .\mod_proxy_cluster.c(3198) : warning C4047: '=' : 'int' differs in levels of indirection from 'proxy_context_table *'
> .\mod_proxy_cluster.c(3200) : error C2275: 'proxy_balancer_table' : illegal use of this type as an expression
> .\mod_proxy_cluster.c(127) : see declaration of 'proxy_balancer_table'
> .\mod_proxy_cluster.c(3200) : error C2065: 'balancer_table' : undeclared identifier
> .\mod_proxy_cluster.c(3201) : error C2065: 'balancer_table' : undeclared identifier
> .\mod_proxy_cluster.c(3202) : error C2065: 'balancer_table' : undeclared identifier
> .\mod_proxy_cluster.c(3202) : warning C4047: '=' : 'int' differs in levels of indirection from 'proxy_balancer_table *'
> .\mod_proxy_cluster.c(3204) : error C2275: 'proxy_node_table' : illegal use of this type as an expression
> .\mod_proxy_cluster.c(136) : see declaration of 'proxy_node_table'
> .\mod_proxy_cluster.c(3204) : error C2065: 'node_table' : undeclared identifier
> .\mod_proxy_cluster.c(3205) : error C2065: 'node_table' : undeclared identifier
> .\mod_proxy_cluster.c(3206) : error C2065: 'node_table' : undeclared identifier
> .\mod_proxy_cluster.c(3206) : warning C4047: '=' : 'int' differs in levels of indirection from 'proxy_node_table *'
> .\mod_proxy_cluster.c(3208) : error C2065: 'context_table' : undeclared identifier
> .\mod_proxy_cluster.c(3208) : warning C4047: 'function' : 'proxy_context_table *' differs in levels of indirection from 'int'
> .\mod_proxy_cluster.c(3208) : warning C4024: 'get_route_balancer' : different types for formal and actual parameter 4
> .\mod_proxy_cluster.c(3208) : error C2065: 'balancer_table' : undeclared identifier
> .\mod_proxy_cluster.c(3208) : warning C4047: 'function' : 'proxy_balancer_table *' differs in levels of indirection from 'int'
> .\mod_proxy_cluster.c(3208) : warning C4024: 'get_route_balancer' : different types for formal and actual parameter 5
> .\mod_proxy_cluster.c(3208) : error C2065: 'node_table' : undeclared identifier
> .\mod_proxy_cluster.c(3208) : warning C4047: 'function' : 'proxy_node_table *' differs in levels of indirection from 'int'
> .\mod_proxy_cluster.c(3208) : warning C4024: 'get_route_balancer' : different types for formal and actual parameter 6
> NMAKE : fatal error U1077: 'C:\cmsc\msvc\bin\amd64\cl.EXE' : return code '0x2'
> Stop.
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 8 months
[JBoss JIRA] (MODCLUSTER-521) Old MSVC doesn't compile current 1.2.x codebase: mod_proxy_cluster
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-521?page=com.atlassian.jira.pl... ]
RH Bugzilla Integration commented on MODCLUSTER-521:
----------------------------------------------------
Jan Onderka <jonderka(a)redhat.com> changed the Status of [bug 1346877|https://bugzilla.redhat.com/show_bug.cgi?id=1346877] from MODIFIED to ON_QA
> Old MSVC doesn't compile current 1.2.x codebase: mod_proxy_cluster
> ------------------------------------------------------------------
>
> Key: MODCLUSTER-521
> URL: https://issues.jboss.org/browse/MODCLUSTER-521
> Project: mod_cluster
> Issue Type: Bug
> Components: Native (httpd modules)
> Affects Versions: 1.2.13.Final
> Environment: Windows
> Reporter: Michal Karm Babacek
> Assignee: Jean-Frederic Clere
> Priority: Critical
> Fix For: 1.2.14.Final
>
>
> {code}
> mod_proxy_cluster.c
> .\mod_proxy_cluster.c(1515) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
> .\mod_proxy_cluster.c(2062) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
> .\mod_proxy_cluster.c(2336) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
> .\mod_proxy_cluster.c(2337) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
> .\mod_proxy_cluster.c(3035) : warning C4244: 'return' : conversion from '__int64' to 'int', possible loss of data
> .\mod_proxy_cluster.c(3174) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
> .\mod_proxy_cluster.c(3196) : error C2275: 'proxy_context_table' : illegal use of this type as an expression
> .\mod_proxy_cluster.c(108) : see declaration of 'proxy_context_table'
> .\mod_proxy_cluster.c(3196) : error C2065: 'context_table' : undeclared identifier
> .\mod_proxy_cluster.c(3197) : error C2065: 'context_table' : undeclared identifier
> .\mod_proxy_cluster.c(3198) : error C2065: 'context_table' : undeclared identifier
> .\mod_proxy_cluster.c(3198) : warning C4047: '=' : 'int' differs in levels of indirection from 'proxy_context_table *'
> .\mod_proxy_cluster.c(3200) : error C2275: 'proxy_balancer_table' : illegal use of this type as an expression
> .\mod_proxy_cluster.c(127) : see declaration of 'proxy_balancer_table'
> .\mod_proxy_cluster.c(3200) : error C2065: 'balancer_table' : undeclared identifier
> .\mod_proxy_cluster.c(3201) : error C2065: 'balancer_table' : undeclared identifier
> .\mod_proxy_cluster.c(3202) : error C2065: 'balancer_table' : undeclared identifier
> .\mod_proxy_cluster.c(3202) : warning C4047: '=' : 'int' differs in levels of indirection from 'proxy_balancer_table *'
> .\mod_proxy_cluster.c(3204) : error C2275: 'proxy_node_table' : illegal use of this type as an expression
> .\mod_proxy_cluster.c(136) : see declaration of 'proxy_node_table'
> .\mod_proxy_cluster.c(3204) : error C2065: 'node_table' : undeclared identifier
> .\mod_proxy_cluster.c(3205) : error C2065: 'node_table' : undeclared identifier
> .\mod_proxy_cluster.c(3206) : error C2065: 'node_table' : undeclared identifier
> .\mod_proxy_cluster.c(3206) : warning C4047: '=' : 'int' differs in levels of indirection from 'proxy_node_table *'
> .\mod_proxy_cluster.c(3208) : error C2065: 'context_table' : undeclared identifier
> .\mod_proxy_cluster.c(3208) : warning C4047: 'function' : 'proxy_context_table *' differs in levels of indirection from 'int'
> .\mod_proxy_cluster.c(3208) : warning C4024: 'get_route_balancer' : different types for formal and actual parameter 4
> .\mod_proxy_cluster.c(3208) : error C2065: 'balancer_table' : undeclared identifier
> .\mod_proxy_cluster.c(3208) : warning C4047: 'function' : 'proxy_balancer_table *' differs in levels of indirection from 'int'
> .\mod_proxy_cluster.c(3208) : warning C4024: 'get_route_balancer' : different types for formal and actual parameter 5
> .\mod_proxy_cluster.c(3208) : error C2065: 'node_table' : undeclared identifier
> .\mod_proxy_cluster.c(3208) : warning C4047: 'function' : 'proxy_node_table *' differs in levels of indirection from 'int'
> .\mod_proxy_cluster.c(3208) : warning C4024: 'get_route_balancer' : different types for formal and actual parameter 6
> NMAKE : fatal error U1077: 'C:\cmsc\msvc\bin\amd64\cl.EXE' : return code '0x2'
> Stop.
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 8 months
[JBoss JIRA] (MODCLUSTER-447) ProxyInfo not available in Tomcat
by Robert Bost (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-447?page=com.atlassian.jira.pl... ]
Robert Bost commented on MODCLUSTER-447:
----------------------------------------
Just noticed this issue was appearing the in 1.2.10 JIRA release notes. Was this issue resolved in 1.2.10?
> ProxyInfo not available in Tomcat
> ---------------------------------
>
> Key: MODCLUSTER-447
> URL: https://issues.jboss.org/browse/MODCLUSTER-447
> Project: mod_cluster
> Issue Type: Bug
> Components: Core & Container Integration (Java)
> Affects Versions: 1.2.10.Final
> Environment: mod_cluster 1.2.10, Tomcat 7.0.57
> Reporter: Alexander Schulz
> Assignee: Radoslav Husar
> Fix For: 1.2.10.Final
>
>
> I'm looking for a way to read proxy informations from within an application deployed on a Tomcat 7.
>
> With the jboss cli I can read the proxies info like this:
> /host=xyz/server=abc/subsystem=modcluster:read-proxies-info()
>
> I looked for the ModClusterListener MBean methods and properties in Tomcat 7. I found this method in ModClusterListener:
> /**
> * {@inhericDoc}
> *
> * @see org.jboss.modcluster.ModClusterServiceMBean#getProxyInfo()
> */
> @Override
> public Map<InetSocketAddress, String> getProxyInfo() {
> return this.service.getProxyInfo();
> }
>
> The problem is that I found no proxyInfo method or attribute at the ModClusterListener MBean.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 8 months
[JBoss JIRA] (MODCLUSTER-353) SocketTimeoutException in DefaultMCMPHandler when using httpd 2.4.x
by Jean-Frederic Clere (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-353?page=com.atlassian.jira.pl... ]
Jean-Frederic Clere resolved MODCLUSTER-353.
--------------------------------------------
Fix Version/s: 1.2.5.Final
Resolution: Done
> SocketTimeoutException in DefaultMCMPHandler when using httpd 2.4.x
> -------------------------------------------------------------------
>
> Key: MODCLUSTER-353
> URL: https://issues.jboss.org/browse/MODCLUSTER-353
> Project: mod_cluster
> Issue Type: Bug
> Affects Versions: 1.2.1.Final
> Environment: httpd-2.4.6 and mod_cluster-1.2.1.Final and above
> Reporter: Marco Danti
> Assignee: Jean-Frederic Clere
> Fix For: 1.2.5.Final
>
> Attachments: screenshot-1.png
>
>
> After upgrading a web server from Apache 2.2.x (with mod_cluster 1.2.0) to Apache 2.4.6 (with mod_cluster 1.2.1.Final), when I bring up JBoss (7.2.0.Final) I start seeing repeated errors like the following:
>
> 14:45:36,777 INFO [org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) IO error sending command CONFIG to proxy stw-1.priv.softeco.it/172.16.0.133:6666: java.net.SocketTimeoutException: Read timed out
> at java.net.SocketInputStream.socketRead0(Native Method) [rt.jar:1.7.0_21]
> at java.net.SocketInputStream.read(SocketInputStream.java:150) [rt.jar:1.7.0_21]
> at java.net.SocketInputStream.read(SocketInputStream.java:121) [rt.jar:1.7.0_21]
> at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283) [rt.jar:1.7.0_21]
> at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325) [rt.jar:1.7.0_21]
> at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177) [rt.jar:1.7.0_21]
> at java.io.InputStreamReader.read(InputStreamReader.java:184) [rt.jar:1.7.0_21]
> at java.io.BufferedReader.fill(BufferedReader.java:154) [rt.jar:1.7.0_21]
> at java.io.BufferedReader.readLine(BufferedReader.java:317) [rt.jar:1.7.0_21]
> at java.io.BufferedReader.readLine(BufferedReader.java:382) [rt.jar:1.7.0_21]
> at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.sendRequest(DefaultMCMPHandler.java:670)
> at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.sendRequests(DefaultMCMPHandler.java:437)
> at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.status(DefaultMCMPHandler.java:385)
> at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.status(DefaultMCMPHandler.java:349)
> at org.jboss.modcluster.ModClusterService.status(ModClusterService.java:468)
> at org.jboss.modcluster.container.catalina.CatalinaEventHandlerAdapter.lifecycleEvent(CatalinaEventHandlerAdapter.java:244)
> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:115) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
> at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1323) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
> at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1588) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
> at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1574) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
> at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 8 months