Re: Comet and multipart

2011-01-04 Thread sol myr
Filip, thanks for your reply. You are correct that the server simply writes data, which we can format any way we like. However, we were wondering whether Tomcat has any utilities/configurations to make it easier. E.g: 1) If we use multipart format (to separate between messages), does

Re: Handling Comet Timeouts with CometProcessor

2011-01-04 Thread Mark Thomas
On 03/01/2011 21:54, Joe Biron wrote: Hello, I've been making great progress with CometProcessor on Tomcat 6.0.29. I have a question about handling timeouts (and I did review this thread: http://www.mail-archive.com/users@tomcat.apache.org/msg55616.html). I want my clients to connect and

Re: Tomcat(5.5) Clustering and Load Balancing.

2011-01-04 Thread Mark Thomas
On 04/01/2011 06:47, Harsimranjit singh Kler wrote: So this means tomcat alone have not sufficent support for Load Balancing and clustering?. Correct. Tomcat does not provide a reverse proxy implementation. You main only way to achive is to use apache server HTTPD and connector, mod_jk

Re: Handling Comet Timeouts with CometProcessor

2011-01-04 Thread Joe Biron
Is there a better way to do this? Should my application handle these timeouts, and use the comet.timeout as a longer safety net? That sounds like the way to do it to me. Mark Thanks. It would be great if the comet event pump gave me a PRE_TIMEOUT subevent, but at least I know what I need to

Re: Handling Comet Timeouts with CometProcessor

2011-01-04 Thread Mark Thomas
On 04/01/2011 10:34, Joe Biron wrote: Is there a better way to do this? Should my application handle these timeouts, and use the comet.timeout as a longer safety net? That sounds like the way to do it to me. Mark Thanks. It would be great if the comet event pump gave me a PRE_TIMEOUT

Re: What is the healthy interval length for young gc?

2011-01-04 Thread Pid
On 1/3/11 7:54 PM, Pid wrote: On 1/3/11 2:41 PM, Leon Rosenberg wrote: On Mon, Jan 3, 2011 at 3:10 PM, Pid p...@pidster.com wrote: On 1/3/11 1:10 PM, Leon Rosenberg wrote: Actually no, in my understanding both are independent. I mean the gc doesn't start to copy over if young is full, it

Tomcat7 with mod_jk

2011-01-04 Thread ma...@geosar.ch
Hello, why I get this error:java.lang.ClassNotFoundException: org.apache.jk.config.ApacheConfig with tomcat6 this worked: Listener className=org.apache.jk.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so workersConfig=/usr/local/apache2/conf/workers.properties/

Re: Tomcat7 with mod_jk

2011-01-04 Thread Rainer Jung
Hi, On 04.01.2011 13:27, ma...@geosar.ch wrote: Hello, why I get this error:java.lang.ClassNotFoundException: org.apache.jk.config.ApacheConfig with tomcat6 this worked: Listener className=org.apache.jk.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so

Re: Tomcat7 with mod_jk

2011-01-04 Thread Mark Thomas
On 04/01/2011 12:36, Rainer Jung wrote: Hi, On 04.01.2011 13:27, ma...@geosar.ch wrote: Hello, why I get this error:java.lang.ClassNotFoundException: org.apache.jk.config.ApacheConfig with tomcat6 this worked: Listener className=org.apache.jk.config.ApacheConfig

Re: Tomcat7 with mod_jk

2011-01-04 Thread Rainer Jung
On 04.01.2011 13:41, Mark Thomas wrote: On 04/01/2011 12:36, Rainer Jung wrote: That listener was only used to generate automatic mod_jk configurations from Tomcat deployments. After starting Tomcat the config was written out and you had to manually copy it into your Apache/mod_jk installation.

Re: What is the healthy interval length for young gc?

2011-01-04 Thread Leon Rosenberg
On Tue, Jan 4, 2011 at 1:08 PM, Pid p...@pidster.com wrote: Having said that, you might also just try, instead:  -XX:+UseParallelGC  -XX:+UseAdaptiveSizePolicy I think UseParallelGC is default? I will try the second option. thanx Leon

Re: What is the healthy interval length for young gc?

