op_server.pl taking maximum cpu time.

shishir
Posts: 13
Member Since:
2007-09-02

hello everybody,

After tracking the system i figured out that op_server.pl is taking max. cpu time. More the call in the queue more will be the load. I have attached the output of top as below.

top - 14:28:47 up 20 min, 4 users, load average: 3.05, 2.48, 1.44e

Cpu(s): 76.3% us, 23.4% sy, 0.0% ni, 0.0% id, 0.3% wa, 0.0% hi, 0.0% si
Mem: 1034128k total, 171548k used, 862580k free, 11800k buffers
Swap: 779144k total, 0k used, 779144k free, 59960k cached

6544 asterisk -11 0 28780 10m 5140 S 7.9 1.0 1:37.03 asterisk
6606 asterisk 15 0 13168 8848 1884 S 21.4 0.9 3:39.68 op_server.pl
6544 asterisk -11 0 28784 10m 5140 S 16.1 1.0 1:37.52 asterisk
11025 asterisk 18 0 18420 5880 3764 R 10.2 0.6 0:00.31 dialparties.agi
11026 asterisk 21 0 18040 5788 3708 R 10.2 0.6 0:00.31 dialparties.agi
6393 root 15 0 8300 2516 2056 S 0.7 0.2 0:04.91 sshd
8339 root 15 0 6436 1232 980 S 0.7 0.1 0:02.15 asterisk
10571 root 15 0 2792 912 728 S 0.7 0.1 0:00.66 top
10615 root 16 0 7848 2520 2052 S 0.7 0.2 0:00.59 sshd
10685 root 17 0 3616 912 728 R 0.7 0.1 0:00.52 top
220 root 15 0 0 0 0 S 0.3 0.0 0:00.67 kjournald
7024 root 17 0 3284 904 728 S 0.3 0.1 0:05.81 top
1 root 16 0 2396 532 452 S 0.0 0.1 0:00.66 init
2 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
4 root 5 -10 0 0 0 S 0.0 0.0 0:00.03 events/0
5 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 khelper
6 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/0
7 root 15 0 0 0 0 S 0.0 0.0 0:00.00 khubd
46 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
47 root 15 0 0 0 0 S 0.0 0.0 0:00.14 pdflush
49 root 12 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0
44 root 15 0 0 0 0 S 0.0 0.0 0:00.01 kapmd
48 root 16 0 0 0 0 D 0.0 0.0 0:00.07 kswapd0
123 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kseriod
206 root 18 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
1184 root 6 -10 1776 464 356 S 0.0 0.0 0:00.02 udevd
1538 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 kauditd
1568 root 8 -10 0 0 0 S 0.0 0.0 0:00.00 kmirrord
1569 root 8 -10 0 0 0 S 0.0 0.0 0:00.00 kmir_mon
1592 root 19 0 0 0 0 S 0.0 0.0 0:00.00 kjournald
2771 root 15 0 2856 1000 708 S 0.0 0.1 0:00.00 dhclient
2807 root 16 0 3480 568 480 S 0.0 0.1 0:00.04 syslogd
3548 root 16 0 3048 448 384 S 0.0 0.0 0:00.00 klogd
4567 rpc 15 0 3156 572 476 S 0.0 0.1 0:00.00 portmap
4586 rpcuser 18 0 1652 728 628 S 0.0 0.1 0:00.00 rpc.statd
4613 root 16 0 4120 984 812 S 0.0 0.1 0:00.00 rpc.idmapd
4644 root 16 0 2820 476 420 S 0.0 0.0 0:00.00 apmd
4695 root 19 0 2456 808 600 S 0.0 0.1 0:00.00 smartd
4708 root 16 0 8780 2036 1596 S 0.0 0.2 0:00.01 cupsd
4773 root 16 0 5168 1688 1388 S 0.0 0.2 0:00.07 sshd
4789 root 18 0 2508 804 672 S 0.0 0.1 0:00.00 xinetd
4806 ntp 16 0 4616 4616 3356 S 0.0 0.4 0:00.02 ntpd
4815 root 18 0 5468 972 744 S 0.0 0.1 0:00.00 vsftpd
4876 root 23 0 4716 1224 1064 S 0.0 0.1 0:00.00 mysqld_safe
4906 mysql 16 0 123m 18m 3760 S 0.0 1.8 0:00.88 mysqld
4952 ircd 15 0 14624 10m 1716 S 0.0 1.1 0:00.05 ircd
4970 root 16 0 8408 2976 2012 S 0.0 0.3 0:00.00 sendmail
4979 smmsp 20 0 7048 2564 1752 S 0.0 0.2 0:00.00 sendmail

