I need a better run script, one that will start me up without using a lot of ram. Here is my current run.sh: Code: #!/bin/bash screen java -Xmx2048M -Xms2048M -jar craftbukkit.jar nogui Posting here because I want to know how you guys start your server. I know how to edit it, just seeing other peoples.. stuff.. yeah.. get it?
well this part controls your ram: -Xmx2048M -Xms2048M Switch it out with this to use less ram: -Xincgc -Xmx1024M other people will have commands for optimizations, but i just run the basics. Btw that switches it from 2gb ram to 1gb
That has to do with craftbukkit and java starting up not much you can do there but I've never had a problem with it why are you experience huge spikes in ram usage?
Seems he wants it to be less taxing on his computer when he first starts it, most programs spike in usage of pu and ram when first started up. Still I've never seen a big issue with Bukkit.
I want it start with only using 1 gig of ram and then as people get on slowly get up to the max of 2 gig. I have seen someone do this, but they wouldn't share their run script with me.. for some reason. Any way to do this?
I recon it is like what paul said, just change the Xmx he had posted there to 2G, it will start with the minimum possible and increase until limit.
Code: java -Xmx2560M -Xms2560M -jar craftbukkit.jar That's what I use and it runs fine with over 48 plugins.
I did not look at when this was posted, I was browsing the internet for an issue I was personally having, and I saw this so I decided to help out.