Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Java argument makes manager restart the server on a loop #6

Open
SpecifiedNull opened this issue May 19, 2021 · 0 comments
Open

Comments

@SpecifiedNull
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant