CPU Use High - /usr/local/bin/php
-
Hello All!!
I have taken the time to read through threads here plus elsewhere via Google pointing me to other sites. I have limited, disabled and changed setting in order to resolve the issue of consuming 100% CPU. It idles along at 40-50% but spends lots of time sitting between 95 and 100%.
Here is the image of System Activity:
last pid: 64690; load averages: 1.79, 1.38, 1.17 up 23+05:44:41 21:17:04
111 processes: 3 running, 95 sleeping, 13 waitingMem: 44M Active, 24M Inact, 49M Wired, 31M Buf, 113M Free
Swap: 256M Total, 256M FreePID USERNAME PRI NICE SIZE RES STATE TIME WCPU COMMAND
23625 root 106 0 29764K 23212K RUN 4:14 44.97% /usr/local/bin/php{php}
51342 root 76 0 30580K 23048K piperd 0:27 44.97% /usr/local/bin/php
10 root 171 ki31 0K 8K RUN 475.1H 1.95% [idle]
11 root -68 - 0K 104K WAIT 176:00 0.00% [intr{irq11: vr1}]
11 root -68 - 0K 104K WAIT 119:28 0.00% [intr{irq10: vr0}]
11 root -32 - 0K 104K WAIT 85:21 0.00% [intr{swi4: clock}]
13 root -16 - 0K 8K - 55:55 0.00% [yarrow]
0 root -68 0 0K 72K - 30:20 0.00% [kernel{dummynet}]
252 root 76 20 3352K 1188K kqread 23:33 0.00% /usr/local/sbin/check_reload_status
28256 root 44 0 11076K 7476K kqread 21:24 0.00% /usr/local/sbin/lighttpd -f /var/etc/lighty-we
21679 root 44 0 3264K 1248K select 9:09 0.00% /usr/local/sbin/apinger -c /var/etc/apinger.co
31614 nobody 44 0 5512K 2780K select 8:03 0.00% /usr/local/sbin/dnsmasq –all-servers --rebind
20 root 20 - 0K 8K syncer 2:13 0.00% [syncer]
7 root -16 - 0K 8K pftm 1:48 0.00% [pfpurge]
3 root -8 - 0K 8K - 1:38 0.00% [g_up]
5124 dhcpd 44 0 11456K 8640K select 1:37 0.00% /usr/local/sbin/dhcpd -user dhcpd -group _dhcp
64 root -8 - 0K 8K mdwait 1:35 0.00% [md0]
32750 root 76 20 3644K 1512K wait 1:08 0.00% /bin/sh /var/db/rrd/updaterrd.shpfSense : 2.1-RELEASE (i386)
ALIX Box and 2Gb FlashAny thoughts, ideas suggestions are welcomed. I know enough about Linux to be less than dangerous…..
Have fun in the meantime!
-
The CPU on ALIX is pretty slow by today's standards. If you leave a browser open on the dashboard it could chew up that much on there.
Open an SSH connection to the firewall, run "top -aSH" from the shell, and close your browser window to the firewall. If the CPU drops to 0 or close to it for PHP, then it's probably just the load from your browser on the dashboard or another AJAX-enabled page doing a continuous poll.
-
I also see this behaviour with 2.1.3 on a Alix 2D13 on viewing the dashboard. But with 2.0.1 this problem doesn't exist on the same hardware.
-
For what it's worth. I'm also seeing high cpu usage for php after upgrading from 2.0.3 to 2.1.3 on ALIX.6F2 and a Watchguard Firebox x1000. When closing the tabs for the web interface the cpu on the ALIX drops to 0. However on the Watchguard it does not. It stays around 80%. Wasn't seeing this issue on 2.0.3.
-
Same problem for me. I came from 2.0.1 and upgraded to 2.1.3.