You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by jreitz88 <ji...@ieee.org> on 2015/11/10 00:16:36 UTC

BeanInfo#collectParameterAnnotations using a great deal of CPU time

I'm relatively new to Camel, but we've been using it for quite some time on
my project.  Today, I noticed that even when our system is relatively
lightly loaded, the BeanInfo#collectParameterAnnotations() method is listed
in JVisualVM CPU sampling as using 26% of our total CPU time.  This seems
extremely high to me, and I was wondering if this might be an indicator that
we are misusing Camel?  

We're using Java 7 under Tomcat 7.0.56, and an older version of Camel
(2.10.4).

Thanks in advance!



--
View this message in context: http://camel.465427.n5.nabble.com/BeanInfo-collectParameterAnnotations-using-a-great-deal-of-CPU-time-tp5773551.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: BeanInfo#collectParameterAnnotations using a great deal of CPU time

Posted by jreitz88 <ji...@ieee.org>.
Thanks.  I'll give that a try as soon as we get time to do the upgrade.





--
View this message in context: http://camel.465427.n5.nabble.com/BeanInfo-collectParameterAnnotations-using-a-great-deal-of-CPU-time-tp5773551p5773593.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: BeanInfo#collectParameterAnnotations using a great deal of CPU time

Posted by Claus Ibsen <cl...@gmail.com>.
That is a an old version of Camel. The bean introspection has a local
cache so the introspection cost is only once. As you use such an old
version I am not sure it includes that cache and other improvements we
have done since.

You can try upgrade and see what yourkit says in a never version.

On Tue, Nov 10, 2015 at 12:16 AM, jreitz88 <ji...@ieee.org> wrote:
> I'm relatively new to Camel, but we've been using it for quite some time on
> my project.  Today, I noticed that even when our system is relatively
> lightly loaded, the BeanInfo#collectParameterAnnotations() method is listed
> in JVisualVM CPU sampling as using 26% of our total CPU time.  This seems
> extremely high to me, and I was wondering if this might be an indicator that
> we are misusing Camel?
>
> We're using Java 7 under Tomcat 7.0.56, and an older version of Camel
> (2.10.4).
>
> Thanks in advance!
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/BeanInfo-collectParameterAnnotations-using-a-great-deal-of-CPU-time-tp5773551.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2