users@jersey.java.net

[Jersey] Fw: Performance issue with _at_BeanParam/_at_PathParam

From: Veit Guna <Veit.Guna_at_gmx.de>
Date: Fri, 13 Nov 2015 15:06:49 +0100

Anyone?
 
 
--
Gesendet: Donnerstag, 29. Oktober 2015 um 10:50 Uhr
Von: "Veit Guna" <Veit.Guna_at_gmx.de>
An: users_at_jersey.java.net
Betreff: Performance issue with @BeanParam/_at_PathParam
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