javaunixjvmrpmsystemctl

Starting a java service packaged as rpm in Unix through systemctl


So, I have a java maven project which packages itself into a rpm which will run as a background service in Unix environment through systemctl and have my init file for it. My doubt is if I start new service will it use same JVM which the old service is using or use a new JVM?


Solution

  • It will use the same /usr/bin/java (or other location it is set) executable that the old service used,
    in order to start a new java process instance with it. Therefore: a new JVM.

    You will have a new JVM for each service started.