Session cache slows down if large numbers of sessions with a single NameID are created

Description

Load testing with a common NameID across many sessions (e.g. 1000+) seems to slow down the creation of new sessions dramatically. I'm speculating this is because the code uses a serialized data structure to store the sessions active for a given NameID in a single storage context. Creation in that case requires deserializing a large object, modifying it, reserializing back to XML, and then store back, with the size of the XML growing the whole time.

In the ODBC, case it eventually blows through the column size at some point, probably before it gets big enough to slow things down.

This isn't a realistic load, but it probably should be looked at. Since the feature is only needed when SAML logout or NameID mgmt are used, might be worth having an option to just bypass it anyway.

Environment

None

Activity

Show:

Scott Cantor March 29, 2012 at 3:27 PM

Closing with documentation added.

Scott Cantor March 29, 2012 at 3:18 PM

Scott Cantor January 21, 2012 at 11:23 PM

The same issue shows up with monitoring tools that reuse a common NameID. The cache entry keeps sliding its expiration forward.

We definitely need a bypass option added.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Original estimate

Components

Fix versions

Created January 6, 2011 at 1:55 PM
Updated March 29, 2012 at 3:27 PM
Resolved March 29, 2012 at 3:18 PM