12.05.2012, 08:59
Hello, my server keeps consuming more and more ram for every day it's on. The ram usage goes up with about 40-50mb/day with is way to much for my vps. My vps is running Centos 6 64bit and my sa-mp version is 0.3e.
Plugins I'm useing:
mysql.dll (BlueG R7) Link
sscanf.dll (The latest version on the first page) Link
GeoIP_Plugin.dll (0.1.4) Link
MapAndreas.dll (Kalcors version) Link
regex.dll (0.2) Link
irc.dll (1.4.2) Link
More info about mysql:
I'm threading all my questions and most of them uses the new cache function that should store and clear the result automatically. The log also says it's doing just that. Anyway the questions I doesn't cache i ether doesn't store result at all (Insert/update/delete questions) or I store and then clear the result manually. The mysql log also confirms this. (I get no out of sync errors and when I look at some questions it says result stored then result freed.)
More info about pvars:
I do only use about 10-30 PVarInt's no strings ever! Also the ram usage is not going down when the player count goes down.. Pvars is reseted when a player quits? Anyway I doesn't think pvars is the problem here.
More info about the irc:
The irc is connected to two channels one admin channel and one regular chat channel. The severs main chat gets sent to the irc channel with is creating a lot of traffic and I mean a lot about (1 msg every 5 sec in average). So if there is a small memory leak in every message sent/received by the irc plugin then this is most likely the problem.
So my question is now where do you think the memory leak is located? Also is it possible to get the ram usage of one single plugin in linux?
Plugins I'm useing:
mysql.dll (BlueG R7) Link
sscanf.dll (The latest version on the first page) Link
GeoIP_Plugin.dll (0.1.4) Link
MapAndreas.dll (Kalcors version) Link
regex.dll (0.2) Link
irc.dll (1.4.2) Link
More info about mysql:
I'm threading all my questions and most of them uses the new cache function that should store and clear the result automatically. The log also says it's doing just that. Anyway the questions I doesn't cache i ether doesn't store result at all (Insert/update/delete questions) or I store and then clear the result manually. The mysql log also confirms this. (I get no out of sync errors and when I look at some questions it says result stored then result freed.)
More info about pvars:
I do only use about 10-30 PVarInt's no strings ever! Also the ram usage is not going down when the player count goes down.. Pvars is reseted when a player quits? Anyway I doesn't think pvars is the problem here.
More info about the irc:
The irc is connected to two channels one admin channel and one regular chat channel. The severs main chat gets sent to the irc channel with is creating a lot of traffic and I mean a lot about (1 msg every 5 sec in average). So if there is a small memory leak in every message sent/received by the irc plugin then this is most likely the problem.
So my question is now where do you think the memory leak is located? Also is it possible to get the ram usage of one single plugin in linux?