How to allocate a certain amount of ram?
#1

Hello' how can I allocate a certain amount of ram for my samp server?
Reply
#2

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
Reply
#3

Quote:
Originally Posted by GRiMMREAPER
View Post
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
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)