[OpenSIPS-Users] limit of using $acc_extra() variables

Marco Hierl marco.hierl at next-id.de
Tue Feb 14 02:53:17 EST 2017


Hi Ionut,

I can’t send the signal to any process, because OpenSIPS does not start.
But I set memdump=1 during the start and put the log here: https://www.file-upload.net/download-12311434/Feb10start.log.html

Thanks for your help!
  Marco





Von: Users [mailto:users-bounces at lists.opensips.org] Im Auftrag von Ionut Ionita
Gesendet: Donnerstag, 9. Februar 2017 16:56
An: OpenSIPS users mailling list
Betreff: Re: [OpenSIPS-Users] limit of using $acc_extra() variables


Please start OpenSIPS using memdump=1 option at the beginning of your script. When the memory errors appear generate a SIGUSR1 signal to all opensips processes

killall -SIGUSR1 opensips

and then please sent me the memory report you should see in your logs. For more information check this tutorial[0], last section(At runtime). You can either send the results here on the list or privately, however you prefer.



[0] http://www.opensips.org/Documentation/TroubleShooting-OutOfMem

Regards,

Ionut Ionita

OpenSIPS Developer
On 02/07/2017 12:39 PM, Marco Hierl wrote:
Dear all,

there seems to be a limit of using $acc_extra() variables.

I’m using the ACC module to log accounting data into a file and it’s working fine even with logging of extra_fields.
But when I come to the point that I used $acc_extra variables more often (around 45 times) in the config file, I get “not enough free pkg memory” during the OpenSIPS start.

Ok, so I set start option –M from 8 to 128… but the fault did not change.


Maybe this part of my config file can explain it better. It is running fine as long as I don’t remove one of the “#”-signs below:

modparam("acc", "extra_fields", "log: switch; internal_ci; related_inc_cdrs; time; us; si; inroute; outroute; bno_in; bno_out; snr; ziel; tu; anum; fu; diverting_no; cpc; privacy; ua; received; p-germany-tariff; switch_dur; init; eos")

route{
…
                   do_accounting("log", "missed|failed", "");

                   $acc_extra(switch)="sitename";       ..(and couple of assignments/po’s more) …
                   $acc_extra(si)="si”;
                   $acc_extra(ua)="ua”;
xlog("L_DBG","+++ $acc_extra(ua)");

                   #$acc_extra(ua)="ua”;
                   #$acc_extra(received)="yes";
                   #xlog("L_DBG","+++ $acc_extra(ua)");

…
}

If I remove any of the “#” above I get:

Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Not starting opensips: invalid configuration file!
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: -e
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] INFO:core:tr_parse_re: preparing to parse param
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] INFO:cfgutils:shvar_init_locks: locks array size 16
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] INFO:core:tr_parse_re: preparing to parse param
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] INFO:core:tr_parse_re: preparing to parse param
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] INFO:core:tr_parse_re: preparing to parse param
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] INFO:core:tr_parse_re: preparing to parse param
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] INFO:core:fix_poll_method: using epoll_lt as the IO watch method (auto detected)
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] ERROR:core:qm_malloc: not enough free pkg memory (64 bytes left), please increase the "-M" command line parameter!
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] ERROR:core:new_sock_info: pkg memory allocation error
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] ERROR:core:new_sock2list: new_sock_info failed
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] ERROR:core:add_interfaces: new_sock2list failed
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] ERROR:core:qm_malloc: not enough free pkg memory (64 bytes left), please increase the "-M" command line parameter!
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] ERROR:core:new_sock_info: pkg memory allocation error
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] ERROR:core:new_sock2list: new_sock_info failed
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] ERROR:core:add_interfaces: new_sock2list failed
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] ERROR:core:fix_socket_list: could not resolve eth0
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] ERROR:core:fix_all_socket_lists: fix_socket_list for 1 failed
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] ERROR:core:main: failed to initialize list addresses
Feb  7 10:57:25 sbc-dtag-bln opensips[3282]: Feb  7 10:57:25 [3290] NOTICE:core:main: Exiting....

This is for OpenSIPS 2.2 & 2.3, running on
Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux



Thanks for your help
  Marco





_______________________________________________

Users mailing list

Users at lists.opensips.org<mailto:Users at lists.opensips.org>

http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170214/89197c63/attachment-0001.html>


More information about the Users mailing list