[OpenSIPS-Devel] snmpstats problem

2010-04-26 Thread Richard Revels
I was doing a little performance testing over the weekend and noticed the snmp 
agent x process thread maxing out a core on my cpu.  I also noticed the hard 
drive was getting blown up.  It turned out that somewhere around 23,000 
registered users an out of memory condition occurred in the snmpstats module.  
This is just the latest in a long line of problems I have had with this module. 
 I'm not going to bother opening a bug tracker on it.  I'm just yanking it from 
my configs.

However, I did want to mention it on the mailing list so it can be looked at in 
case others want to continue working with it.  Here are the log messages.

Apr 25 20:37:56 guinea-pig2 osips-log[13687]: WARNING:core:fm_malloc: Not 
enough free memory, will atempt defragmenation
Apr 25 20:37:56 guinea-pig2 osips-log[13687]: ERROR:snmpstats:createHashRecord: 
failed to create a mapping record for +1@
Apr 25 20:37:56 guinea-pig2 osips-log[13687]: ERROR:snmpstats:updateUser: 
openserSIPRegUserTable was not able to push +1@ into the hash.  
User not added to this table
Apr 25 20:37:56 guinea-pig2 osips-log[13687]: 
NOTICE:snmpstats:executeInterprocessBufferCmd: Received a request for contact: 
+1@ for user: sip:+1@:15592 who doesn't exists

Here is the version info for the source code I'm using

[r...@guinea-pig2 opensips16-trunk]# svn info
Path: .
URL: https://opensips.svn.sourceforge.net/svnroot/opensips/branches/1.6
Repository Root: https://opensips.svn.sourceforge.net/svnroot/opensips
Repository UUID: 689a6050-402a-0410-94f2-e92a70836424
Revision: 6758
Node Kind: directory
Schedule: normal
Last Changed Author: bogdan_iancu
Last Changed Rev: 6758
Last Changed Date: 2010-04-02 14:19:34 + (Fri, 02 Apr 2010)


Richard



___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] snmpstats problem

2010-04-27 Thread Bogdan-Andrei Iancu
Hi Richard,

your opensips simply does not have enough shm memory to push all the 23K 
of subscribers to the snmp process . Increasing the shm mem should take 
care of it.

Regards,
Bogdan

Richard Revels wrote:
> I was doing a little performance testing over the weekend and noticed the 
> snmp agent x process thread maxing out a core on my cpu.  I also noticed the 
> hard drive was getting blown up.  It turned out that somewhere around 23,000 
> registered users an out of memory condition occurred in the snmpstats module. 
>  This is just the latest in a long line of problems I have had with this 
> module.  I'm not going to bother opening a bug tracker on it.  I'm just 
> yanking it from my configs.
>
> However, I did want to mention it on the mailing list so it can be looked at 
> in case others want to continue working with it.  Here are the log messages.
>
> Apr 25 20:37:56 guinea-pig2 osips-log[13687]: WARNING:core:fm_malloc: Not 
> enough free memory, will atempt defragmenation
> Apr 25 20:37:56 guinea-pig2 osips-log[13687]: 
> ERROR:snmpstats:createHashRecord: failed to create a mapping record for 
> +1@
> Apr 25 20:37:56 guinea-pig2 osips-log[13687]: ERROR:snmpstats:updateUser: 
> openserSIPRegUserTable was not able to push +1@ into the hash.  
> User not added to this table
> Apr 25 20:37:56 guinea-pig2 osips-log[13687]: 
> NOTICE:snmpstats:executeInterprocessBufferCmd: Received a request for 
> contact: +1@ for user: sip:+1@:15592 who doesn't 
> exists
>
> Here is the version info for the source code I'm using
>
> [r...@guinea-pig2 opensips16-trunk]# svn info
> Path: .
> URL: https://opensips.svn.sourceforge.net/svnroot/opensips/branches/1.6
> Repository Root: https://opensips.svn.sourceforge.net/svnroot/opensips
> Repository UUID: 689a6050-402a-0410-94f2-e92a70836424
> Revision: 6758
> Node Kind: directory
> Schedule: normal
> Last Changed Author: bogdan_iancu
> Last Changed Rev: 6758
> Last Changed Date: 2010-04-02 14:19:34 + (Fri, 02 Apr 2010)
>
>
> Richard
>
>
>
> ___
> Devel mailing list
> Devel@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro


