[OpenSIPS-Users] OpenSIPs crashed
ahmedmunir007 at gmail.com
Mon Jan 16 09:51:13 EST 2017
See details below;
[root at qorblpsisprxyd1 ~]# opensips -V
version: opensips 2.2.2 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC,
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
main.c compiled on 11:09:47 Jan 13 2017 with gcc 4.4.7
[root at qorblpsisprxyd1 ~]# opensipsctl ps
Process:: ID=0 PID=8269 Type=attendant
Process:: ID=1 PID=8271 Type=MI FIFO
Process:: ID=2 PID=8272 Type=time_keeper
Process:: ID=3 PID=8274 Type=timer
Process:: ID=4 PID=8275 Type=SIP receiver udp:10.3.120.94:5060
Process:: ID=5 PID=8278 Type=SIP receiver udp:10.3.120.94:5060
Process:: ID=6 PID=8279 Type=SIP receiver udp:10.3.120.94:5060
Process:: ID=7 PID=8281 Type=SIP receiver udp:10.3.120.94:5060
Process:: ID=8 PID=8283 Type=SIP receiver udp:10.3.120.94:5060
Process:: ID=9 PID=8285 Type=SIP receiver udp:10.3.120.94:5060
Process:: ID=10 PID=8287 Type=SIP receiver udp:10.3.120.94:5060
Process:: ID=11 PID=8289 Type=SIP receiver udp:10.3.120.94:5060
Process:: ID=12 PID=8291 Type=Timer handler
[root at qorblpsisprxyd1 ~]# lscpu
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
On-line CPU(s) list: 0-7
Thread(s) per core: 1
Core(s) per socket: 4
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
CPU MHz: 1197.000
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 8192K
NUMA node0 CPU(s): 0-3
NUMA node1 CPU(s): 4-7
In /etc/default/opensips config, declaring shared and pkg memory as server
memory is 64 GB;
# Amount of shared memory to allocate for the running OpenSIPS server (in
# Amount of pkg memory to allocate for the running OpenSIPS server (in Mb)
Let me know any other info needed from my end.
Date: Mon, 16 Jan 2017 10:49:37 +0200
> From: Răzvan Crainea <razvan at opensips.org>
> To: users at lists.opensips.org
> Subject: Re: [OpenSIPS-Users] OpenSIPs crashed
> Message-ID: <1584806e-a154-a5ad-a464-4eef609158f4 at opensips.org>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
> Hi, Ahmed!
> Can you tell us exactly what revision of OpenSIPS you are using? Please
> provide the output of the following commands:
> opensips -V
> opensipsctl ps
> Also, during startup, is there a process who's "eating" a lot of CPU? If
> so, can you pinpoint the PID to see what type of process is that?
> Regarding the avp_db_query() issue, did you define a db_url parameter
> for it? Also I am not sure you can do something like $var(res) =
> avp_db_query(...). But anyways, this is something completely different,
> so please open a different topic for it.
> Best regards,
> Răzvan Crainea
> OpenSIPS Solutions
> On 01/14/2017 12:24 AM, Ahmed Munir wrote:
> > Hi,
> > I've just installed new version of opensips 2.2.2 on the test box and
> > updated by routing script, the issue currently I'm seeing alot warning
> > messages while starting opensips service below;
> > /usr/sbin/opensips: WARNING:core:handle_timer_job: utimer job
> > <tm-utimer> has a 2830000 us delay in execution
> > Number of children running on that server is 8 as it is 8 core processor.
> > I would like to know what steps do I need to take to fix this issue.
> > Btw, warnings only occurred during the time of starting opensips
> > service but not during calls.
> > Further added, a issue I face using avp_db_query () function i.e. when
> > using it as
> > $var(res) = avp_db_query("SELECT Outpulse_number,setid FROM
> > Prefix_data where Program_prefix = $var(pg_prefix)", "$avp(outpluse),
> > $avp(trunkid)");
> > failed to start opensips service due to errors below;
> > ERROR:avpops:__fixup_db_query_avp: no db url defined to be used by
> > this function
> > ERROR:core:fix_actions: fixing failed (code=-6) at
> > //etc/opensips/opensips.cfg:207
> > CRITICAL:core:fix_expr: fix_actions error
> > ERROR:core:main: failed to fix configuration with err code -6
> > If I add this line: avp_db_query("SELECT 1"); above to my $var(res) db
> > query, opensips service starts successfully.
> > Please advise the steps do I need to take to fix above issues.
Ahmed Munir Chohan
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users