1

-Need Help- Dedicated Server CentOS 6

AuriolCraft's Avatar AuriolCraft2/26/15 1:10 pm
1 emeralds 423 7
2/28/2015 7:17 pm
FCCAGut12's Avatar FCCAGut12
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 AuriolCraft's Avatar
AuriolCraft
Level 1 : New Explorer
0

Create an account or sign in to comment.

7

1
02/28/2015 7:17 pm
Level 6 : Apprentice Miner
FCCAGut12
FCCAGut12's 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
Johnanater's 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
Weschke55's Avatar
Have you tried checking the running java processes the executing the screen -d -r command?
1
02/26/2015 1:27 pm
Level 46 : Master Button Pusher
Leeberator
Leeberator's 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
AuriolCraft's 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 46 : Master Button Pusher
Leeberator
Leeberator's 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
Weschke55's Avatar
^^^ And That Works Too
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome