Multiple Application Processes - WHY?
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.
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.