OasisArtisan/OasisLight-ServerManager

Custom Java argument makes manager restart the server on a loop

Opened this issue · 0 comments

I followed this link to add new arguments to make the server better perform and utilize Java flags in the most efficient way.
However when I added all those flags, manager kept on restarting the server not knowing it has been already started.

Upon investigation, I found out that its this flag "-XX:+PerfDisableSharedMem" this argument improves garbage collection but was causing manager to be stuck in a restart loop.
The reason for that is that this flag is telling java to not write information to some temporary folder which jps uses so jps will not detect the running server. And since the manager relies on jps to detect running java servers, it will fail as well.

A fix for this would be to make the manager use normal ps instead of jps to detect the server process.