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

Performance #332

Open
GoogleCodeExporter opened this issue May 20, 2015 · 3 comments
Open

Performance #332

GoogleCodeExporter opened this issue May 20, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

I Had a Server facing around 10000 requests per second. I Added Esapi for 
Security checks ( mostly getValidInput) and it crashed the CPU. CPU Utilization 
went to 90%  with around 1500 requests per sec. I use 
ESAPI.validator().getValidInput(params) everytime i need to check. Am i doing 
something wrong or is it a performance bug?? Please help asap. I am stuck. DO I 
have to implement singleton class somewhere?

Original issue reported on code.google.com by guptanav...@gmail.com on 8 Jul 2014 at 6:33

@GoogleCodeExporter
Copy link
Author

fyi I also use ESAPI.encoder().canonicalize()

Original comment by guptanav...@gmail.com on 8 Jul 2014 at 6:34

@GoogleCodeExporter
Copy link
Author

Please somebody reply. I have a deadline to meet and i have no clue what to do.

Original comment by guptanav...@gmail.com on 8 Jul 2014 at 8:26

@GoogleCodeExporter
Copy link
Author

Figured out the issue. In ValidInput we were not setting Encoder to true or 
false Manually. So it used to read the properties and cause a Severe 
Performance Issue. As a Data for 1 lakh Requests it took 3 times more time when 
no input was provided. Maybe we should mention it in the documents somewhere as 
a Safe Practice.

Original comment by guptanav...@gmail.com on 8 Jul 2014 at 10:55

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

No branches or pull requests

1 participant