Re: Exception with Comet in Tomcat with high load

2007-05-02 Thread Martin Perez
Sebastiaan, Yes you're right. I forgot to add something like isClosed() to your SynchronizedOutputStream so I can check if it's closed before writing. Anyways, I found that after a certain limit (for ex. 6000 -> 8000 users) the system starts to behave incorrectly. Some clients never get an answe

Re: Exception with Comet in Tomcat with high load

2007-05-01 Thread Sebastiaan van Erk
Hi, Did you synchronize the event.close() with same lock you use to write to the output stream (the SynchronizedOuputStream instance)? I saw exactly the same stack trace you are getting due to (incorrect) concurrent access to the CoyoteOutputStream. The NullPointerException suggest that the

Re: Exception with Comet in Tomcat with high load

2007-05-01 Thread Martin Perez
Hi, Thanks for the tip Sebastian, but it doesn't work for me. I added your class, wrapped all the output streams and synchronized close events but the result is the same. Exception in thread "MessageSender[]" java.lang.NullPointerException at org.apache.coyote.http11.InternalNioOutputBuff

Re: Exception with Comet in Tomcat with high load

2007-04-30 Thread Sebastiaan van Erk
Hi, I had the same problems. It was a synchronization issue with me. What I did was make a synchronized output stream wrapper (see attached file) which wraps all access to the output stream, and I synchronized on this output stream whenever I called event.close() on the Comet event (especiall

Exception with Comet in Tomcat with high load

2007-04-30 Thread Martin Perez
Hi all, I have been testing Tomcat comet support during the last days. I've created a test application that simulates data streaming to multiple clients. Clients open a connection to the server and the connection is hold open. In the server there are several "sender" threads that leverage comet s

Re: Comet in tomcat

2007-03-22 Thread Filip Hanik - Dev Lists
Vincent Demay wrote: Hi all, I'm working on server side pushing integration in Wicket, and I saw Tomcat6 implements comet : http://tomcat.apache.org/tomcat-6.0-doc/aio.html Have you got a complete example of an application using cometProcessor? I'm writing an example as we speak, but won't

Re: Comet in tomcat

2007-03-22 Thread Peter Kennard
Curious - with Comet I assume you can now have multiple servlet requests share a single thread if they are written cooperatively? I have just written a "client side" that does this with NIO. I am working on a system were a lot of small requests and body chunks are being processed. PK At 1

Re: Comet in tomcat

2007-03-22 Thread Rémy Maucherat
On 3/22/07, Vincent Demay <[EMAIL PROTECTED]> wrote: Hi all, I'm working on server side pushing integration in Wicket, and I saw Tomcat6 implements comet : http://tomcat.apache.org/tomcat-6.0-doc/aio.html Have you got a complete example of an application using cometProcessor? No real applicat

Comet in tomcat

2007-03-22 Thread Vincent Demay
Hi all, I'm working on server side pushing integration in Wicket, and I saw Tomcat6 implements comet : http://tomcat.apache.org/tomcat-6.0-doc/aio.html Have you got a complete example of an application using cometProcessor? How can I use NIO connector? Is there an implemantation of the Bayeux

Re: How about comet in TomCat

2007-01-31 Thread Mark Thomas
Le Phuoc Canh wrote: > Dear all, > I don't know does tomcat support comet, if anybody know, please show me how > to use it in tomcat. http://tomcat.apache.org/tomcat-6.0-doc/aio.html - To start a new topic, e-mail: users@tomcat

How about comet in TomCat

2007-01-31 Thread Le Phuoc Canh
Dear all, I don't know does tomcat support comet, if anybody know, please show me how to use it in tomcat. Thanks & Best regard.