SA-MP Forums Archive
Server memory usage - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server memory usage (/showthread.php?tid=315436)



Server memory usage - wups - 03.02.2012

My sa-mp server eats more memory everyday the server is on(about +5mb per day). After a server restart everything gets back to normal. So my first guess was that I missed mysql_free_result(). I checked all mysql_store_result() and didn't find any place that mysql_free_result() was missed.
Any other ideas?


Re: Server memory usage - T0pAz - 03.02.2012

How can you be so sure that it's mysql problem. It can also be a problem on OnPlayerUpdate loop or timer loop.


Re: Server memory usage - wups - 03.02.2012

Quote:
Originally Posted by T0pAz
Посмотреть сообщение
How can you be so sure that it's mysql problem. It can also be a problem on OnPlayerUpdate loop or timer loop.
Where did I say, that I'm sure it's a mysql problem? That was only a guess.
AFAIK PAWN used memory is always the same, so my guess that it's a problem related to plugins.


Re: Server memory usage - T0pAz - 03.02.2012

Quote:
Originally Posted by wups
Посмотреть сообщение
Where did I say, that I'm sure it's a mysql problem? That was only a guess.
AFAIK PAWN used memory is always the same, so my guess that it's a problem related to plugins.
Are you 100% sure that it happens every time?


Re: Server memory usage - wups - 03.02.2012

Quote:
Originally Posted by T0pAz
Посмотреть сообщение
Are you 100% sure that it happens every time?
Yes, memory usage rises at random times.


Re: Server memory usage - milanosie - 03.02.2012

Things to check:

1. Does it do something weird at OnPlayerDisconnect?
2. Do you have a lot of oversized strings?
3. Do you use multiple saving systems or just one?
4. Is it a remote MySQL server or local ( remote takes memory for connecting and receiving the data trough a secured connection)


Re: Server memory usage - T0pAz - 03.02.2012

Use this plugin and show me the log.


Re: Server memory usage - The King's Bastard - 03.02.2012

Which plugins are you using?


Re: Server memory usage - wups - 03.02.2012

Quote:
Originally Posted by The King's Bastard
Посмотреть сообщение
Which plugins are you using?
sscanf(version 2)
mysql(R6 by BlueG)
streamer(by Incognito)



Quote:
Originally Posted by T0pAz
Посмотреть сообщение
Use this plugin and show me the log.
I don't think it's a good idea to use it on a live server.


Re: Server memory usage - wups - 03.02.2012

Sorry for bumping, but i really need help.