users@jersey.java.net

[Jersey] Performance issue with _at_BeanParam/_at_PathParam

From: Veit Guna <Veit.Guna_at_gmx.de>
Date: Thu, 29 Oct 2015 10:50:34 +0100

Hi.
 
We performed LoadTests with our Jersey 2.19 Webapplication under Tomcat 7 using JDK7.
During profiling we encountered, that Jersey spends most of the time within ReflectionHelper trying to parse @PathParams - as it seems.
Here's a screenshot of the profiling results: http://oi68.tinypic.com/2cdtizq.jpg
 
We're injecting @BeanParams in our Resources. One of the @BeanParam class has also @PathParam fields. Commenting out @PathParam
on the fields and parsing the UrlInfo path manually removes those ReflectionUtils calls in the profiler and performance is greatly increased.
 
We also tested against the latest 2.22.1 version - with the same results.
 
Any idea what is going on?
 
Thanks
Veit