any helps or suggestions much appreciated.

PLEASE HELP !!!

Shishir



max666
Posts: 7
Member Since:
2006-12-13
Has anyone found the solution for this?

I have the same problem - after a while (3-4 days) my dediacated trixbox box
will use all cpu on op_server.pl (uptime >6).
After reboot everything seems to work fine for another few days :)



yemurai
Posts: 5
Member Since:
2008-03-23
Same problem too

Hi

I also have the same problem, my pbx has been misbehaving, it freezes such that calls stop coming through and it stops working. Been monitoring cpu usage & also noticed that op_server.pl causes considerable load on cpu. Did u find a solution to your problem? Please help me out.

Thanx!



yemurai
Posts: 5
Member Since:
2008-03-23
op_server.pl causing load on cpu

Hi

I also have a problem, my pbx has been misbehaving, it freezes such that calls stop coming through and it stops working. that i end up rebooting. Been monitoring cpu usage & noticed that op_server.pl causes considerable load on cpu. Does anyone have a solution to this problem? Please help me out.

Thanx!



shishir
Posts: 13
Member Since:
2007-09-02
Hi, The op_server.pl runs

Hi,
The op_server.pl runs the script to show the calls status on the flash panel which leads the system uptime to be high if there is large number of extensions say 170+.
As for my case i solved the problem by load balancing i.e separated the total extension into two different server. You can also stop the op_server.pl by command "amportal stop_fop" this will stop the op_server.pl to get load.

If this solution informative, do comment..

Regards,
Shishir
http://www.shishir.com.np



yemurai
Posts: 5
Member Since:
2008-03-23
Does stopping op_server.pl

Thanks for the response.

Before I try your suggestion, will "amportal stop_fop" stop showing the call status on the pbx PANEL web interface? I would still need to monitor calls using the panel. You also mentioned that system uptime will be high if there is large number of extensions say 170+, I only have 35 extensions and may add on five new ones. Maybe my load is also high because the pbx is for a call centre so phones are constantly ringing.



shishir
Posts: 13
Member Since:
2007-09-02
No amportal stop_fop will

No amportal stop_fop will stop the flash panel on web interface. You can also try the alternate way to configure the system which might help to reduce the system uptime.
Will you rite the detail configuration of your system and the number of zip/iax/zaptel channels you are using !! that will help to debug the problem !!!

Regards,
Shishir



yemurai
Posts: 5
Member Since:
2008-03-23
Am still new to asterisk,

Am still new to asterisk, are there any specific files you want information on as far as the configuration is concerned? Not too clear on which configuration details you want. I have 16 zaptel channels and 35 extensions. I tried using "amportal stop_fop" and observed the following:

1)httpd process startred coming up, at times 2 of them at one time each using on average 17 -20% cpu
2)there was no significant change in performance,
3)today for some reason asterisk is now showing 100-110% cpu, usually its 10 -15% cpu, didnt
change anything except "amportal stop_fop" & "amportal start_fop"
4)even after "amportal start_fop" the httpd processes were still appearing frequently

Below is output from this morning show the high asterisk cpu %:

Below is the output I get when monitoring cpu usage, you'll notice that asterisk shows 105% usage and op_server shows 17% but at times the op_server.pl can be as high as 41% or 67%:

top - 09:13:58 up 1 day, 17:59, 1 user, load average: 5.19, 5.26, 4.86
Tasks: 95 total, 4 running, 91 sleeping, 0 stopped, 0 zombie
Cpu(s): 36.6%us, 33.4%sy, 0.0%ni, 25.8%id, 0.0%wa, 3.5%hi, 0.7%si, 0.0%st
Mem: 2075712k total, 1997240k used, 78472k free, 13624k buffers
Swap: 1052248k total, 200k used, 1052048k free, 1796316k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5073 asterisk 15 0 48176 18m 6564 R 105 0.9 994:18.57 asterisk
14628 asterisk 15 0 12776 9076 1912 S 17 0.4 14:51.82 op_server.pl
26014 asterisk 16 0 21372 6648 4440 R 6 0.3 48:57.38 directory
26008 asterisk 16 0 21372 6644 4440 R 5 0.3 48:52.39 directory
26020 asterisk 16 0 21372 6644 4440 S 5 0.3 49:03.65 directory
5259 root 15 0 2184 1080 828 R 1 0.1 0:01.48 top



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.