Re: backlog measurement

2008-04-02 Thread srinivasch
Hi Adrew/Filip, I guess I am in similar situation as Andrew, I am trying to monitor my application through nagios and I was about to start writing a plugin to monitor AJP Queue size. I thought I could use andrews solution, but I am still unsure of the state of the patch he contributed and

Re: backlog measurement

2008-01-11 Thread Andrew Skiba
Hello Filip, Thank you again for your reply and for the links. I think that makes sense. Yes, I will end up with unmeasurable backlog after acceptQueue is full. But when the queue is empty, which is the normal operating mode, the backlog will be filled only for few milliseconds of context switch

Re: backlog measurement

2008-01-10 Thread Filip Hanik - Dev Lists
hi Andrew, the solution is a bit overkill and you may be misunderstanding the backlog concept. the concept behind the backlog, is when the app is too busy accepting connection, the kernel and its TCP stack will handle it for you. and by doing this, you can balance the pressure of new connect

Re: backlog measurement

2008-01-10 Thread Andrew Skiba
Hello Filip, thanks for your reply. You are absolutely right. I did this trick when I understood that it's not trivial to measure backlog in Java. I called it backlog because a normal system would have backlog of this size in the same conditions. For example, for maxThreads=10 and acceptCount=30

Re: backlog measurement

2008-01-10 Thread Filip Hanik - Dev Lists
I'm a bit confused on how you can measure backlog in Java. Backlog is a TCP stack implementation setting. Also, between TCP implementations, there is no firm definition of what backlog actually means. does it mean SYN_RCVD or ESTABLISHED but not yet accepted? If I read the implementation corre

Re: backlog measurement

2008-01-10 Thread Andrew Skiba
It works with tomcat from trunk now. I opened a bug and attached a patch for the new code. License and author specified as you said. Please review. http://issues.apache.org/bugzilla/show_bug.cgi?id=44199 On Jan 10, 2008 11:47 AM, Andrew Skiba <[EMAIL PROTECTED]> wrote: > Hi Peter, thanks for you

Re: backlog measurement

2008-01-10 Thread Andrew Skiba
Hi Peter, thanks for your reply, The name of Harish appears in the code by mistake. I started from DefaultSocketFactory written by Harish, but nothing remained from the original. So I am the author and I will include Apache license in the code. You are correct, it works only with java 5, and I ch

Re: backlog measurement

2008-01-10 Thread Peter Rossbach
HI Andrew, good idea, but why you can contribute a code from Harish Prabandham ([EMAIL PROTECTED]). We can only accept contributions from orignal author and with Apache 2 license included! I seems that this only work with java 5 and the code is designed for JIO HTTP tomcat 5.5. Open a