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

high RAM and CPU usage #738

Closed
captainabloc opened this issue Apr 6, 2024 · 13 comments
Closed

high RAM and CPU usage #738

captainabloc opened this issue Apr 6, 2024 · 13 comments

Comments

@captainabloc
Copy link

Hello,
all works fine, but RAm consumption is constantly growing and is now up to 2 Gb alone, what seems high on a linux system.
Also any edition of advanced settings brings CPU consumption to 100% for a minute or more.

Docker runs on a dedicated debian 12 VM on Proxmox, with

  • 4 GB RAM
  • 4 cores x86-64-v2-AES (i5-11400)

would anyone know how to limit that?

many thanks

@Zoey2936
Copy link
Member

Zoey2936 commented Apr 6, 2024

Is it the index.js process or nginx?

@Zoey2936
Copy link
Member

Zoey2936 commented Apr 6, 2024

Also do you use crowdsec or have you enabled modsec on any host?

@captainabloc
Copy link
Author

hi,
it's nginx process - up to 100% CPU when editing advances
I use crowdsec

@Zoey2936
Copy link
Member

Zoey2936 commented Apr 6, 2024

Can you disable crowdsec and try again?

@captainabloc
Copy link
Author

got some modsecurity enabled in other proxies, all removed and now much faster....

@Zoey2936
Copy link
Member

Zoey2936 commented Apr 7, 2024

Yes, modsecurity often memory leak or uses a lot cpu when reloading, same for crowdsec sometimes. There is nothing I can do to prevent this. Either you accept this high usage or don't use modsec... I know not a good solution, but there is nothing I can do

@Zoey2936 Zoey2936 pinned this issue Apr 10, 2024
@Zoey2936

This comment was marked as off-topic.

@LePresidente

This comment was marked as off-topic.

@Zoey2936

This comment was marked as off-topic.

@parasiteoflife
Copy link

I've been having this problem too, but the problem is ModSecurity or CoreRuleSet? I think I'm not using crowdsec (I don't even know how to enable or disable it).

Asking because I remember that when I went on to disable ModSecurity and CoreRuleSet for all the proxy hosts, when the only ones that were left were the ones that only had ModSecurity enabled the high CPU consumption stopped, I still disabled ModSecurity in everything just in case because the problem made the entire system halt but I think ModSecurity is not triggering this issue.

@Zoey2936
Copy link
Member

Zoey2936 commented Sep 29, 2024

coreruleset has a lot of rules, this can cause hugh memory usage if enabled on many hosts, sorry, but that is "normal" behavior

@p0se

This comment was marked as off-topic.

@Zoey2936 Zoey2936 changed the title high RAm and CPU usage high RAM and CPU usage Oct 22, 2024
@Zoey2936 Zoey2936 unpinned this issue Jan 23, 2025
@Zoey2936
Copy link
Member

will close since there were no reports in the last time

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

No branches or pull requests

5 participants