• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

CPU Use High - /usr/local/bin/php

Scheduled Pinned Locked Moved General pfSense Questions
5 Posts 5 Posters 2.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O
    OzRattler
    last edited by Mar 10, 2014, 10:21 AM

    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 waiting

    Mem: 44M Active, 24M Inact, 49M Wired, 31M Buf, 113M Free
    Swap: 256M Total, 256M Free

    PID 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.sh

    pfSense :  2.1-RELEASE (i386)
    ALIX Box and 2Gb Flash

    Any thoughts, ideas suggestions are welcomed.  I know enough about Linux to be less than dangerous…..

    Have fun in the meantime!


    …insanity is so confusing...

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Mar 24, 2014, 5:31 PM

      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.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • K
        kanzi
        last edited by May 10, 2014, 1:15 PM

        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.

        1 Reply Last reply Reply Quote 0
        • M
          monodactylus
          last edited by May 18, 2014, 5:11 PM

          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.

          1 Reply Last reply Reply Quote 0
          • E
            engwan
            last edited by Jun 6, 2014, 2:31 PM

            Same problem for me. I came from 2.0.1 and upgraded to 2.1.3.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received