-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ngin reload memory leak #2552
Comments
I have the same memory leak problem with v3/master.
|
@ffais memory leak is just happening when the parser brakes? |
No this also happens also when the parser work properly. |
I can confirm the issue on 3.1-experimental. However, that class of problem only happens in the warning framework, only available on 3.1-experimental. On v3/master warnings are treated as errors, the parser finishes abruptly, leaving no chance for leaks -- at least not on reload. |
We use Nginx with mod security in an autoscaling environment with nginx as a load balancer. We build it from open source. We recently upgraded to Nginx 1.18 w/ Modsecurity 3.0.4 and the memory leak is pretty severe. We have kept more instances running last 2 days to ensure there are not so frequent. |
Is this issue still happening with v3/master? What is your distro? |
@willyamcts Apache conector for 3.x is not yet stable. Please use version 2.x with Apache. |
thank you! |
I made some test building from master, memory leak is still present. More details: |
We have the same problem, I've tested it in v3/master and v3/dev/3.1 and I see the leak in both, I don´t see it in v3/dev/3.1-experimental nor in PR #2580. |
I checked both v3/dev/3.1-experimental and v3/master, it seems we still have the same problem. |
Hello there, Sorry for the dig up, but I still observe the memory leak when I try to use NGINX / ModSecurity / OWASP CRS. Here my environment: I know my environment is not all uptodate, but many people try on many different environments and all of them observe the memory leak. I'm here to ask if there is a solution, because this issue run for a long time now, more than 1 year ?! Does anyone have some news ? Best regards |
Hello @labanana34, Regarding ctl:forceRequestBodyVariable: it isn't really relevant to the topic in this issue. It's helpful to other users searching about things if comments are directly related to the issues in which they are posted. Note, however, that there is an open issue related to you inquiry here: #2146 . Regarding memory leaks on rule reload: other things have taken priority recently, but I hope to spend some time on that in the post-v3.0.7 period. |
@labanana34 could you try owasp-modsecurity/ModSecurity-nginx#277? |
Still happening on ModSecurity v3 Nginx Connector 1.0.3 |
Closing as duplicate |
It often leads memory leak on nginx reload using modsecurity branch 3.1-experimental and master,I hope that the official will fix this problem as soon as possible, which has a serious impact on the production environment.
I have raised this serious problem several times. When will the official fix it?
I feel that this problem should be solved first, but why haven’t you fixed it after so long?
And There is also why this problem #2381 was closed without being resolved!!!
I suggest that you officially do a test yourself. First, create a lot of virtual hosts, each virtual host quotes the modsecurity rules separately, and then constantly reload, the memory leak should be reproduced!
help!help!help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
The text was updated successfully, but these errors were encountered: