forum Forumsplay_arrow Minecraft fiber_manual_record Discussion

1

-Need Help- Dedicated Server CentOS 6

1 emerald7 replies372 views
created 02/26/2015 1:10 pm by AuriolCraft
last reply 02/28/2015 7:17 pm
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
Posted by avatar
AuriolCraft
Level 1 : New Explorer
0

7 replies

1
02/28/2015 7:17 pm
Level 7 : Apprentice Miner
FCCAGut12
avatar
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
02/27/2015 12:53 am
Level 15 : Journeyman Taco
Johnanater
avatar
If it goes over the allocated ram just increase it
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
02/26/2015 4:00 pm
Level 1 : New Miner
Weschke55
avatar
Have you tried checking the running java processes the executing the screen -d -r command?
1
02/26/2015 1:27 pm
Level 45 : Master Button Pusher
LeeTheENTP
avatar
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
02/26/2015 2:19 pm
Level 1 : New Explorer
AuriolCraft
avatar
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
1
02/26/2015 5:21 pm
Level 45 : Master Button Pusher
LeeTheENTP
avatar
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
02/26/2015 11:08 pm
Level 1 : New Miner
Weschke55
avatar
^^^ And That Works Too

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome