Hi all,
I am having a problem that's been bugging me for almost a year now. The main symptoms are:
- I get alerted that my websites are down.
- I check in to see that my server is suffering from memory loss.
- I go and restart nginx - problem solved.
- After a few weeks, I have the same problem again.
In var\log\nginx\error_log
2021/01/14 00:11:01 [alert] 12746#0: fork() failed while spawning "worker process" (12: Cannot allocate memory)
2021/01/14 00:11:01 [alert] 12746#0: sendmsg() failed (9: Bad file descriptor)
2021/01/14 00:11:01 [alert] 12746#0: sendmsg() failed (9: Bad file descriptor)
2021/01/14 00:11:01 [alert] 12746#0: sendmsg() failed (9: Bad file descriptor)
2021/01/14 00:11:01 [alert] 12746#0: sendmsg() failed (9: Bad file descriptor)
2021/01/14 00:11:01 [alert] 12746#0: sendmsg() failed (9: Bad file descriptor)
2021/01/14 00:11:01 [alert] 12746#0: sendmsg() failed (9: Bad file descriptor)
2021/01/14 00:11:01 [alert] 12746#0: sendmsg() failed (9: Bad file descriptor)
I thought this is a memory leak problem with either the CWAF plugin or modsecurity in combination with nginx_apache, so I've been patiently (?) waiting for an update to fix it, but it's starting to get old now, and I'll be doing a lot of traveling this winter and don't want my web server to be offline for days.
It also seems like nobody is having the same problem. This issue sounded pretty much like mine:
But after re-reading it, it appears that modsecurity 3.0.4 (which is the version provided via Custombuild) is actually not affected. Unfortunately, if nobody else has my problem, I can probably wait for that "update" until the day I die.
I'm really at a loss here. Any ideas what I could do?
I am having a problem that's been bugging me for almost a year now. The main symptoms are:
- I get alerted that my websites are down.
- I check in to see that my server is suffering from memory loss.
- I go and restart nginx - problem solved.
- After a few weeks, I have the same problem again.
In var\log\nginx\error_log
2021/01/14 00:11:01 [alert] 12746#0: fork() failed while spawning "worker process" (12: Cannot allocate memory)
2021/01/14 00:11:01 [alert] 12746#0: sendmsg() failed (9: Bad file descriptor)
2021/01/14 00:11:01 [alert] 12746#0: sendmsg() failed (9: Bad file descriptor)
2021/01/14 00:11:01 [alert] 12746#0: sendmsg() failed (9: Bad file descriptor)
2021/01/14 00:11:01 [alert] 12746#0: sendmsg() failed (9: Bad file descriptor)
2021/01/14 00:11:01 [alert] 12746#0: sendmsg() failed (9: Bad file descriptor)
2021/01/14 00:11:01 [alert] 12746#0: sendmsg() failed (9: Bad file descriptor)
2021/01/14 00:11:01 [alert] 12746#0: sendmsg() failed (9: Bad file descriptor)
I thought this is a memory leak problem with either the CWAF plugin or modsecurity in combination with nginx_apache, so I've been patiently (?) waiting for an update to fix it, but it's starting to get old now, and I'll be doing a lot of traveling this winter and don't want my web server to be offline for days.
It also seems like nobody is having the same problem. This issue sounded pretty much like mine:
memory leak on nginx reload · Issue #2381 · owasp-modsecurity/ModSecurity
RAM usage constantly grows on nginx -s reload Having modsecurity rules loaded (even with modsecurity off) causes RAM usage to grow with each nginx -s reload and ultimately leads nginx to stuck with...
github.com
But after re-reading it, it appears that modsecurity 3.0.4 (which is the version provided via Custombuild) is actually not affected. Unfortunately, if nobody else has my problem, I can probably wait for that "update" until the day I die.
I'm really at a loss here. Any ideas what I could do?