Run time error 16: "Out of memory"
#1

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!
Reply
#2

Hi,

You should allocate more memory to avoid this error. Are you running it on VPS or your rent server?
Reply
#3

try to add this in script

PHP код:
#pragma dynamic 206384 
Reply
#4

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.
Reply
#5

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.
Reply
#6

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

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.
Reply
#8

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?
Reply
#9

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.
Reply
#10

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.
Reply
#11

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)