How to allocate a certain amount of ram? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: How to allocate a certain amount of ram? (
/showthread.php?tid=657176)
How to allocate a certain amount of ram? -
ozm8ey - 02.08.2018
Hello' how can I allocate a certain amount of ram for my samp server?
Re: How to allocate a certain amount of ram? -
GRiMMREAPER - 02.08.2018
If you're using Linux, you can't "allocate" a certain amount of RAM to a certain process. You can, however, use
ulimit and set the process' virtual memory limit (if you're root, you can increase the limit, otherwise you can only decrease).
https://www.networkworld.com/article...th-ulimit.html
https://stackoverflow.com/questions/...ocess-in-linux
Re: How to allocate a certain amount of ram? -
ozm8ey - 02.08.2018
Quote:
Originally Posted by GRiMMREAPER
|
Ok its just on centos 7/linux on minecraft you can setup a start script like this:
screen -S NameHerejava -server -XX:+UseG1GC -Xmx4G -Xms4G -jar spigot-1.13.jar nogui
Just thought maybe you can do it for samp too