Taking in many concurrent requests via a single servlet

Hi,
My objective for this topic is to find a way to make my tomcat app able to handle as many as possible concurrent requests.
My app spec is
-servlet running on Tomcat 5.0
My app is a mobile text messaging app that receives requests via a single servlet, called InboundRequest. This servlet will,
1. Read the HTTP params in the request
2. Decide to which other servlet classes it should forward to (RequestDispatcher)
3. The recipient servlet will read the HTTP param, process it and outputs the data via OutboundResponse java class.
So, my issue is,
1. What factor decides the number of concurrent requests my InboundRequest servlet can handle? Is it my code or Tomcat itself or the server hardware
2. Since I'm using Request Dispatcher forwarding, if say i have a request that takes 5 seconds to complete the its task (to output the result via OutboundResponse), will in inhibits/stops any other requests that comes in during that 5 seconds?
I appreciate all expertise i can get.
Regards,
Mel.

There is nothing to worry about that concurrent request handling as container will create one instance of your servlet and then for each client request it will spwan a single thread which will handel the client request.If u r implementing SingleThreadModel then onle one thread will be spwan and it will handle the requests one by one .So it will be slower .

Similar Messages

  • How to run all Concurrent Requests in a single node in a multi node env

    DB;11.1.0.7
    Oracle Apps:12.1.1
    OS:Linux 86x64 Red Hat
    PCP setting is enabled.
    Load Balancer is enabled.
    APPLDCP=ON
    Could anyone please share - How to run all Concurrent Requests in a single node in a multi node env where there are 3 web tier nodes?
    Thanks for your time!
    Regards,

    PCP setting is enabled.
    Load Balancer is enabled.
    APPLDCP=ON
    Could anyone please share - How to run all Concurrent Requests in a single node in a multi node env where there are 3 web tier nodes?Concurrent requests will be processed by the CM nodes and it has nothing to do with the 3 web tier nodes you have.
    If you mean the database instance, then please see these docs.
    How to run a concurrent program against a specific RAC instance with PCP/RAC setup? [ID 1129203.1]
    In A PCP/RAC Configuration, How To Find Out On Which RAC Instance FNDSM Is Currently Running? [ID 1089396.1]
    Thanks,
    Hussein

  • How many concurrency request can handel in wcf

    hi
    i have a question :
    wcf support how many concurrency request a time ?
    for example i have a wcf service and a lot of (10000) client that call the wcf together 
    thanks

    I think all your clients will be able to use your WCF Service regardless of Concurrency.
    I believe that concurrency is related to the threading of the individual request. Not completely sure about that part though. But, all your clients should be able to access the service regardless of the concurrency. That would be more based on the stress on
    your server.
    Developing is part of being a developer.

  • Is there a way to send output from a Concurrent Request via email in r12?

    We are looking for a way to send emails out from the Concurrent Request output in r12.
    Discussions internally have involved using Unix procedures/commands but we were looking for an EBS integrated solution if one is available.
    I did find document 811716.1which seems to provide a solution, but the patches and information given are for 11i (we are r12). If this functionality is available in r12, is there any further documentation we can use?
    Any assistance would be appreciated.
    Thanks.
    Kevin
    Edited by: user3065048 on Jul 21, 2009 2:52 PM

    Duplicate post.
    Is there a way to send output from a Concurrent Request via email in r12?
    Re: Is there a way to send output from a Concurrent Request via email in r12?

  • How many Concurrent Requests handled in XI?

    Hi,
    Can anybody let me know how many concurrent requests can be handled in XI and where to check this number for a syncronous scenario ?
    Thanks
    Sreenivas

    Hi sreenivas,
    it depends mainly on the number of work process available in your system and on the tuning of java vm.
    Have a look at <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70ada5ef-0201-0010-1f8b-c935e444b0ad">SAP Exchange Infrastructure Tuning Guide XI 3.0</a>
    Hope it helps,
    best regards,
    Sergio

  • How many concurrent requests can WAS support?

    Hi all,
      I want to know what is the maximum number of concurrent users/requests that can WAS6.4(latest pack) support? We are looking at around 40,000 concurrent users.. Is this feasible? If yes what is the max possible?
    Regards,
    Harsh
    PS: Would appreciate a prompt response:)

    Hi Harsh,
    I was just reading those notes that Alexander found as well and I would have to agree with him the that webdispatcher could handle the 10,000. However you have to remember that if you are running a BSP or other application located on a WAS server you have the constraints there as well.
    Now I've just done some load testing with some stress tools.
    500 concurrent connections on a Linux server dual processor 4 GB RAM and I started to see some major performance problems. Any higher and the system or at least the apps would have started to hang I think.
    So with 40,000 connections even with loadbalancing and application instances you are going to need some major hadware to handle the connections.
    Now back to your other questions.
    The WAS and the R/3 are built on the BC level, which means  the basic connections are made at that level and effected by these parameters. With a 640 Java Stack only then you have the J2EE engine only in which case the BC level is basically not there at least not like the ABAP level.
    Now if you have a single JSP page deployed on your J2EE and not making any RFC calls to your backend then you only have to worry about the dispatcher connections. However, from my understanding if you make those RFC calls then you have the connections of the backend to worry about as well.
    Now if you can gives a bit more detail of what the connections (all these 40,000 are doing) then perhaps we can come up with some alternatives that will help out.
    As for being intimidated, don't be, I'm learning this from searching as we go along as well

  • Concurrent request is taking a lots of time to run

    Hi,
    I have one query regarding ICM.
    one of the concurrent request is taking a lots of time to run. How can I solve the issue.
    Is there any steps to diagnose this issue?
    Please reply.
    Regards,
    Manish

    Hi,
    How we can find that particular request are taking long time?See your other thread.
    Concurrent request taking long time
    Concurrent request taking long time
    what is "gather statistrics schema" concurent program and what it does?See (Note: 419728.1 - How To Gather Statistics On Oracle Applications 11.5.10(and above) - Concurrent Process,Temp Tables, Manually).
    Regards,
    Hussein

  • CE Bank Statement Load and Import Concurrent Request

    Hi All,
    I am trying to submit a concurrent request via PL/SQL for CE Bank Statement Loader but request_id always returns 0..
    Being new to here i somehow cannot understand why so as I've tried this with GL's SQLLDR for the Journal Import.
    Here's a part of my code:
    fnd_global.APPS_INITIALIZE (1090,50563,260);
    Commit;
    reqid := FND_request.submit_request('CE','CESSQLLDR',null,null,FALSE,'LOAD',1000,'filename.dat','/dir/filedir/statementdir',3205,11066,null,null,null,null,null,'N',null,null);
    Commit;
    dbms_output.put_line(reqID);
    Forgive me if this is such novice problem.
    Thanks in advance!

    Hi,
    Then I guess you've got an error in the parameters somewhere - is the concurrent program registered under the application you are passing in as the application short name? Have you got the program short name correct?
    Regards,
    Gareth

  • Notify via email upon concurrent request failure

    Hi,
    I would like suggestions on the best way to solve the problem of being able to notify user(s) via email upon the failure of a concurrent request. Apps has the built-in ability to notify upon completion, not just upon failure. I want to limit the need for any user/passwd info being exchanged.
    So far, my best bet I think is a dbms_job.
    Any suggestions other than writing a shell script to login to the database and check on fnd_concurrent_requests?
    Seems like this would be a good feature to add for Apps.

    All you need is to create a trigger as below
    CREATE OR REPLACE TRIGGER sgldba.sgl_concurrent_request_status
    after insert or update on apps.fnd_concurrent_requests
    for each row
    WHEN (new.status_code in ('E','G','T'))
    begin
    insert into sgldba.sgl_concurrent_request_track values (
    :new.request_id,
    :new.status_code,
    :new.actual_start_date,
    :new.actual_completion_date);
    end sgl_concurrent_request_status;
    I am having the trigger to update a table sgldba.sgl_concurrent_request_track with the request_id , status_code , actual start date , actual completion date .
    You can proceed further by adding addition information to the trigger like sending mail
    Regards

  • Concurrent request taking more time than usual

    HI,
    I am running a concurrent request : Payables transfer to general Ledger
    which was usually getting completed within 5 minutes....but now it is taking hours to complete....Log file not showing any errors as such...
    I increased the standard mangers processes and bounce the Concurrent managers n Database as well...i also ran cmclean.sql, but no luck..
    Can anybody suggest me the approach for this problem...
    thanks n regards,
    Sajad

    Check the enable trace option in the concurrent program definitions.
    After that run the concurrent request and get the trace file in udump directory and tkprof it, and analyze which is the query that is causing the issue.

  • Drive only ouput of a single Concurrent Request to a specific Location .

    Hi , My requirement is to drive the output of a specific concurrent request to a location where i can find the output of that particular request only .
    It should go to a location which i specify for that request instead of going to $APPLCSF/$APPLOUT .
    Regards
    Edited by: 836778 on Feb 15, 2011 1:54 AM

    Hi,
    Please see the following document may help
    Enhancing Oracle Applications Concurrent Processing [ID 164085.1]
    Example1 and 2 of chapter 3
    Thanks,
    Taher

  • How to assign particular concurrent requests to sparate concurrent managers

    How to assign particular Users concurrent requests to custom or Sparate concurrent managers
    OS : Linux
    Apps: 11.5.10.2

    Hi,
    This can be done via "Specialization Rules".
    How to Create a Custom Concurrent Manager [ID 170524.1
    How to Split the Load of Work to Many Concurent Managers [ID 473310.1]
    Oracle Applications System Administrator's Guide - Configuration (zipped) -- Page 7-14
    http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115sacg.zip
    Make sure you bounce the CM once you are done.
    Thanks,
    Hussein

  • Recommended spec can take how many concurrent users

    With the following recommended spec from Adobe website, how many concurrent users ?
    Flash Media Streaming Server system requirements
    OS : Windows Server 2003 SP2 or Windows 2008
    H/W Requirements
    -          3.2GHz Intel Pentium 4 Processor (dual Intel Xeon or faster recommended)
    -          2GB RAM ( 4GB recommended)
    -          1Gb Ethernet card

    Hi,
    The number of concurrent users really depends on your setup.
    You might want to read the blogpost from the FMS PM on this at: http://blogs.adobe.com/ktowes/2008/08/breaking_1gbps_on_flash_media.html
    "I’ve received a lot of requests lately about how much media can be delivered through Flash Media Server (FMS). As you may or may not know, FMS is held to the same limitations as most other streaming or HTTP servers, that is the available bandwidth, disk speed, memory and CPU power on a single server. When we introduced Flash Media Server 3 we increased the performance significantly to allow you to take full advantage of hardware and ultimately help to reduce the total cost of ownership. ........... read on"
    Greetz,
    Klaasjan

  • Sql tuning advisor for concurrent requests

    Dear all,
    I am having one doubt in my mind from very long time.Can we use sql tuning advisor from 10G(EM) to tune concurrent requests and reports?
    Regards

    Hi Helios,
    I am just thinking wiht voice. If you have one code blog which is typed in sql-pl/sql for your concurrent request, its going and run on dbtier. So it has one SQL'ID and also can be check on AWR report. So i belive you can use sqltuning adviser for to can tune related sqlAFAIK, some Instances a single concurrent request may contain multiple SQLID's and in that scenario tuning approach is difficult. Any information how can we consolidate it. If tune one specific sql then the explain plan for other sql become more worst. I came across this situation so many time.
    Any information or inputs on this is really appreciated.
    thanks,
    X A H E E R

  • How many concurrent connections that an ACS server version 4.2 latest patch can handle?

    I have about 50 routers and layer-3 switches that autheticate via tacacs+.  The AAA server used to be on a Linux machine running open-source tacacs+ built by me.  I have a perl script that will log into all 50 devices at the same time to collect statistics.  This script is multi-threaded.  Everything is working fine so far.
    I recently out-sourced the AAA function to a 3rd party company, not by my choice.  The 3rd party uses Cisco ACS version 4.2 with the latest patch running on Windows 2003 Enterprise Server with 16GB RAM and quad processors with quad-cores, IBM x3650-M2 hardware. The connectivity between the 3rd party and my company is through a DS-3 connection.  Maximum bandwidth over this DS-3 connection is less than 10Mbps at most.
    I noticed that for the past 3 months I have multiple failures with this perl script due to authentication failure with the ACS server.  If I just run the script again a few routers/switches, there are no issues; however, whenever I started the script to log into 50 devices all at the same time, it will fail.  If I made the configuration on all routers/switches to point back to the old open-source tacacs+ server, the issue goes away.  The minute I switched back to the
    new ACS server, the issue came back.  If I modified the script to hit one device at a time, it works fine.  I think it is the ACS server can not handle a lot
    of AAA requests at the same time.
    Does anyone know how many concurrent connections that an ACS 4.2, with latest patches on Windows 2003 Enterprise Server with lot of memory and CPU power, can handle?  I can't seem to find this anywhere on Cisco website.
    Thanks in advance.

    No, Im not saying ACS cannot cope.
    Concurrency and latency are very different things. ACS CSTacacs can handle many 100s of simple authentications/authorisations per second with users in the internal database. If 1000s of devices all send traffic in the same instant it would take some seconds to work through the backlog of traffic.
    Also, worth considering that a limited number of tasks within ACS (or threads) can actually handle a much greater number of "logins" because they are generally multi-message allowing ACS to keep lots of plates spinning.
    If users are in an external databases the latency (per authentication) can increase depending on where the users are (eg Windows AD) and if bad enough can have a serious effect on the overall authentication rate. At which point customers normally turn to load balancing.
    If your device timeouts are 20 seconds (totally reasonable) I suggest the issue is more likely to be something else... a bug, perhaps specific to v4.2?

Maybe you are looking for