LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-05-2020, 06:55 PM   #1
DangerPenguin
LQ Newbie
 
Registered: Apr 2020
Posts: 5

Rep: Reputation: Disabled
Will restarting Centos 7 system help improve Minecraft server performance?


Hi everyone!

I'm new to Linux but I've been using Centos 7 machine for about three years to host a Minecraft server. I haven't restarted ever but I do kill the Java process sometimes to prevent memory leaks in Minecraft. I'm kinda scared of restarting because I'm not sure what my firewall rules were. Just to be sure, will restarting the machine help Minecraft performance or should I not risk it?

Last edited by DangerPenguin; 04-05-2020 at 06:57 PM.
 
Old 04-05-2020, 08:50 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,070
Blog Entries: 27

Rep: Reputation: 5231Reputation: 5231Reputation: 5231Reputation: 5231Reputation: 5231Reputation: 5231Reputation: 5231Reputation: 5231Reputation: 5231Reputation: 5231Reputation: 5231
Have you kept the machine updated? If not, you should update it before doing anything else.

The firewall program you are using should provide a way to view your rules. Most firewall programs are frontends for iptables, and you can view the rules with the command iptables -L. I think CentOS uses SELinux by default; I have never used it but this article might help.

And, yes, in my amateur's opinion, after three years, rebooting the machine may clean out some dustbunnies and result in some improvement.
 
1 members found this post helpful.
Old 04-05-2020, 08:57 PM   #3
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,850

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
It depends on what performance you're looking for. Restarting may reset your system resources, free-up zombie applications and yes it will help. But if your hardware such as CPU, Memory and Graphic card remains the same I guess you will be back to square one.

What's the main reason for rebooting? Hope it's not some malware or viruses occupying your system and degrading the performance. Good luck!
 
Old 04-05-2020, 10:01 PM   #4
DangerPenguin
LQ Newbie
 
Registered: Apr 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Have you kept the machine updated? If not, you should update it before doing anything else.

The firewall program you are using should provide a way to view your rules. Most firewall programs are frontends for iptables, and you can view the rules with the command iptables -L. I think CentOS uses SELinux by default; I have never used it but this article might help.

And, yes, in my amateur's opinion, after three years, rebooting the machine may clean out some dustbunnies and result in some improvement.
What do you mean by updated? Should I update from Centos 7 to Centos 8 for better performance?
 
Old 04-05-2020, 10:18 PM   #5
DangerPenguin
LQ Newbie
 
Registered: Apr 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JJJCR View Post
It depends on what performance you're looking for. Restarting may reset your system resources, free-up zombie applications and yes it will help. But if your hardware such as CPU, Memory and Graphic card remains the same I guess you will be back to square one.

What's the main reason for rebooting? Hope it's not some malware or viruses occupying your system and degrading the performance. Good luck!
When the Minecraft server gets many players, performance drops down, already optimized quite a bit in Minecraft application to make it run better but it looks like CPU just can't handle the load after certain amount of players. As a dummy Windows user I am wondering if restarting the Linux server machine will make CPU/RAM more efficient at handling Minecraft application, making it faster and more stable.

I'm using htop for CPU/Memory monitoring, this is what it looks like when people are playing.

https://www.linuxquestions.org/quest...1&d=1586139773
Attached Thumbnails
Click image for larger version

Name:	minecraft.png
Views:	15
Size:	20.2 KB
ID:	32916  

Last edited by DangerPenguin; 04-05-2020 at 10:27 PM.
 
Old 04-05-2020, 10:20 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,070
Blog Entries: 27

Rep: Reputation: 5231Reputation: 5231Reputation: 5231Reputation: 5231Reputation: 5231Reputation: 5231Reputation: 5231Reputation: 5231Reputation: 5231Reputation: 5231Reputation: 5231
Quote:
What do you mean by updated?
I do not mean upgrading from one CentOS release version to another.

I mean keeping the system up-to-date by installing the security and software version updates that are routinely issued for Linux systems by their maintainers. This is routine system maintenance, as distinct from a distro version upgrade.

See this article: https://www.cyberciti.biz/faq/rhel-c...command-howto/
 
Old 04-05-2020, 10:31 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,475

Rep: Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453
In a sane world there would be no requirement to reboot - it used to be brag-points for who had been running longest.
Quote:
but it looks like CPU just can't handle the load at some point.
What are you using to base this assertion on ?. Do you have evidence you can share, or is it a "gut feeling" ?. We need the former.
 
Old 04-05-2020, 10:35 PM   #8
DangerPenguin
LQ Newbie
 
Registered: Apr 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
In a sane world there would be no requirement to reboot - it used to be brag-points for who had been running longest.What are you using to base this assertion on ?. Do you have evidence you can share, or is it a "gut feeling" ?. We need the former.
The Minecraft server starts lagging and PvP becomes less fun, it is clear as day.

I also use a logger to see what % of CPU is being used on different things (zombies, horses, bees, etc)
At certain amount of players CPU is basically maxed out. I am wondering if restart will give it more capacity to handle Minecraft.

Last edited by DangerPenguin; 04-05-2020 at 11:07 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Minecraft NFC -- How one man took Minecraft to the next level LXer Syndicated Linux News 0 02-21-2016 06:53 AM
[SOLVED] Launch Minecraft and Minecraft server as non-root user Hasek39 Linux - General 4 01-04-2016 04:06 AM
Minecraft world trickery (and even minecraft on ipad) lhartvik LinuxQuestions.org Member Success Stories 2 05-28-2015 02:32 AM
LXer: GOL MineCraft Weekly. Grab Issue 2 Today, Linux Minecraft server LXer Syndicated Linux News 0 08-04-2013 12:41 PM
how can i improve the display performance of my system? im using RH8... kublador Linux - Software 4 07-27-2003 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration