BasicAuthenticationFilter.doFilter() method taking too long in load testing
I am performance testing UAA version 2.7.3. I am testing 2 workflows with 50 jmeter threads.
- Get a new Oauth token with grant_type=password - /TokenEndpoint/postAccessToken
- Check token to see if it is valid. - /check_token
In both of these calls, I notice that BasicAuthenticationFilter.doFilter() method is consistently taking 100ms which seem to be quite high. I have about 1000 test client and users which I loop through in my test to get the token and also to check the token. See below for some New Relic data during the test run:
/TokenEndpoint/postAccessToken:
/check_token:

Now when I switch using just one client and one user(marissa), I dont even see that method in the New Relic graph which goes to show that the time taken is negligible.
See below for graphs with just 1 user
/TokenEndpoint/postAccessToken:
/check_token:

Any idea what is making that method expensive when running with multiple users and clients and is there a way to work around it?
We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/111795296.
Closed. Behavior is as expected.