SA-MP Forums Archive
SA-MP bug? - 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: SA-MP bug? (/showthread.php?tid=392087)



SA-MP bug? - Juuaann - 12.11.2012

hello, I created a gamemode from 0, without any basis, it uses mysql, sscanf and ZCMD, I had serious problems with the use of RAM, each time a user enters the server, RAM 2 MB generally increases , and not back down not even when the user logs out, researching, selecting and clearing functions I have found are two reasons why the RAM is increased,
1. InterpolateCameraPos (playerid, 1418.2163, -1738.8589,21.0699,1433.3899, -1625.8849,21.9733, 20000);
InterpolateCameraLookAt (playerid, 1450.8862, -1699.7472,16.0882,1450.5934, -1659.8484,16.0882, 20000);

2. Starting assigning variables to users, eg PlayerInfo [playerid] [PADM] = 1;

Without these features, the ram consumption is not increased, this is very rare, not mysql problem, my server runs on my vps debian 6 32bit.

Looking for information, I found that using the command 'pmap <pid>' I can see that part of the program (samp-server) consumes memory, here I attached pictures, the first is the server without users, and second, once a user entered and was increased by 2 MB RAM.

1


2


as you can see in the pictures, the processes using the plugins are intact and well, but the processes [anon] markedly increased.

Thanks for you help.
Sorry my bad english, but i speak spanish.


Re: SA-MP bug? - nGen.SoNNy - 12.11.2012

I also have some problems with my server on mysql... my hoster said i use too much CPU


Re: SA-MP bug? - Deathh - 12.11.2012

Quote:
Originally Posted by Anonym2009
Посмотреть сообщение
I also have some problems with my server on mysql... my hoster said i use too much CPU
how about optimizing your script? MYSQL itself won't use that much CPU.


Re: SA-MP bug? - nGen.SoNNy - 12.11.2012

It's optimizated... I check it 2 days ago with 2 scripters!


Re: SA-MP bug? - AMEENAMEEN - 12.11.2012

Maybe a memory leak


Respuesta: Re: SA-MP bug? - Juuaann - 12.11.2012

Quote:
Originally Posted by AMEENAMEEN
Посмотреть сообщение
Maybe a memory leak
Because? My code is fully optimized