Results 1 to 2 of 2
  1. #1
    FlyNn is offline Senior Member
    Join Date
    Feb 2010
    Posts
    128
    Rep Power
    0

    Default Multiple Application Processes - WHY?

    Hi guys,

    I've got a big server application which opens multiple ports and runs thread for each port to listen on it. It's all good and it has been working like this for a year. But recently I have noticed that in the Task Manager there are two processes running of the same program, which kills part of the program.
    One process is named "ServerProgram" and has description: Java(TM) Platform SE binary - has thread count of 49
    The second process is named "ServerProgram *32" and has description: ServerProgram - has thread count of 1

    I build a .exe file for the server program using Launch4j and in there I tick a box to run only a single instance of the application.

    Could any one explain how this could have appeared?

    Any thoughts would be appreciated.

    Thanks
    Measuring programming progress by lines of code is like measuring aircraft building progress by weight.

  2. #2
    FlyNn is offline Senior Member
    Join Date
    Feb 2010
    Posts
    128
    Rep Power
    0

    Default Re: Multiple Application Processes - WHY?

    Found the problem. Nothing relating to the software: I knew I didn't mess anything up. It was a wrong setting in the config.xml file which launch4j used. It had stay alive setting set to true, when it should be false.
    I've learnt that when the .exe file is started launch4j runs it from: "C:\Program Files\Java\jre6\launch4j-tmp" folder as a .jar file, so the initial .exe has to be stopped.

    just in case any one else wonders.
    Measuring programming progress by lines of code is like measuring aircraft building progress by weight.

Similar Threads

  1. Monitoring processes
    By scamiolo in forum New To Java
    Replies: 3
    Last Post: 07-20-2011, 02:38 PM
  2. Multiple Instance of Web Application end Up Using Same JCA Resource
    By sjunejo in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 06-09-2011, 01:17 PM
  3. Multiple views on user interface application
    By dand_dd in forum SWT / JFace
    Replies: 36
    Last Post: 04-24-2009, 10:05 AM
  4. how to run chat application on multiple systems
    By jayeth in forum Advanced Java
    Replies: 4
    Last Post: 03-27-2009, 04:25 PM
  5. netbeans processes don´t die
    By karlen in forum NetBeans
    Replies: 0
    Last Post: 06-11-2007, 10:55 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
  •