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

CPU usage #26

Closed
rx-209 opened this issue Mar 16, 2020 · 5 comments
Closed

CPU usage #26

rx-209 opened this issue Mar 16, 2020 · 5 comments
Labels
question Further information is requested

Comments

@rx-209
Copy link

rx-209 commented Mar 16, 2020

Now using script for real ddos mitigation. When i instaled your script insted of my old code - cpu usage highly increased.
Screenshot_1

@C0nw0nk
Copy link
Owner

C0nw0nk commented Mar 16, 2020

You say old script before this update what update version are you comparing to. bf420a3

It will help me identify what is causing CPU hogging.

@rx-209
Copy link
Author

rx-209 commented Mar 17, 2020

Sorry for misunderstanding, old script - another code, not related to your repository.

@C0nw0nk C0nw0nk closed this as completed Mar 17, 2020
@C0nw0nk
Copy link
Owner

C0nw0nk commented Mar 19, 2020

@rx-209 I know your issue was unrelated to my code as you said but I went ahead and Optimized / squeezed my code for all the performance it can give you with Nginx and LuaJIT including having it cache regex.

3780ce9

If you want something i use in production on my own Nginx servers turn this feature on http://nginx.org/en/docs/ngx_core_module.html#pcre_jit

@rx-209
Copy link
Author

rx-209 commented Mar 26, 2020

Great, cpu load decreased by 1,5-2 times, thx.

@C0nw0nk
Copy link
Owner

C0nw0nk commented Mar 26, 2020

@rx-209 No problem glad you see a huge performance impact i will tweak it further to get the last couple of things upto standard but you most likely won't see a performance gain because it will be such a small one it won't be noticeable.

@C0nw0nk C0nw0nk added the question Further information is requested label Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants