Results 1 to 2 of 2
- 08-25-2009, 05:47 AM #1Member
- Join Date
- Aug 2009
- Rep Power
Performance issue - How to Queue and process Servlet Requests
I have a servlet running on unix platform. I am facing some performance issue.
The number of requests per second is huge and i need to do a lot of processing on it.
This is resulting in piling up the thread pool. And after some time the incoming requests are discarded.
We decided to make a queue to append the incoming the requests in it.
And run a separate stand alone java application to process the queue.
I have never used such queue and lets say i have a queue, how can my stand alone application listen to it.
I am stuck and need some quick help.
Thanks in advance
- 09-27-2009, 03:36 AM #2
i your servet container is tomcat, could you set up a second tomcat server instance, behind apache http server, using mod_jk, with the basic load balancing, so that if you had 2 application servers (possibly on different hosts then) the work load would be shared.
this assumes the application can support having two or more concurrent instances, that is it is stateless enough to not depend on information in an app instance a(ie a local database cache).
the idea is not to run a cluster, just more than one tomcat instance to be workers.
- By gilbertsavier in forum JDBCReplies: 0Last Post: 08-05-2009, 10:34 AM
- By hiranya in forum Threads and SynchronizationReplies: 2Last Post: 11-25-2008, 12:32 AM
- By mathes_n in forum Web FrameworksReplies: 8Last Post: 09-02-2008, 05:11 AM
- By gapper in forum Java ServletReplies: 1Last Post: 02-06-2008, 07:57 AM
- By eva in forum Advanced JavaReplies: 1Last Post: 01-17-2008, 01:44 PM