Re: NIOConnector and high memory consumption

2009-05-21 Thread sagi tomcat
Thanks Filip. - I think there's a bug with maxKeepAliveRequests. Each call to Http11NioProcessor.process() resets the keepAliveLeft parameter to the old maxKeepAliveRequests value. When a parsing of a HTTP request doesn't have enough input to complete the parsing stage, the process() returns Socke

Re: NIOConnector and high memory consumption

2009-05-21 Thread Filip Hanik - Dev Lists
yes, with maxKeepAliveRequests you would also throttle the connectionTimeout (or keepAliveTimeout, but that may be in 6.0.20) to reduce the amount of objects. I think you have a very valid use case, so I will add in some features around managing the size of these objects to ensure they don't ove

Re: NIOConnector and high memory consumption

2009-05-21 Thread sagi tomcat
Yes I am referring to the Http11NioProcessor objects. Playing with the cache size did not help, since I had to deal with ~7000 registered Http11NioProcessor objects (by registered I mean the object becoming a JMX managed object). That amount by itself consumed a lot of the old gen space (around ~60

Re: NIOConnector and high memory consumption

2009-05-21 Thread Filip Hanik - Dev Lists
hi Sagi, are you referring to the Http11NioProcessor objects? If so, you should be able to configure the cache size when connections are released. So you could also use maxKeepAliveRequests to limit it do you have the memory dump available? Filip sagi tomcat wrote: Hello, I am using Tomcat

NIOConnector and high memory consumption

2009-05-21 Thread sagi tomcat
Hello, I am using Tomcat 6.0.18 in a production server, serving thousands of users and hundreds of transactions per second. I am using the NIO connector. I've noticed a serious memory utilization problem which were traced to the fact that a single processor is dedicated to a connection and is not