Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More than 1200 php processes - 99 % memory and swap usage #7423

Open
2 tasks done
smart7324 opened this issue May 1, 2024 · 2 comments
Open
2 tasks done

More than 1200 php processes - 99 % memory and swap usage #7423

smart7324 opened this issue May 1, 2024 · 2 comments
Labels
support Community support

Comments

@smart7324
Copy link

smart7324 commented May 1, 2024

Important notices

Our forum is located at https://forum.opnsense.org , please consider joining discussions there in stead of using GitHub for these matters.

Before you ask a new question, we ask you kindly to acknowledge the following:

Problem

Today I logged into my OPNsense dashboard and saw 99% memory and swap usage. I found out that there were 1231 php processes running, each using more than 60 MB of RAM.

A reboot of course fixed the issue, as after reboot only 8 php processes are running, but this can happen again I guess?

How can there be so many processes? Isn't there any limit set how many php processes can be spawned? I kind of know the configuration of php-fpm, there you can provide a maximum number of processes to fork. But it seems OPNsense core is not using php-fpm, but php-cgi.

I would be very happy about any help!

OPNsense 24.1.6-amd64
FreeBSD 13.2-RELEASE-p11
OpenSSL 3.0.13

Never experienced these problems before...

@smart7324 smart7324 added the support Community support label May 1, 2024
@AdSchellevis
Copy link
Member

ps faxd | grep php ?

@smart7324
Copy link
Author

Yeah now it's only the 8 processes. Will keep an eye on it and reply if it rises again...

root@opnsense:~ # ps faxd | grep php
 2996  0  S+     0:00.00 |       `-- grep php
19370  -  Is     0:00.03 | |-- /usr/local/bin/php-cgi
20452  -  S      0:01.49 | | |-- /usr/local/bin/php-cgi
22164  -  I      0:00.15 | | |-- /usr/local/bin/php-cgi
23878  -  I      0:00.76 | | `-- /usr/local/bin/php-cgi
20027  -  Is     0:00.03 | `-- /usr/local/bin/php-cgi
16663  -  S      0:00.75 |   |-- /usr/local/bin/php-cgi
46318  -  S      0:00.42 |   |-- /usr/local/bin/php-cgi
73876  -  S      0:00.45 |   `-- /usr/local/bin/php-cgi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Community support
Development

No branches or pull requests

2 participants