___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] snmpstats problem

2010-04-27 Thread Richard Revels
Thank you for the reply Bogdan.  Much appreciated.  This particular proxy has 
enough moving pieces already though so I think I'm just going to stick with the 
stats module and MI.

Speaking of MI, I am using unix domain socket for MI interface and also had a 
problem listing the registered users.  Got an error in the logs about a string 
being too long and the opensipsctl process hung.  I'm going to run the test 
again and will give you better feedback on this one after that.  This is 
another one of those minor problems.  Listing an individual user had no issue 
and I don't see myself wanting to list thousands of registered users very 
often.  : >
 

Richard
  
On Apr 27, 2010, at 1:17 PM, Bogdan-Andrei Iancu wrote:

> Hi Richard,
> 
> your opensips simply does not have enough shm memory to push all the 23K 
> of subscribers to the snmp process . Increasing the shm mem should take 
> care of it.
> 
> Regards,
> Bogdan
> 
> Richard Revels wrote:
>> I was doing a little performance testing over the weekend and noticed the 
>> snmp agent x process thread maxing out a core on my cpu.  I also noticed the 
>> hard drive was getting blown up.  It turned out that somewhere around 23,000 
>> registered users an out of memory condition occurred in the snmpstats 
>> module.  This is just the latest in a long line of problems I have had with 
>> this module.  I'm not going to bother opening a bug tracker on it.  I'm just 
>> yanking it from my configs.
>> 
>> However, I did want to mention it on the mailing list so it can be looked at 
>> in case others want to continue working with it.  Here are the log messages.
>> 
>> Apr 25 20:37:56 guinea-pig2 osips-log[13687]: WARNING:core:fm_malloc: Not 
>> enough free memory, will atempt defragmenation
>> Apr 25 20:37:56 guinea-pig2 osips-log[13687]: 
>> ERROR:snmpstats:createHashRecord: failed to create a mapping record for 
>> +1@
>> Apr 25 20:37:56 guinea-pig2 osips-log[13687]: ERROR:snmpstats:updateUser: 
>> openserSIPRegUserTable was not able to push +1@ into the hash.  
>> User not added to this table
>> Apr 25 20:37:56 guinea-pig2 osips-log[13687]: 
>> NOTICE:snmpstats:executeInterprocessBufferCmd: Received a request for 
>> contact: +1@ for user: sip:+1@:15592 who doesn't 
>> exists
>> 
>> Here is the version info for the source code I'm using
>> 
>> [r...@guinea-pig2 opensips16-trunk]# svn info
>> Path: .
>> URL: https://opensips.svn.sourceforge.net/svnroot/opensips/branches/1.6
>> Repository Root: https://opensips.svn.sourceforge.net/svnroot/opensips
>> Repository UUID: 689a6050-402a-0410-94f2-e92a70836424
>> Revision: 6758
>> Node Kind: directory
>> Schedule: normal
>> Last Changed Author: bogdan_iancu
>> Last Changed Rev: 6758
>> Last Changed Date: 2010-04-02 14:19:34 + (Fri, 02 Apr 2010)
>> 
>> 
>> Richard
>> 
>> 
>> 
>> ___
>> Devel mailing list
>> Devel@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>> 
>> 
> 
> 
> -- 
> Bogdan-Andrei Iancu
> www.voice-system.ro
> 
> 
> ___
> Devel mailing list
> Devel@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel