You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
avoid synchronization when AspectJExpressionPointcut.getShadowMatch hits cache [SPR-5668] #10339
After we've added app-level cache to our app AspectJExpressionPointcut.getShadowMatch became a bottleneck on concurrent reads. In certain load tests, our system spends 6x more time blocked in getShadowMatch than in overall Runnable time. Happy to provide a JProfiler snapshot illustrating the problem (if needed).
Given that once an entry some targetMethod key is added to shadowMapCache it is never updated or evicted, there should be a way to avoid synchronization either altogether or when shadowMapCache returns a value on get. Please see the forum post for further details.
Activity
spring-projects-issues commentedon Apr 12, 2009
Nikita Tovstoles commented
Attached JProfiler (v5.2.1) snapshot illustrating the problem
spring-projects-issues commentedon Apr 16, 2009
Nikita Tovstoles commented
Please note that the following method is also a source of contention under load (and imo, similarly to the above, can be dealt with
LazySingletonAspectInstanceFactoryDecorator.getAspectInstance()
this.maaif isn't static, so I guess this static block is delaying the sole call to maaif.getAspectInstance().
spring-projects-issues commentedon Apr 17, 2009
Juergen Hoeller commented
Thanks for pointing these out! I've addressed both for 3.0 M3.
Juergen