tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27315] - Coyote java.util.ConcurrentModificationException removing request processor
Date Tue, 15 Jun 2004 11:39:21 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27315>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27315

Coyote java.util.ConcurrentModificationException removing request processor

plynch@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|java.util.ConcurrentModifica|Coyote
                   |tionException               |java.util.ConcurrentModifica
                   |                            |tionException removing
                   |                            |request processor



------- Additional Comments From plynch@apache.org  2004-06-15 11:39 -------
Addtional changes found which may contribute to the problem. Perhaps
'processors' which is an ArrayList should be synchronized via
Collections.synchronizedList(new ArrayList(...)).

I am concerned because it appears that some object cannot be removed from a pool
and is therefore creating a memory leak.

Can one of the developers have a look to see if that is the solution?

===================================================================
RCS file:
/home/cvspublic/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/RequestGroupInfo.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
---
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/RequestGroupInfo.java
2003/01/20 23:43:41	1.1
+++
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/RequestGroupInfo.java
2004/01/15 13:16:49	1.2
@@ -13,6 +13,10 @@
         processors.add( rp );
     }
 
+    public void removeRequestProcessor( RequestInfo rp ) {
+        processors.remove( rp );
+    }
+
     public long getMaxTime() {
         long maxTime=0;
         for( int i=0; i<processors.size(); i++ ) {



Adjust summary to be clearer of the problem.

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


Mime
View raw message