Server memory usage
#1

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

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

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

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

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

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

Use this plugin and show me the log.
Reply
#8

Which plugins are you using?
Reply
#9

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

Sorry for bumping, but i really need help.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)