Yrlec
Posts: 30
Joined: Wed Jun 20, 2012 3:49 pm

Single instance for Java product not working

We are having some problems with the "Single instance" feature for Java products. We've configured it like this:
Screen Shot 2015-04-09 at 18.14.18.png
Screen Shot 2015-04-09 at 18.14.18.png (33.43 KiB) Viewed 2735 times
However, when we start a second instance of the executable it doesn't close. It just stays in some lingering state were it doesn't fully load the application but the process is still running:
Screen Shot 2015-04-09 at 18.19.11.png
Screen Shot 2015-04-09 at 18.19.11.png (14.32 KiB) Viewed 2735 times
Notice how the second process uses very little memory. From the logs it doesn't look like it even starts the JVM (which is correct). However, why doesn't it close?
Yrlec
Posts: 30
Joined: Wed Jun 20, 2012 3:49 pm

Re: Single instance for Java product not working

Never mind. Just found out about secondaryMain. I guess I should have RTFM first.

Return to “Common Problems”