SA-MP bug?
#1

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

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

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

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

Maybe a memory leak
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)