Results 1 to 2 of 2
  1. #1
    gemgb is offline Member
    Join Date
    Aug 2009
    Posts
    1
    Rep Power
    0

    Default Performance issue - How to Queue and process Servlet Requests

    Hello All,

    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

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    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.

Similar Threads

  1. mysql query performance issue
    By gilbertsavier in forum JDBC
    Replies: 0
    Last Post: 08-05-2009, 11:34 AM
  2. Performance Issue
    By hiranya in forum Threads and Synchronization
    Replies: 2
    Last Post: 11-25-2008, 12:32 AM
  3. Performance issue
    By mathes_n in forum Web Frameworks
    Replies: 8
    Last Post: 09-02-2008, 06:11 AM
  4. Dispatching requests to other Servlet
    By gapper in forum Java Servlet
    Replies: 1
    Last Post: 02-06-2008, 07:57 AM
  5. taglibs performance issue
    By eva in forum Advanced Java
    Replies: 1
    Last Post: 01-17-2008, 01:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •