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

It often leads memory leak on nginx reload #2502

Closed
Hello-Linux opened this issue Jan 21, 2021 · 8 comments
Closed

It often leads memory leak on nginx reload #2502

Hello-Linux opened this issue Jan 21, 2021 · 8 comments
Assignees

Comments

@Hello-Linux
Copy link

Hello-Linux commented Jan 21, 2021

Describe the bug

We publish more frequently every day, and often reload nginx,every few days nginx has a memory leak,How to fix it?

Logs and dumps

Output of:

2021/01/21 11:04:08 [alert] 25264#25264: fork() failed while spawning "worker process" (12: Cannot allocate memory)
2021/01/21 11:04:08 [alert] 25264#25264: sendmsg() failed (9: Bad file descriptor)
2021/01/21 11:04:08 [alert] 25264#25264: sendmsg() failed (9: Bad file descriptor)
2021/01/21 11:04:08 [alert] 25264#25264: sendmsg() failed (9: Bad file descriptor)

Expected behavior

A clear and concise description of what you expected to happen.

Server (please complete the following information):

  • Modsecurity: v3.0.4-92-gd72be1c for Linux with nginx-connector v1.0.1
  • WebServer: nginx-1.17.8
  • OS: Centos7.6
@Hello-Linux Hello-Linux changed the title memory leak on nginx reload It often leads memory leak on nginx reload Jan 21, 2021
@zimmerle
Copy link
Contributor

Duplicate of #2381

@zimmerle zimmerle marked this as a duplicate of #2381 Jan 21, 2021
@zimmerle zimmerle self-assigned this Jan 21, 2021
@Hello-Linux
Copy link
Author

Hello-Linux commented Jan 22, 2021

@zimmerle From #2381, I don't see how to fix this problem? Now what do I need to do

@Hello-Linux
Copy link
Author

Hello-Linux commented Jan 25, 2021

@zimmerle How to solve this problem? The impact of this problem is very serious. I hope that the government will pay close attention to the repair and repair version 3.0.4 as soon as possible

@zimmerle
Copy link
Contributor

@Hello-Linux copy in paste the same comments across multiple issues is not good for the project index. Please avoid doing it.

Typically, users search for the existing issues before opening a new topic. Sometimes they get a response by just reading a similar problem.

@Hello-Linux
Copy link
Author

@zimmerle Sorry, I don't know what you mean. What I want to ask is how to solve this memory leak?

@Abce
Copy link

Abce commented Jul 1, 2021

maybe this PR (#2580) can resovle you probole @Hello-Linux

@hebo209812
Copy link

I also encountered the same problem. It is the same with the latest 3.0.7. After nginx - s reload, there is a lot of memory leakage, and the memory is basically consumed after several more executions. This problem is very serious and has a great impact on the production environment

@martinhsv
Copy link
Contributor

Closing in favour of #2848

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

No branches or pull requests

5 participants