Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
I'm afraid one of these days Minecraft/Bukkit/some plugin will come up with a new memory leak and my server will start crashing all the time because Java runs out of memory. I've seen it happen before but when I hosted at home I had a swap partition to back me up. Is there a way to enable swap space in my VPS? I see there's a file called 'swap.img' at the file system root. Is that it? If so, how do I mount it?
I don't recommend using swap very much because it kills performance and also affects the performance of other customers. But, you can use that existing pre-created swapfile by just entering:
Edge100x wrote:I don't recommend using swap very much because it kills performance and also affects the performance of other customers. But, you can use that existing pre-created swapfile by just entering:
swapon /swap.img
For some reason CentOS doesn't seem to need swap; I used Slackware before and it always wrote up to a few dozen megabytes to swap at random times even though Bukkit reported less than 50% memory usage. CentOS's memory readings are closer to what I expect (I left roughly 128MB out of my startup script for OS usage and so far that's the lowest number it's shown under free memory) so maybe I won't need it at all.