21.7.3. - high CPU - Mem usage:OK - very slow web access - HALF SOLVED

Started by MidGe, September 26, 2021, 01:46:04 AM

Previous topic - Next topic
So am I.  :(  :)

So I now have to decide whether to re-install or go to an alternative like pfSense, IPFire or OpenWRT. They all have their pluses and minuses.

To re-install without having a clue about the issue seems a bit pointless.

Shrug!

Anyway thanks for your attention and time given to this. I really appreciated it.

27631 root          1  88    0   112M    91M CPU2     2   0:15  53.56% /usr/local/bin/php /usr/local/opnsense/scripts/interfaces/traffic_stats.php
33574 root          1  87    0   110M    89M CPU1     1   0:09  52.59% /usr/local/bin/php /usr/local/opnsense/scripts/interfaces/traffic_stats.php
7197 root          1  88    0   127M   111M RUN      1   0:17  51.95% /usr/local/bin/php /usr/local/opnsense/scripts/routes/gateway_status.php
80339 root          1  87    0   108M    87M RUN      0   0:08  50.00% /usr/local/bin/php /usr/local/opnsense/scripts/routes/gateway_status.php
35262 root          1  83    0   108M    86M CPU3     3   0:05  37.70% /usr/local/bin/php /usr/local/opnsense/scripts/interfaces/traffic_stats.php
55901 root          1  82    0   106M    85M RUN      2   0:05  35.50% /usr/local/bin/php /usr/local/opnsense/scripts/routes/gateway_status.php

It sure looks odd. Nothing in the code that would suddenly cause this so reinstall might solve it or not- worst case your hardware is slowing things down which would transfer to any other new installation.

Make sure your health audit comes up empty. If that is the case trying booting a live image with an early config import and see if that behaves better. It might also be the disk or SD card depending on what is installed there.


Cheers,
Franco

My system is near to crash - did the upgrade this morning to 21.7.3_1

CPU most of the time 100%, Memory increasing and increasing ..
Think it's a phython 3.8 issue together with syslog-ng ?!

last pid: 13263;  load averages:  3.97,  3.91,  3.46                                                                                                                 up 9+13:55:29  18:08:53
53 processes:  3 running, 48 sleeping, 2 zombie
CPU: 54.5% user,  0.0% nice, 40.1% system,  1.1% interrupt,  4.3% idle
Mem: 851M Active, 503M Inact, 1384M Laundry, 1047M Wired, 392M Buf, 123M Free
Swap: 5120M Total, 3212M Used, 1908M Free, 62% Inuse, 128K In, 6016K Out

  PID USERNAME    THR PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
74757 root          6  28    0    33M  4388K kqread   0  91:32  93.87% syslog-ng
90861 root          1 101    0    11M  1564K RUN      2  87:22  87.99% syslogd
15412 root          1 101    0  4261M  2115M CPU3     3 842:39  85.44% python3.8


Name    opnadm9.opn9.9opn
Versions    OPNsense 21.7.3_1-amd64
FreeBSD 12.1-RELEASE-p20-HBSD
OpenSSL 1.1.1l 24 Aug 2021
Updates    Click to check for updates.
CPU type    AMD GX-412TC SOC (4 cores)
CPU usage    
Load average    3.69, 3.72, 3.33
Uptime    9 days 13:53:29
Current date/time    Tue Sep 28 18:06:53 CEST 2021
Last config change    Tue Sep 28 11:16:26 CEST 2021
CPU usage    
100 %
State table size    
0 % ( 890/403000 )
MBUF usage    
0 % ( 1806/250690 )
Memory usage    
88 % ( 3563/4035 MB )
SWAP usage    
59 % ( 3041/5120 MB )
Disk usage    
75% / [ufs] (9.3G/13G)

@devhunter55
imho your issue is related with https://forum.opnsense.org/index.php?topic=24868.0 not this one
try to reboot opnsense or just kill '/usr/local/bin/python3 /usr/local/opnsense/service/configd_ctl.py -e -t 0.5 system event config_changed' instances and clear system log

yes, thanks .. i already mentioned that in the other board  :D