Run time error 16: "Out of memory" -
JamesMc - 10.10.2016
Hi,
I have this problem with my server:
Quote:
Script[gamemodes/.amx]: Run time error 16: "Out of memory"
Failed to load 'gamemodes/.amx' script.
Number of vehicle models: 4
|
How do I make it so, my server doesn't use that much memory, is that possible?
Can someone help me fix this?
Thanks!
Re: Run time error 16: "Out of memory" -
tronyx - 10.10.2016
Hi,
You should allocate more memory to avoid this error. Are you running it on VPS or your rent server?
Re: Run time error 16: "Out of memory" -
IceBilizard - 10.10.2016
try to add this in script
PHP код:
#pragma dynamic 206384
Re: Run time error 16: "Out of memory" -
JamesMc - 10.10.2016
Quote:
Originally Posted by tronyx
Hi,
You should allocate more memory to avoid this error. Are you running it on VPS or your rent server?
|
I'm renting a server from a host, as in just a normal SA-MP server host.
Quote:
Originally Posted by IceBilizard
try to add this in script
PHP код:
#pragma dynamic 206384
|
I've added that into my script file and it still didn't work.
Re: Run time error 16: "Out of memory" -
Crayder - 10.10.2016
Your server is using more RAM than your server provides.
If you're using FRAG (as your signature suggests), this makes perfect sense since it is a free [thus usually highly limited] host.
Re: Run time error 16: "Out of memory" -
JamesMc - 14.10.2016
Quote:
Originally Posted by Crayder
Your server is using more RAM than your server provides.
If you're using FRAG (as your signature suggests), this makes perfect sense since it is a free [thus usually highly limited] host.
|
I'm just using FRAG to test my server to see what it's like and get some feedback on it. Do you know how make my script use less memory??
Re: Run time error 16: "Out of memory" -
Private200 - 14.10.2016
Quote:
Originally Posted by JamesMc
I'm just using FRAG to test my server to see what it's like and get some feedback on it. Do you know how make my script use less memory??
|
Remove plugins you do not use. MapAndreas might be one of the reasons of such a high usage. It might be broken code as well.
Re: Run time error 16: "Out of memory" -
JamesMc - 15.10.2016
Quote:
Originally Posted by Private200
Remove plugins you do not use. MapAndreas might be one of the reasons of such a high usage. It might be broken code as well.
|
Alright thanks. Here is a list of the plugins I use:
- Audio
- Libmysql
- MySQL
- Native Checker
- Sscanf
- Streamer
- Whirlpool
What plugin out of those's above, will use to much memory?
Re: Run time error 16: "Out of memory" -
GoldenLion - 15.10.2016
Quote:
Originally Posted by JamesMc
Alright thanks. Here is a list of the plugins I use:
- Audio
- Libmysql
- MySQL
- Native Checker
- Sscanf
- Streamer
- Whirlpool
What plugin out of those's above, will use to much memory?
|
Lol, I have a new small roleplay gamemode that I created by myself that uses sscanf and streamer only and I can run that on frag. But when I add crashdetect then the server doesn't just start. So it doesn't work with 3 plugins and you are using 6 plugins. :P Or for example my old gamemode, when I added Whirlpool the server didn't start, so free frag servers are only good for really small gamemodes or these that use few plugins. Anyways you probably can't run your gamemode on a free frag server.
Re: Run time error 16: "Out of memory" -
ev0lution - 17.10.2016
Quote:
Originally Posted by JamesMc
Alright thanks. Here is a list of the plugins I use:
- Audio
- Libmysql
- MySQL
- Native Checker
- Sscanf
- Streamer
- Whirlpool
What plugin out of those's above, will use to much memory?
|
The Whirlpool plugin has been known to cause issues, using a disproportionately large amount of memory on startup which causes the server to be shut down. For some reason it happens after the plugin has been loaded. Everything else should be fine, so I would try removing Whirlpool and see if that resolves your issue.
Re: Run time error 16: "Out of memory" -
Vince - 17.10.2016
Libmysql is not a plugin. Native checker should only be loaded if you encounter problems. Whirlpool is arguably also unneeded because you have a viable native alternative (SHA256_PassHash). Also reduce size of arrays where possible.