Requests slow in `InvocableHandlerMethod.getMethodArgumentValues`
Issue
- We updated JBoss and now see long requests in spring, for example:
"ajp-localhost/127.0.0.1-8009-132" daemon prio=10 tid=0x00007fde68108000 nid=0x3efb waiting on condition [0x00007fde377e4000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000000d27d9870> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:867)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1197)
at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:214)
at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:290)
at org.springframework.util.ConcurrentReferenceHashMap$Segment.doTask(ConcurrentReferenceHashMap.java:458)
at org.springframework.util.ConcurrentReferenceHashMap.doTask(ConcurrentReferenceHashMap.java:351)
at org.springframework.util.ConcurrentReferenceHashMap.put(ConcurrentReferenceHashMap.java:252)
at org.springframework.util.ConcurrentReferenceHashMap.put(ConcurrentReferenceHashMap.java:243)
at org.springframework.core.ResolvableType.forType(ResolvableType.java:1021)
at org.springframework.core.ResolvableType.forType(ResolvableType.java:998)
at org.springframework.core.ResolvableType.forTypes(ResolvableType.java:725)
at org.springframework.core.ResolvableType.getInterfaces(ResolvableType.java:341)
at org.springframework.core.ResolvableType.as(ResolvableType.java:308)
at org.springframework.core.ResolvableType.asCollection(ResolvableType.java:274)
at org.springframework.core.GenericCollectionTypeResolver.getCollectionParameterType(GenericCollectionTypeResolver.java:188)
at org.springframework.web.method.annotation.RequestParamMethodArgumentResolver.getCollectionParameterType(RequestParamMethodArgumentResolver.java:216)
at org.springframework.web.method.annotation.RequestParamMethodArgumentResolver.isMultipartFileCollection(RequestParamMethodArgumentResolver.java:204)
at org.springframework.web.method.annotation.RequestParamMethodArgumentResolver.resolveName(RequestParamMethodArgumentResolver.java:164)
at org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.resolveArgument(AbstractNamedValueMethodArgumentResolver.java:86)
at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:79)
at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:157)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:124)
Environment
- JBoss Enterprise Application Platform (EAP) 6.x
- Spring
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.