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

Poor performance #5

Open
tanpro260196 opened this issue Jan 8, 2024 · 9 comments
Open

Poor performance #5

tanpro260196 opened this issue Jan 8, 2024 · 9 comments
Labels
Performance Performance related issues

Comments

@tanpro260196
Copy link

Load time for almost any sites increased by tenfold compared to the original NPM. Regardless of detect/prevent mode and level.

Sometime a site just timeout while initiating connection, especially if the site have a lot of images.

@tanpro260196 tanpro260196 added the bug Something isn't working label Jan 8, 2024
@orianelou
Copy link

Hi @tanpro260196,

We're looking into this, could you please share your system's specs (CPU, RAM)? you can also send us the details to [email protected].

Thank you! and hope to have some good news soon,

Oriane
open-appsec team

@orianelou orianelou added Performance Performance related issues and removed bug Something isn't working labels Jan 8, 2024
@tanpro260196
Copy link
Author

Hi,

I am running it on an old PC.
CPU: i7 8700 (non-k)
16GB of ram DDR4.

@tanpro260196
Copy link
Author

Hi there, is there any update?

@mgrimace
Copy link

Ok adding to this, appsec-agent is consistently running between 200-400% of my cpu according to docker stats
Proxmox, 10 cores, 32 gb ram, Debian 12 LXC, i7 8700

@mgrimace
Copy link

Follow-up: removing open-appsec and going back to stock NPM dropped my overall Proxmox server CPU use from 40ish% to 8%.

@jiriteach
Copy link

Yup - I have experienced this as well. Similar processor and have the agent on Docker running ~ 45-50% CPU even when its not doing much. Managed to setup everything as required and works well but the increased CPU is an issue.

@jiriteach
Copy link

So I've tried the Linux Embedded Agent for comparison and the CPU usage is only ~ 5-8%. Any reason why its so hard on the Docker container version? Anything that can be done to optimise? Might have to use the Linux Embedded Agent and normal NGINX as opposed to NPM.

@brandonkal
Copy link

Any update on this? Would it be possible to use NPM for nginx and appsec config generation but run nginx on the host?
I am experimenting with using Nomad to run the WAF tasks

@AnnoyingTechnology
Copy link

Any update on this ? @orianelou

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

No branches or pull requests

6 participants