Good evening / morning / afternoon / night (depending on when you read this).
I have a problem with the minecraft server I run the server (see signature).
After a few hours it gets VERY laggy. I suspect the Computer Craft (a mod installed) is causing the lagg. After a restart (not reboot windows, only the server) is just fine again.
Is it possible to get the server to reboot automatically every two hours? Eventually prevent the server being slow in the first place?
It is not a Bukkit server, because Computer Craft does not support Bukkit. I do however welcome any tips if anyone knows how to get Computer Craft to run on Bukkit: P
the server computer has 16 GB of RAM and a quad core Intel Xeon 3.1 GHz processor, so it's probably not the hardware that is the problem. I have given the server 10 GB of RAM by running it with a BAT file that looks like this:
In my opinion it's probably better to find the root cause as to why your server is lagging as the path AmberK has taken, rather than a quick fix.
But anyway:
What OS are you using? For linux have you looked at Cron tasks, or for Windows scheduled tasks.
I'd consider running minecraft as a service/daemon for either OS, then create a command that will restart that service periodically. Otherwise, look at using a server wrapper that can schedule restarts for you instead.
EDIT1: Sorry read your first post again. Seems you're using Windows if you're using BAT. With BAT, the minecraft server will run as a process with an ever changing PID each time you start the server. This will make it difficult to target with a 'kill' type command. So it's better to look at running minecraft server as a service. Then it's just a matter of using "NET STOP [service name]/NET START [service name]" within scheduled tasks or AT
In my opinion it's probably better to find the root cause as to why your server is lagging as the path AmberK has taken, rather than a quick fix.
But anyway:
What OS are you using? For linux have you looked at Cron tasks, or for Windows scheduled tasks.
I'd consider running minecraft as a service/daemon for either OS, then create a command that will restart that service periodically. Otherwise, look at using a server wrapper that can schedule restarts for you instead.
EDIT1: Sorry read your first post again. Seems you're using Windows if you're using BAT. With BAT, the minecraft server will run as a process with an ever changing PID each time you start the server. This will make it difficult to target with a 'kill' type command. So it's better to look at running minecraft server as a service. Then it's just a matter of using "NET STOP [service name]/NET START [service name]" within scheduled tasks or AT
This wouldn't really be a great idea. Minecraft doesn't like a non-graceful shutdown, you could end up with world corruption.
I'm now using MMyAdmin, and it's just soo much better than the vanilla concole :smile.gif: My problem seems to be fixed, and my members got teleportation permissions.
+1'd for awesome help
Yea I'm pretty fond of McMyAdmin. Because I can schedule /pex reload and /rg reload every minute with it, I was able to write web management tools for permissions and WorldGuard zone management. Real handy.
I have a problem with the minecraft server I run the server (see signature).
After a few hours it gets VERY laggy. I suspect the Computer Craft (a mod installed) is causing the lagg. After a restart (not reboot windows, only the server) is just fine again.
Is it possible to get the server to reboot automatically every two hours? Eventually prevent the server being slow in the first place?
It is not a Bukkit server, because Computer Craft does not support Bukkit. I do however welcome any tips if anyone knows how to get Computer Craft to run on Bukkit: P
the server computer has 16 GB of RAM and a quad core Intel Xeon 3.1 GHz processor, so it's probably not the hardware that is the problem. I have given the server 10 GB of RAM by running it with a BAT file that looks like this:
This is how the console looks like after a few minutes: (warning - wall of text)
I'm pretty sure that got something to do with the issue too.
Any help is greatly appreciated :smile.gif:
Good might? Good norning? Anyways...
Are you using 32bit java, or 64bit?
"cmd"
"java -version"
:laugh.gif:
But anyway:
What OS are you using? For linux have you looked at Cron tasks, or for Windows scheduled tasks.
I'd consider running minecraft as a service/daemon for either OS, then create a command that will restart that service periodically. Otherwise, look at using a server wrapper that can schedule restarts for you instead.
EDIT1: Sorry read your first post again. Seems you're using Windows if you're using BAT. With BAT, the minecraft server will run as a process with an ever changing PID each time you start the server. This will make it difficult to target with a 'kill' type command. So it's better to look at running minecraft server as a service. Then it's just a matter of using "NET STOP [service name]/NET START [service name]" within scheduled tasks or AT
This wouldn't really be a great idea. Minecraft doesn't like a non-graceful shutdown, you could end up with world corruption.
I got no plugins. As I said, it's a vanilla server, because CompCraft don't support bukkit.
I'm running Windows 7.
Thanks for the tip, I just sent Dan200 a PM about my problem.
Can McMyAdmin schedule restarts? If so: awesome! I'll defiantly look into that.
Yup, it has quite a few automatic features (restarts, backups, messages, etc)
+1'd for awesome help
Agreed. Hence
The quick fix being the regular restarts :smile.gif: