monitor contention at org.springframework.core.MethodParameter.getParameterAnnotations() [SPR-9298] #13936
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Nikita Tovstoles opened SPR-9298 and commented
On each web request, RequestMappingHandlerAdapter.invokeHandlerMethod() indirectly calls MethodParameter.getParameterAnnotations(), which calls into JRE lib method causing monitor contention. See screen shots & YourKit snapshot. Most likely will need to patch spring (caching results of calls to java.lang.reflect.Method.getParameterAnnotations())
Looking at Spring's MethodParameter:
results of calls on Method & Constructor:
should be cached in two static Maps (since MethodParameter object is recreated per request)
Affects: 3.1 GA
Attachments:
Issue Links:
0 votes, 7 watchers
The text was updated successfully, but these errors were encountered: