Changing number of threads with traffic vol...

I have a java app that can dynamicaly change its number of threads, the threads take a request, do some processing and send a response.
It is obviously faster to have one thread if there is only one user, and N threads when there are many users, and there is an overhead in creating new threads.
I need some logic/rules to find the optimum number of threads at a given time. can anyone help???

hi,
if the number of required threads changes, then why don't you use the so called "thread pooling" techniques?
Just see http://developer.java.sun.com/developer/Books/threads/chap13.pdf
best regards, Michael

Similar Messages

  • Tuning the good number of thread with Work Manager?

    Hi,
    I search some best practice or experience return on the max thread number on a weblogic managed server
    I try to explain: with WLS 8.1 and execute queue it was hard to tune the good number of thread but possible (with some processor and for an application we find that after 30 concurrent thread, there's lower performance because of switch on processeur, for others it was 45 for example)
    Now i can see sometimes more than 500 thread on one JVM and it seem to be very much for me!!
    we face some problem of response time in PRODUCTION, i can see sometimes more than 100 Stuck thread on a resource, so i think it's the reason of bad response time. But with Work Manager, it increase the number of thread to accept others request and the CPU stay at acceptable level (less than 50%) because the stuckthread are do nothing (waiting for resource)
    So i don't understand the good tuning to apply since WorkManager...ok it isn't normal to have a lot of stuck thread but if there's no matter about the max number of thread, is it useful to stop and restart managed server?
    do you think we can have have bad performance if there's a lot of thread?
    thank you for your experience return. If you have no idea just tell me how much thread you can see on your managed server in Production.

    up, up...
    we have always the same probleme in production: 50 stuck thread on each JVM since 15 days....
    the manages serveurs are in warning but don't seem to be disturb cause the work manager add more threads dynamicaly.
    Anyone have idea if this situation is a probleme for response time on other request ?
    reboot managed solve this situation but i would like to understand the consequence of this situation.
    thanks a lot for your experience.

  • Script to Automatically change number to text with Adobe LifeCycle Designer ES 8.2

    Hi there!
    I am extremely new to FormCalc and scripting and I was wondering if someone can tell me if my query is possible, if so, please help me!
    I would like for each time a user enters a number in a cell for the number to change to a letter or vice versa, please see below what I am trying to achieve with this task.
    Score as follows:
    A; Excellent, B; Good, C
    English Test
    Tutor 1 score
    Tutor 2 score
    Speaking
    A
    B
    Reading
    C
    B
    Writing
    C
    B
    Forming an argument
    B
    B
    English Grade = (Avg. Score)
    Is this at all possible? Is there another way to do this so that it is easy and the student average grades can be easily generated?

    All you need to do is open the PDF in Pro and extend the rights to be able to fill, save and print.
    To do this open the file in Acrobat Pro, File save as> Reader extended PDF > Enable additonal features
    Voila!!

  • How to fetch the latest change number from CDPOS Table..?

    Hi All,
    im trying to fetch teh change number from CDPOS with the below select, but my requirement is always i wants to fetch the latest change number.
              SELECT SINGLE objectid changenr FROM cdpos
                     INTO wa_cdpos
                     WHERE objectid = wa_e1kna1m-kunnr
                     AND ( tabname = 'KNA1' OR tabname = 'KNVV')
                     AND   fname = 'AUFSD'
                     AND ( value_new = '01' OR value_new = space ).
    Please let me know how to achive this..?
    Ashok

    try this way
    "           SELECT SINGLE objectid changenr FROM cdpos
    "                 INTO wa_cdpos
               SELECT objectid changenr FROM cdpos
                      INTO table t_cdpos
                      WHERE objectid = wa_e1kna1m-kunnr
                      AND ( tabname = 'KNA1' OR tabname = 'KNVV')
                      AND   fname = 'AUFSD'
                      AND ( value_new = '01' OR value_new = space ).
    SORT t_cdpos by  changenr Descending.
    read t_cdos index 1.    "this is the latest change
    Prabhudas

  • Edit or Change a Change Number in BOM

    Good Day
    Dear All
    Please can anyone can tell me is any process is there to Edit or change the CHANGE NO in BOM

    Hi Radhakrishna,
    Masters like BOM and Routing can be created and changed with change number. Accordingly changes can be tracked with respect to the change numbers. For Eg BOM created wit hqty 10 with change number X , then BOM changed to 12 with change number Y, then system will display the reports on BOM changes with respect to change numbers. Historial data you can track.
    You can create new change number in CC01 with different validity date and make changes to BOM. You cannot edit the change number once its is created.
    Have a look on the below doc posted by me on usage of revision level with change numbers.
    Usage of Revision Level for PP Masters -BOM and Routing
    Thanks & Regards,
    Ramagiri

  • Error while changing BOM with change number

    Hi ALL, Please help me with followed error message, I am using ECM. I created ECR and converted to ECO and then released.
    Object management record cannot be generated
    Message no. 29046
    Diagnosis
    You want to change the BOM with the entered change number.
    One of the following situations triggered this error message:
    1. The indicator that allows automatic generation is not set for object type BOM in the change master.
    2. The indicator generation only on initial creation is set for object type BOM
    3. You are processing a change request.
    System response
    The system checks whether the indicator object management record will be generated is set in the change master.
    If the indicator generation only on initial creation is set, the system checks whether the BOM exists in the system.
    Procedure
    If you are authorized to change the change master, execute the following steps:
    For 1.)
    Set this indicator for object type BOM or create the control record in the change master.
    For 2.)
    If the BOM already exists in the system and the generation only on initial creation indicator is set, the system can no longer generate the control record automatically.
    In this case you have to add the object control record to the change master first, then you can change the BOM in relation to the change number.
    For 3.)
    You cannot generate any object control records for a change request.

    Hi
    With your question regarding changing BOM with change number  it looks lke there may be problem in defining the Object types,objects.Moreover whenever converted to ECO you need to enter into cs02 tcode for changing the bom with relevant change number and valid from date.
    Hope this gives you a clear idea.let me know if you need anyfurther inputs.
    Regards
    Praveen

  • Double contacts as "iPhone"...my phone saves the same number twice, once with a 1 before the area code and one without it. It causes two different threads in my texts even of they're saved as the same contact

    my phone saves the same number twice, once with a 1 before the area code and one without it. It causes two different threads in my texts even of they're saved as the same contact

    My wife is having the same problems as a reciever. She works in a school as a teaching assistant and her teacher sends messages that are mixed with previous texts from ages ago.
    Can anyone shed some light on this problem or is it only her and this poster?
    2m42s

  • Different Effective Date in One BOM with only ONE Change Number

    Hi gurus
    here is my complete question?
    Is it possible to realize this function that Different Effective Date in One BOM for different BOM items with only ONE Change Number?
    Thanks for your information/help in advance.

    Dear Zhao,
    Using One change number it's not possible to define a different valid from date for the BOM changes of a single material BOM.
    In case if the same change number is used for making different material's BOM component,then a different valid from date for
    each BOM can be defined,but at any given point not for each component/item level of the same BOM.
    Check and revert back.
    Regards
    Mangalraj.S

  • [svn:osmf:] 17638: To fix FM-1040, we came up with a solution as depicted by SVN change number 17636.

    Revision: 17638
    Revision: 17638
    Author:   [email protected]
    Date:     2010-09-09 16:34:17 -0700 (Thu, 09 Sep 2010)
    Log Message:
    To fix FM-1040, we came up with a solution as depicted by SVN change number 17636. However we are not totally satisfied because some multicast specific code was introduced to the NetLoader class. To remedy the problem, we introducted an indirection such that the multicast specific code goes to the MulticastNetLoader.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-1040
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/MulticastNetLoader.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetLoader.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamLoadTrait.as

    Agree it is a pain in the but I know that you can use the same bbid on 2 playbooks.
    Be a Shepard and not an iSheep.

  • Case number  0123115765 ser no serial numbers removed send me the download of the mac version please. You are the most troublesome to make a change did the same with Norton they handled it over the computer without

    case number  0123115765 ser no <serial numbers removed> send me the download of the mac version please. You are the most troublesome to make a change did the same with Norton they handled it over the computer without any fuss!!! Regards answer via email what to do! Regards Bo

    Call Apple to get the replacement DVD > http://support.apple.com/kb/HE57 When you have the DVD, insert it and install iPhoto. Finally, open  > Software Update and install the most recent version

  • Change Number with Profiles

    Hello All,
    I have created a change number (CC01) with a Profile (let say profile1) and after creation of the change number i want to change the Profile1 to Profile2. Keeping the change number same.
    Is it possible to do this ?
    Thanks,
    Rohit

    Thanks for the reply Ram,
    There are many modifications done with the change number so its not possible for us to delete it but i accept your point that, the Profile can not be changed.
    We found that the problem was with the Status Profile (which is assigned to main profile) which can be changed in CC02 under edit menu.
    The problem is solved now.
    Thanks,
    Rohit

  • Mass change of Recipe with Change Number for Future

    Hi ,
    I would like to do a Mass change of Recipes with Change Number for Future Plan,
    is there any way I can do that? or Transaction where I can get that info as I have to do it for lot of recipes,
    Regards,
    Paartha

    Rajesha,
    MM12 will get the change Number From CC01, where we define the Change Number for various things Like Mat master, BOM, Document etc,But I would like to Provude the ECN number when ever I change for example MM12(Mat master), CS02(BOM),CA02(ROUTING),C201(RECIPE), every time I can enter the same ECN number obtained from CC01 create change Master,you can see ECN number field on C202 screen also,
    so Now I would like to change Recipes by giving this ECN number for Mass change of one Filed called LAbor Hours inside C201,
    is there any way I can do mass change instead(avoid) of Process ,,,,,,,,, go to  C201 -enter ECN number--go in side change Labor hours for each and every recipe .
    Hope you understood,,, Looking for Reply from you and SDN Gurus
    Regards
    Paartha

  • How can I Classification Creation with Engineering Change Number.

    Dear.
    I haver question about the title.
    The followings are the steps of my test
    1. I create the engineering change number without release1 (CC01)
    2. I create the material code and basic view 1 and 2 with the engineering change number that is created in step 1. (MM11)
    3. I intend to create the classification of this material with the engineering change number in CL20N but the system give the error message "Object not found".
    When I change the classification view data with the engineering change number that is created in step1, It is very good without any problem.
    Please help me.

    Hi,
    If you can mention error text system is giving then we may get cause of it and thus solution for same,
    From information which you have given, it seems that as you have created material master with ECM number, material will be active only from effective date of that number. Hence when you are trying to assign class to that material system look for that material in current date ans hence is giving error.
    Bye for now,
    Devang

  • Master Batch change for serial number in stock with status "ESTO" by IQ02

    Hi,
    How  to change master batch for serial number in stock with status "ESTO" by IQ02 transaction?

    Hi Harsh,
    if this field is not ready for input you have set the stock check to '02 Error' in your serial number profile in order to ensure
    consistency between the stock data of serial numbers and inventorymanagement.
    In this case you have to do a material movement posting inMB11 with movement type 309 (material to material). Enter the new batch as batch of the receiving material. This movement will update both the master batch and the stock batch of the serial number.
    Regards,
    Mauro

  • I had an iphone 3GS, but received my new iPhone 5 with micro sim, but wanted to keep old mobile number so rang up to change it, that's all working fine, but iMessage is still using the number I received with iPhone, how do you delete a new number?

    I had an iphone 3GS (normal sim), but received my new iPhone 5 with micro sim, but wanted to keep old mobile number so rang up to change it, normal text messaging is working fine, but iMessage is still using the number I received with iPhone 5, how do you delete that number I can only receive iMessages on my original number?

    Issue solved

Maybe you are looking for