Launch Java application in new process -
I have a Java application that I launch with "ant mep" now that I want the application itself To copy, that is, a new process is started in new processes.
I know that it is a process builder or runtime. Should be done with XAC ().
If I only processbilder or runtime Calling in XAC ('Ant map'), it will launch a new JVM and run it in a separate process. Is it true?
But I have also heard that it is possible to run the application in a new process, but in the same JVM. How can I do this?
If I do not have a new JVM, then less memory is consumed but if the new process is going on in the same JVM, what are the harm? I have multiple socket connections from one server in the application. Maybe it is a problem when new JVM is not created?
look at For socket, memory, cpu: You need your app profile to make sure that you are using finite resources properly This is true for all Java applications. Can not know Every situation is different, the only way to find out is to obtain some data on the basis of profiles. the executables service . You can pool them, set timeouts, etc.
Comments
Post a Comment