Run time error 16: "Out of memory" -
appleomax - 30.07.2015
Hello,
I bought a VPS and tried to launch a MySQL gamemode. I installed MySQL, Apache, uploaded all the server files and I get this error when I start my server
Код:
[19:08:18] Script[gamemodes/gm.amx]: Run time error 16: "Out of memory"
[19:08:18] Failed to load 'gamemodes/gm.amx' script.
My VPS has 512 MB of RAM, ant it shows that 418 MB are used.
I also had a problem when I installed MysQL/Apache to the VPS (using Putty), I got an error about memory too, but phpmyadmin works fine, so I guess I installed it correctly
So, could MySQL, Apache and SA-MP modification take so much memory and shouldn't it be enough 94 MB of RAM for the server to work?
AW: Run time error 16: "Out of memory" -
Kaliber - 30.07.2015
Quote:
Originally Posted by appleomax
94 MB of RAM for the server to work?
|
As you can see...no
Well, you're script seems to be very bad scripted.
You should learn how to hold the stack & heap very small if you have low ram.
Its good if you use this:
https://sampforum.blast.hk/showthread.php?tid=275142
Otherwise, you can run the server on your localhost...or just take a free testserver...or sth else
Re: Run time error 16: "Out of memory" -
Vince - 30.07.2015
MySQL and especially Apache are
huge memory hogs. I would advise getting rid of Apache and opting for another webserver. Chances are you're only going to run phpMyAdmin so you don't need Apache. Lighttpd or nginx will do the job fine and phpMyAdmin has built-in configuration for Lighthttpd (though sadly not for nginx, which is my favorite).
What's the capacity of the swap and how much is used?
Re: Run time error 16: "Out of memory" -
appleomax - 30.07.2015
Quote:
Originally Posted by Kaliber
As you can see...no
Well, you're script seems to be very bad scripted.
You should learn how to hold the stack & heap very small if you have low ram.
Its good if you use this: https://sampforum.blast.hk/showthread.php?tid=275142
Otherwise, you can run the server on your localhost...or just take a free testserver...or sth else
|
Thanks for the reply, I'll check this out
Quote:
Originally Posted by Vince
MySQL and especially Apache are huge memory hogs. I would advise getting rid of Apache and opting for another webserver. Chances are you're only going to run phpMyAdmin so you don't need Apache. Lighttpd or nginx will do the job fine and phpMyAdmin has built-in configuration for Lighthttpd (though sadly not for nginx, which is my favorite).
What's the capacity of the swap and how much is used?
|
Re: Run time error 16: "Out of memory" -
Vince - 30.07.2015
No swap. That's a problem. This will inevitably result in more crashes. If an operating system needs more memory than it physically has then it writes some data to disk. This is known as the swap. If there's no swap the OS has no place to store the additional data and applications or the entire OS will crash. The swap partition should be at least the size of the physical memory.
Re: Run time error 16: "Out of memory" -
appleomax - 30.07.2015
Should I contact my VPS provider about swap or there is a way to fix this?