tuning tomcat for push applications

2006-07-24 Thread Rajeev Jha
Hi Folks Past couple of months i was working to make tomcat perform with a push application. I have posted the results of our effort @ http://rjha94.blogspot.com/ I would welcome your comments and suggestions Thanks - Rajeev.

passing Multiple JkEnvVars

2006-05-23 Thread Rajeev Jha
Hi How do i pass multiple environment variables from apache to tomcat on mod_jk connector. All the documents say to put this in httpd.conf JkEnvVar ENV_VAR_NAME and read this as a request attribute in servlet engine. But this gives you ability to pass only one env variable. [ Actually we

Best practices : browser checks by tomcat container

2006-05-23 Thread Rajeev Jha
Hi Right now our application supports only new set of browsers (firefox and IE 6+) so we need to display a custom Unsupported Browser page when user hits a servlet via apache front-end URL . The way we are planning to do this is 1) set environment variables in apache based on browser match

Re: tomcat response slow

2006-05-19 Thread Rajeev Jha
what does the logs say? turn debug on and check the logs. Also see if the DB URL, user password etc are correct. And I dont think people will like your posting image blobs in mail. Thanks - Rajeev. Patil, Sheetal wrote: Hello all I am using tomcat 5.0 for my application. My application in

Re: Tomcat 5.0.28, Socket hanging on sending 20KB data for 16 minutes

2006-05-19 Thread Rajeev Jha
looking at http://www.jfree.org/jfreechart/javadoc/ , org.jfree.chart.encoders.EncoderUtil.writeBufferedImage does not look thread-safe. try checking sun.awt.image.codec.JPEGImageEncoderImpl.encode API. Try increasing the latency by re-requesting the servlet every 30 secs/ 1 min and see if

Re: Max. Concurrent User for Tomcat

2006-05-17 Thread Rajeev Jha
application could be doing lot of heavy-duty data processing/storage. - Rajeev Jha tcUser wrote: Hi, does anyone know what is the max. number of concurrent users for Tomcat? I have been searching for this information but can't really find an exact answer. Can anyone help? Thanks. -- View

Re: Reloadable context

2006-05-17 Thread Rajeev Jha
No idea on what you are missing. you try reloading the application from tomcat manager application. that works for me. Atleast you save the restart trouble. Akoulov, Alexandre [SB] wrote: Hi , So I've got to restart tomcat to get my change deployed. Any idea on what I am missing?

Re: i want to know load on Tomcat

2006-04-27 Thread Rajeev Jha
Your config (or Environment ;o) will fix the number of maximum simultaneous clients. Tomcat manager application has a server status link. you can use that or you can start catalina with JMX support and see number of active threads! balaraju mandala wrote: Dear Comunity, I want to know how

Re: i want to know load on Tomcat

2006-04-27 Thread Rajeev Jha
No clue if the manager application is available with 4.x. i have 5.5.x. maybe a reason to update ? if you are running your tomcat with jdk1.5 , you can enable JMX and see the number of active threads in JVM. balaraju mandala wrote: Hi Tang and Rajeev, Thank You very much for u r reply.

Re: about maxProcessors attribute

2006-04-27 Thread Rajeev Jha
PROTECTED] async]$ netstat -a -n|grep -E ^(tcp)| cut -c 68- | grep ESTABLISHED | wc -l 2228 F) conclusion ? am i missing something ? Thanks Rajeev Jha. Bill Barker wrote: Since MaxClients is so big, I'm assuming that you have a pre-fork MPM Apache. In this case, you are strongly recommended

Re: UnsatisfiedLinkError when loading DLL twice

2006-04-11 Thread Rajeev Jha
if the DLL in windows system 32 then it should be picked right up. have you registered this DLL or not ? if not then try registering this dll first. --- Ho, Sam [EMAIL PROTECTED] wrote: Hi, All My servlet use a DLL, currently the DLL is located at window system32 and in the webapp's

Re: Maximum number of simultaneous HTTP Requests / Performance

2006-04-03 Thread Rajeev Jha
NBIO will not help very much ;o) we are running such an application and want to migrate to apache/tomcat. The issue is, all the optimizations you hear about are done from the request's side which is of not much use in this case. The limiting factor would be * how many connections can you

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread Rajeev Jha
Remy Maucherat wrote: On 4/3/06, Rajeev Jha [EMAIL PROTECTED] wrote: Tp wrote: And there seems to be no workaround, because the connection will close after the doGet() and doPost() method finishes (is that actually true?). So, the only way to keep 3000 simultaneous connections

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread Rajeev Jha
I think everybody on the list here agrees that http is not the right sort of thing for a chat application. And most of the IM/chat applications do not run on http anyway. opening the sockets directly for such an application is better/easier any day. rant However, people do demand an

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread Rajeev Jha
TP If the thread servicing your request blocks, the browser will not quit. The browser would wait the min( browser time-out ,response stream is closed). this is the trick many people use. doGet(request, response){ out = response.getOutputStream(); // when you write something

Supporting maximum number of keep-alive connections

2006-03-22 Thread Rajeev Jha
On 3/17/06, Rajeev Jha [EMAIL PROTECTED] wrote: What's your ratio of Apache to Tomcat instances? You may want to look into using squid as a reverse proxy to Tomcat, it is very good at supporting a huge number of concurrent clients without having to spawn a thread or process for each one. I

Re: Supporting maximum number of keep-alive connections

2006-03-22 Thread Rajeev Jha
On 3/22/06, Remy Maucherat [EMAIL PROTECTED] wrote: On 3/22/06, Rajeev Jha [EMAIL PROTECTED] wrote: In our case,the servlet is interfacing to the back-end that sends async events from time to time. As you may have noticed, the HTTP protocol (and the Servlet API) are not designed

Supporting maximum number of keep-alive connections

2006-03-17 Thread Rajeev Jha
Hi I would like to try out tomcat for new my application. I have used tomcat for quite some time, but the nature of new application is very different from the traditional request-response model. We want to build an application that supports about 1024 keep-alive connections per machine.(2 GB, x86