Creating a new process

hai,
I am working with a web server project. I have problem that i have to create a new process everytime I receive a request from a new client and that process should handle the requests from that user from then till he closes connection. Is there any way i could create a new process in jave that creates new process to do job I required?
(I mean almost something similar to fork() command in c++)
thank you

I think it is enough to create a new thread(instead
of process) for each received request. Better:Create
a thread pool.hai,
thank you , it did worked creating a thread. But i
still have a small question. Does there wont be any
kind of sharing problems if I use threads?Of course you have pay attention and synchronize shared resources properly.
Beside of that all threads share the same memory - if one thread uses too much, another one may get an OutOfMemoryException.

Similar Messages

  • Getting Error Msg  "usdsop cannot create a new process" in Log File

    Hi All,
    I have installed r12 in my personal LapTop.
    Every thing looks fine..
    For testing purpose, I have created a Shell Script and registered concurrent program.
    While i am running this program, program is getting error out with below message.
    D:\oracle\VIS\apps\apps_st\appl\po\12.0.0\bin\TEST_CONVERT.exe
    usdsop cannot create a new process
    Cause: usdsop encountered an error creating a new process. [Reason].
    Action: Check that your system had enough resources to start a new process. Contact your system administrator to obtain more resou (RE
    Executing request completion options...
    Please help me in resolving this issue.
    Thanks
    Sandeep

    What is your OS?
    Did you complete the steps in these docs?
    How to Register a Host Concurrent Program in Applications [ID 156636.1]
    How To Create A Custom Concurrent Program With Host Method and Pass Parameters To The Shell Script [ID 266268.1]
    How Do You Run A Unix Host Script From Concurrent Managers On MS Windows Platform? [ID 412392.1]
    How To Setup A Custom Concurrent Host Program [ID 147455.1]
    Thanks,
    Hussein

  • Auto patch error usdsop cannot create a new process

    Hi i am applying hrms family pack k in one vision db in testnode but i am getting following error.Any idea
    appsversion 11.5.10 and windows 2003 advanced server
    Generating product JAR files in JAVA_TOP -
    j:\oracle\viscomn\java with command:
    adjava -mx512m -nojit oracle.apps.ad.jri.adjmx @j:\oracle\visappl\admin\VIS\out\genjars.cmd
    Error:
    usdsop cannot create a new process
    Cause: usdsop encountered an error creating a new process. [Reason].
    Action: Check that your system had enough resources to start a new process. Contact your system administrator to obtain more resou (RE
    Failed to generate product JAR files in JAVA_TOP -
    j:\oracle\viscomn\java.
    adogjf() Unable to generate jar files under JAVA_TOP
    AutoPatch error:
    Failed to generate the product JAR files
    rgds
    rajesh

    This is the primary reason I dislike doing Oracle Apps on Windows.
    If something bad happens while patching, and you find yourself without critical ad executables because relink failed, you need to run relinkenv.cmd to (re)create the APPS.SH unix-style environment (forward slashes) for relink.sh.
    Source or double click on envshell.cmd
    sh adrelink.sh force=y "ad adjava.exe"
    Backup Mode is "file"
    Removing Application products' bin directories from PATH ...
    Done removing Application products' bin directories from PATH
    Removing $FND_TOP/$APPLBIN from PATH ...
    sed: number in \[0-9] invalid
    Done removing $FND_TOP/$APPLBIN from PATH
    awk: adrelink.sh 4107: not found
    grep: adrelink.sh 4107: not found
    grep: adrelink.sh 4107: not found
    echo: adrelink.sh 4107: writing: The pipe is being closed.
    awk: adrelink.sh 4107: not found
    ORACLE RDBMS Version 8.0.6.0.0
    Oracle Reports Version 6.0
    Oracle Applications Release
    Unable to determine the release number.
    To resolve:
    type relinkenv.cmd
    This creates APPS.SH.
    Source or double click on envshell.cmd to create a new session.
    Now type sh
    At the command prompt, type . ./APPS.Sh
    now adrelink.sh force=y "ad adjava.exe"
    You are running adrelink, version 115.85
    Start of adrelink session
    Date/time is Fri Jul 20 20:22:35 PDT 2007
    Log file is d:/oracle/visappl/admin/log/adrelink.log
    Command line arguments are
    "force=y" "ad adjava.exe"
    Done with link of ad executable 'adjava.exe' on Fri Jul 20 20:27:07 PDT 2007
    Done relinking module adjava.exe in product ad
    Done with link of product 'ad' on Fri Jul 20 20:27:07 PDT 2007
    adrelink is exiting with status 0
    End of adrelink session

  • Error : usdsop cannot create a new process

    Hi DBA's,
    I am applying ADI.6 patch 6502082. It was error out with the follwing error message. Kindly check and give me your valuable solution.
    ** Backing up $JAVATOP/META-INF/JRIMETA.DAT...
    Copying JRIMETA.DAT to JRIMETA.DAT.BackedupByAdpatch ...
    Copied JRIMETA.DAT to JRIMETA.DAT.BackedupByAdpatch.
    ** Successfully backed up JRIMETA.DAT.
    STRT_TASK: [Run adjcopy.class] [] [Wed Dec 24 2008 14:24:09]
    Running adjcopy.class:
    adjava -mx512m -nojit oracle.apps.ad.jri.adjcopy @f:\MIGR\migrappl\admin\MIV\out\apps.cmd
    Error:
    usdsop cannot create a new process
    Cause: usdsop encountered an error creating a new process. [Reason].
    Action: Check that your system had enough resources to start a new process. Contact your system administrator to obtain more resou (RE
    Thanks.

    Hi Ronald,
    please check the bellow one
    C:\Documents and Settings\oracle>which sed
    E:\UTIL\MKS\mksnt/sed.exe
    C:\Documents and Settings\oracle>which cl.exe
    E:\util\VC98\bin/cl.exe
    C:\Documents and Settings\oracle>which %PATH%
    which: Files\Dell\SysMgt\oma\bin;E:\util\VC98\Tools\WinNT;E:\util\VC98\MSDev98\Bin;E:\util\VC98\Tools;E:\util\VC98\bin;E:\apps\U
    \uatora\8.0.6\bin;C:\Perl\site\bin;C:\Perl\bin;E:\UTIL\MKS\bin;E:\UTIL\MKS\bin\x11;E:\UTIL\MKS\mksnt;C:\WINDOWS\system32;C:\WIND
    S;C:\WINDOWS\System32\Wbem;C:\Program: name too long
    C:\Documents and Settings\oracle>
    Thanks

  • New Thread not Creating a new Process

    When I create a thread and start it, it doesn't make a new process (as in a process that one can see in the Windows Task Manager) . I have another program that does make another process, and I did the exact same code, but this program isn't working right. My class implements Runnable, and I invoke the run method. Can anybody help?
    public void go(String str){          
       Thread thread = new Thread(this,"thread");
       thread.start();
    public void run(){
       new GUI();
    }

    A thread will not create a new process. Actually the
    thread is part of process,. ie.. your JVM process. So
    you can't see each thread in the task manager. All
    the threads will be managed under the JVM processThe only way I can think of to have windows see a second thread would be to call Runtime.getRuntime().exec(command); where command is running java on a program.

  • Creating the New Process Chains in BW System

    Hi SDN,
    What is the best practice of creating the New Process Chain?
    1. Whether to create the Process Chain in BW Development first and trasferring it through transfer request
    OR
    2. Create directly the Process Chain in the BW Production and schedule it
    Please provide the views.........
    Kind regards,
    Rajesh Giribuwa

    hI rAJESH,
    Ya,we must create any development in development system and then subsequesntly to test and then production system.
    but my exp was differnt in one of my project .
    i have developed the pc in dev first and then trasported to test and then prod,
    it worked fine in dev and test but in prod it was not running ,due to some system resources.
    so i did the change direclty in prod and then it worked .
    but it was risk .
    hope this is helpful
    Jimmy
    dont hesitate to move u r cursor towards the max point

  • ALBPM: creating a new process instance in response of a DB update

    Hi, everyone.
    I am quite a newbie in ALBPM, but I want to make everyone a question:
    Is it possible to create a new instance of a process in response to the update or insert of a new row in a DB?
    I guess that the magic is in the Global Automatic Activity that listens to an event...
    Thanks a lot to everyone!!!
    Riccardo
    --

    Two techniques I've seen work in the past to create an instance when a new row is added to a database table:
    1) Think someone mentioned this already, but add a trigger in the database that invokes PAPI which in turn can create an instance
    or
    2) Do what I'd suggested below. Create a table that has a column named something like "JUSTADDED" which stores an integer. Using a global automatic, poll the table periodically looking for rows that are boolean true (use a "for each ... select ... where JUSTADDED = 1..."). For every row that it finds create an instance using the logic I'd written in this thread previously. Be sure to do an UPDATE on this row, setting the value of JUSTADDED to 0 while you're still in the same loop.
    Hope this is clearer,
    Dan

  • Creating new process through java

    Hello,
    I wanna create a new "process" through java and wanna do interprocess communication.

    Usually the way to make something else run on your computer outside your JVM is to use the Runtime.exec() method.

  • Creation of new process in workflow

    Hi All,
    I need to introduce a new functionality in the existing process in seeded workflow. For this reason, I have created a new process and modified the required changes in the workflow process.
    My new process will be identified with the newly provided internal name. Please let me know how will my newly created process can be identifed by workflow to point to the same instead of the old prcess ?
    For this do I need to make any code changes ? Please help me in providing your suggestions at the earliest.
    Thank You,
    Thiyagarajan

    Hi;
    please check below and see its helpful:
    Control - Workflow: Setup Doc ID: 113664.1
    Oracle Workflow Best Practices Release 12 and Release 11i [ID 453137.1]
    Workflow customization
    http://www.vivekasolutions.com/user_docs/WFCustomizationWP.pdf
    download.oracle.com/docs/cd/B19306_01/workflow.102/b15852.pdf
    Regard
    Helios

  • Creating a new message in adapter module

    Hello,
    I already posted the question in this [Thread|Sending Adapter Module to split messages;, but I now create this new topic so you can get points for your answer
    Jan from this thread wrote "I know how to send a new message using a new instance of the Module Processor and using ModuleProcessor.process()" and I'm now searching for a code example how to create a new message from within an adapter module. I think it must be something like [this|http://help.sap.com/saphelp_srm40/helpdata/en/8d/6ad6409ff68631e10000000a1550b0/frameset.htm].
    Regards
    Markus

    Hi Sippy,
    First of all we need to configure the systems. So that we can transfer data from Outbound system to Inbound system.
    Configure an Outbound Process that uses Message Control
    Step 1: Create a new Message Type
    TCode: We 81
    Path: From the Area menu of EDI, choose Development, IDOC Type/ Message
    Step 2: link the IDOC type to the Message Type
    TCode: We 82
    Path: From the Area menu of EDI, choose Development, IDOC Type/ Message
    Step 3: Create a new Process Code
    TCode: We 41
    Path: From the Area menu of EDI, choose Control,Outbound Process COde
    Step 4: Create or Change a Partner Profile
    TCode: We 41
    Path: From the Area menu of EDI, choose IDOC,Partner Profile
    Configure an Outbound Process for Stand-Alone Programs.
    1. Create a new message type
    2. Link the IDOC type to the Message Type
    3. Add the message to the ALE Distribution Model(use BD 64)
    4. Create or change the Partner Profile
    I think this will be helpful for you.
    Reward points if useful.
    Cheers,
    Swamy Kunche

  • Process Order Details like batch number, mfg date flow to a new process ord

    Hi Experts,
    I have a doubt in Process Order.
    I have two stage production.
    1. Blending
    2. Packing
    I create a process order for blending and assign a batch number and manufacturing date for Blending operation.
    Release the process order.
    Final Confirmation of the process order.
    I complete all the process, Goods Reciept is done.
    Technically completed the Process Order.
    Now my 1st stage Process order is completed and ready for the 2nd stage production i.e., Packing.
    Now I create a new process order,
    here I am having the problem that I need to enter all the details like batch number, manufacturing date etc..
    I want to avoid this in the 2nd process order.
    How to do this i.e., carry forwarding the details of the 1st process order into the 2nd process order.
    Is there any setting required at the back end?
    I was told about Push operation to rectify the above problem. But I am not clear about that.
    Can any one clearly explain about that step- by - step.
    Thanks in advance,
    Regards,
    B. Praveen
    Praveen

    closing thread

  • How to create messages in process chains?

    Dear Gurus,
    I want to use the alert system in the process chains.  like when one process fails i have to receive the message on my mail or as an SMS on my mobile. 
    I tried the same thing with one of my process chain.  When i right click one of my process in my process chain i will get the create message option.  But my problem is i dont know how to use that option.  If u have any solutions or any material please try to send me to the following ID <b>[email protected]</b>
    Thanks in advance
    Mohan Kumar

    Hi,
    You can also send messages to an application process of the chain, depending on the success or failure of the process.
    1.       From the context menu of a process, create an additional process variant of the Send Message type.
    2.       If you maintain a message, first specify whether you want the message to be sent when the process has been completed successfully or unsuccessfully. Then choose Next.
    3.       You arrive at a window, in which you can select an existing process variant or create a new one.
    4.       If you create a new process variant, edit the document that is going to be sent, and maintain a list of recipients.
    5.       Save your process variant and go back a step.
    The message process variant is now assigned to your application process. When the message is sent, the status information and the process log can also be sent.
    Hareesh

  • FastcgiStub does not raise a new process

    Hi there.
    we have a perl FCGI running with Sun ONE 6.1 sp5 over Solaris10.
    We have a line in obj.conf like this:
    <Object name="fcgi.perl">
    Service fn="responder-fastcgi" app-path="/usr/bin/perl" app-args="/internet/datos/WWW/cgi-bin/loginCGI/loginCGI.pl" app-args="/inter
    net/datos/WWW/cgi-bin/loginCGI" bind-path="localhost:27527" resp-timeout=10 restart-interval=30 min-procs=1 max-procs=10
    </Object>
    We are doing load test against our web app., and we can see that Fastcgistub does not start a new perl process when needed (and of couerse, we fail in process too many request). Instead of that, when our perl dies due to a SIGPIPE signal, we can see this message in fastcgitub.log, repeated a lot of times:
    server bind error
    /usr/bin/perl bound to localhost:27527 is already running
    Could you help us with this issue, please?
    Thanks a lot in advance.
    Best Regards

    In my test setup :
    <Object name="fcgi.perl">
    Service fn="responder-fastcgi" app-path="/opt/csw/bin/perl" app-args="/tmp/one.pl" bind-path="localhost:27527" resp-timeout=10 restart-interval=30 min-procs=2 max-procs=10
    </Object>
    If I overload the CPU using
    $ ab -n 100000 -c 100 http://host:port/fcgiperl/
    I am able to saturate the CPU. Even if I print a sleep statement in while loop
    of /tmp/one.pl then too, I don't get the error you mentioned.
    I however observed that Fastcgistub doesn't create the new processes.
    Can you test the following script in your test environment to see how
    it performs?
    --------------------- /tmp/one.pl -----------------------------
    #!/usr/bin/perl
    use IO::File;
    #use strict;
    use CGI::Fast qw(:standard);
    $COUNTER = 0;
    while (new CGI::Fast) {
    print header;
    print start_html("Fast CGI Rocks");
    print
    h1("Fast CGI Rocks"),
    "Invocation number ",b($COUNTER++),
    " PID ",b($$),".",
    hr;
    print end_html;
    -----------------------------------------------------

  • Creating a daemon process with processBuilder

    Hello,
    This is our problem, we are creating a new process from a java application, with the processBuilder methods. The idea is to launch this process and when the java application is closed the process continues running. But the problem is that when i close the java application, the process die too.
    This is the code that we use:
    ArrayList commandsList=new ArrayList();
    commandsList.add("./test.sh");
    Process pfProcessing = new ProcessBuilder(commandsList).start();
    In the test.sh script, we launch the program with nohup command and the & to start it in background.
    We think that the problem is that when you close the java application, a SIGTERM or SIGINT signal is sent to the process.
    If you need more information, do not hesitate to contact us.
    Many thanks in advance.

    There isn't any way to run a java web start application in "headless" mode (without initializing awt).
    All of the javaws error windows, console, download progress window, and security windows are written in swing, and become part of your application, running in the same VM.
    /Dietz

  • Create/Copy New Inbound Function Module

    I have created a new process code MBGM pointing to function module IDOC_INPUT_MBGMCR.
    Currently I do not have function module IDOC_INUT_MBGMCR.
    Can I easily copy from an existing function module to create my own new function module?

    Hi Janice,
    Open se37, enter the FM name, now on the toolbar , there is a double-square ICON, click on this..and rest is easy.
    In detail,
    First of all you must know to which function group(FG) your r copying the FM, that is in which FG your z-fm will be residing.
    now se37-> enter the FM (original one) -> click on the copy icon (a square on another square, third from left)->now you will have a pop up-> "from" input box(leave it as it is)
    and "to" input box : here you write your z FM name,
    in Function group box: you enter the FG name where your z-FM should belong.
    click on copy..thats it.
    cheers,
    Prashanth
    P.S : Please mark helpful answers

Maybe you are looking for