1
-Need Help- Dedicated Server CentOS 6
Hello, I have a dedicated server which I use to run my website and bungeecord servers. One thing that I have trouble with is that when a server goes over its maximum ram and laggs out the screen that i'm running the server from also stops responding. What i need to know is how to close the server without restarting my whole dedicated server. Help would be much appreciated! Thanks
Create an account or sign in to comment.
7
1
If you're not careful you will have to force an ENTIRE server restart. It's better to kill by PID directly. Use this command "netstat -plten | grep java" to print java's process ID then use "kill -9 PID"
1
If it goes over the allocated ram just increase it
1024MB = 1.024GB
This is the default it comes in
http://lmgtfy.com/?q=mb+to+gb
Use this as a calculator
Change where it says "1024" Nothing else
Hope this helped, thanks for reading!
1024MB = 1.024GB
This is the default it comes in
java -Xmx1024M -jar server.jar -o true
PAUSE
http://lmgtfy.com/?q=mb+to+gb
Use this as a calculator
Change where it says "1024" Nothing else
Hope this helped, thanks for reading!
1
Have you tried checking the running java processes the executing the screen -d -r command?
1
You want to stop the entire server network? Use sudo pkill java to kill all Java processes. If you don't want to do that you can always just stop each server with the Minecraft stop command.
1
Thanks for your reply. What I mean is that i would like to kill one java process in a non responding window, for example if my survival server had stopped responding then so would the screen that it's run from and I need to know how to kill that single java process without access to the screen.
Edit: sudo pkill java works quite nicely but it would be even better if it can target one process
Edit: sudo pkill java works quite nicely but it would be even better if it can target one process
1
So you want to stop a non-responsive Java instance? If Java is unresponsive, the screen itself still shouldn't be. Open the screen and do CTRL + C.
1
^^^ And That Works Too