2011-01-04 Thread Pid
On 1/4/11 1:38 PM, Leon Rosenberg wrote: On Tue, Jan 4, 2011 at 1:08 PM, Pid p...@pidster.com wrote: Having said that, you might also just try, instead: -XX:+UseParallelGC -XX:+UseAdaptiveSizePolicy I think UseParallelGC is default? I didn't think so, but I could be wrong. I've

Re: Tomcat 7

2011-01-04 Thread Peter Sparkes
Thanks Chuck Peter From: Peter Sparkes [mailto:pe...@didm.co.uk] Subject: Tomcat 7 Can anyone please point me to a tutorial on how to Install Tomcat 7 with virtual hosts on Debian Lenny http://tomcat.apache.org/tomcat-7.0-doc/setup.html

RE: What is the healthy interval length for young gc?

2011-01-04 Thread Caldarale, Charles R
From: Pid [mailto:p...@pidster.com] Subject: Re: What is the healthy interval length for young gc? I think UseParallelGC is default? I didn't think so, but I could be wrong. It has been the default for quite some time if multiple cores are available. Take a thread dump and count the

Setting up JMX crashes Tomcat 6

2011-01-04 Thread Nate Woodward
I'm trying to set up JMX on tomcat 6.0.19. Following the docs at http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html, I've added this line to CATALINA_HOME/conf/tomcat6.conf: CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=6969

Re: isapi_redirector.dll Problems - Bad Gateway?

2011-01-04 Thread amythyst
Process #4 just says system when I run the netstat command you gave me. I still see port 8009 listening on process #4 but now for the change I made I see port 8010 listening for my tomcat6.exe process. We do not have a standard tomcat installation. The application itself installs tomcat when

RE: Setting up JMX crashes Tomcat 6

2011-01-04 Thread Caldarale, Charles R
From: Nate Woodward [mailto:nate.woodw...@the-connection.com] Subject: Setting up JMX crashes Tomcat 6 I'm trying to set up JMX on tomcat 6.0.19. Consider moving up to a version that was actually released - 6.0.19 never made it out the door. I've added this line to

RE: Setting up JMX crashes Tomcat 6

2011-01-04 Thread Nate Woodward
Apologies, I'm new to this list and to tomcat in general, and I'm not terribly savvy on what is/is not standard on a tomcat install. We build our own tomcat RPMs from source with a few extra system scripts and patches applied. In the future, should I attach said patches when posting? At any

Re: What is the healthy interval length for young gc?

2011-01-04 Thread Pid
On 1/4/11 2:47 PM, Caldarale, Charles R wrote: From: Pid [mailto:p...@pidster.com] Subject: Re: What is the healthy interval length for young gc? I think UseParallelGC is default? I didn't think so, but I could be wrong. It has been the default for quite some time if multiple cores are

RE: Setting up JMX crashes Tomcat 6

2011-01-04 Thread Caldarale, Charles R
From: Nate Woodward [mailto:nate.woodw...@the-connection.com] Subject: RE: Setting up JMX crashes Tomcat 6 In the future, should I attach said patches when posting? No; best if you can demonstrate any problem on a released version of Tomcat, not a home-grown one. Unlikely that anyone here

Re: Comet and multipart

2011-01-04 Thread Filip Hanik - Dev Lists
On 1/4/2011 1:26 AM, sol myr wrote: Filip, thanks for your reply. You are correct that the server simply writes data, which we can format any way we like. However, we were wondering whether Tomcat has any utilities/configurations to make it easier. E.g: 1) If we use multipart format (to

How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-04 Thread ilya goberman
Hi, I use NIO HTTP Tomcat connector org.apache.coyote.Http11NioProtocol to implement Comet streaming to browsers and mobile devices. I would like to disable HTTP response chunked encoding to reduce bandwidth. The response will have header Connection: close with Content-Length header omitted.

Re: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-04 Thread Mark Thomas
On 05/01/2011 05:04, ilya goberman wrote: Hi, I use NIO HTTP Tomcat connector org.apache.coyote.Http11NioProtocol to implement Comet streaming to browsers and mobile devices. I would like to disable HTTP response chunked encoding to reduce bandwidth. How significant is the overhead with