pfSense English Support > Official pfSense Hardware

SG-1000 CPU usage and webgui hanging

(1/2) > >>

lordbob75:
I've had my SG-1000 for a few months now, and I really like it, though I've been noticing some issues.

My CPU usage seems to always be at 100%, and any reductions in usage last seconds at best.  This occurs whether there is mere kilobytes of data, or I max out my connection.

I have no real idea if this is related, but the webgui is extremely slow.  Sometimes it can take literally minutes to load a page.  I realize the hardware isn't super powerful, so perhaps that's all it is, but it seems like it's too slow.

Also possibly related, the webgui will hang and then return a page unavailable error through the browser (as if my network was down).  This mostly only happens when I max out my download (60Mbps), which should be just over half of what the sg-1000 is supposed to handle.  Now, my connection seems to stay up while this is happening as Netflix usually continues to work, but sometimes sites won't load.  I know this can happen when the connection is overloaded, so I turned off the downloads, but the webgui doesn't want to come back and the connection issues to websites continue until I reboot the sg-1000.  I am not able to SSH into it either, it simply never connects.  It doesn't even give me a connection error.

I'm not sure this is the sg-1000 causing all of this, but it seems related.  Any ideas?  Any assistance is appreciated.

jimp:
Connect to the console and watch the output of "top -aSH" at a shell prompt while you use the device. That will be more accurate than watching from the GUI, which consumes a lot of CPU itself.

What packages or services do you have enabled on the firewall? Any traffic shaping or limiters?

rnatalli:
I've been testing one of these and it's a sensitive little sucker.  I'm running an OpenVPN client, PFBlocker NG, and Watchdog and it runs okay for SOHO.  One of the tricks is making sure none of your packages are updating too frequently and/or at peak times.  For example, when I setup PFBlocker originally, it was set to update its lists every couple hours and that would hang the interface, although the network traffic was flowing for the most part.  Set this for 3am and this problem has disappeared.

chrcoluk:
I discovered recently certain tasks will cause the GUI to hang.

e.g. if my WAN goes down, the process of attempting to reconnect can cause the GUI to hang, maybe this is one of the reasons for the planned changed after 2.4.

If the GUI does get stuck you can force a restart of php-fpm from the shell menu, but that can break tasks currently been run by any scripts.

lordbob75:

--- Quote from: jimp on June 26, 2017, 08:04:23 am ---Connect to the console and watch the output of "top -aSH" at a shell prompt while you use the device. That will be more accurate than watching from the GUI, which consumes a lot of CPU itself.

What packages or services do you have enabled on the firewall? Any traffic shaping or limiters?

--- End quote ---
I've got:
BandwidthD (removing this though)
Net-SNMP (will remove in favour of telegraf)
openvpn-client-export
PFBlockerNG
Service_WatchDog
Softflowed (will remove in favour of telegraf)

PFBlockerNG just does DNS adblocking, no shaping.  I never setup any limiting or shaping.

I'll have to try console if this happens again.



--- Quote from: rnatalli on June 26, 2017, 06:12:52 pm ---I've been testing one of these and it's a sensitive little sucker.  I'm running an OpenVPN client, PFBlocker NG, and Watchdog and it runs okay for SOHO.  One of the tricks is making sure none of your packages are updating too frequently and/or at peak times.  For example, when I setup PFBlocker originally, it was set to update its lists every couple hours and that would hang the interface, although the network traffic was flowing for the most part.  Set this for 3am and this problem has disappeared.

--- End quote ---
My PFBlockerNG lists update one list per day late at night.  They were not running at the time this occured.



--- Quote from: chrcoluk on June 26, 2017, 10:52:03 pm ---I discovered recently certain tasks will cause the GUI to hang.

e.g. if my WAN goes down, the process of attempting to reconnect can cause the GUI to hang, maybe this is one of the reasons for the planned changed after 2.4.

If the GUI does get stuck you can force a restart of php-fpm from the shell menu, but that can break tasks currently been run by any scripts.

--- End quote ---
Makes sense.  I figured there was a good chance it was just overloaded.  I cannot get to the shell from SSH though, will have to try on console next time.

Navigation

[0] Message Index

[#] Next page

Go to full version