Re: [HELP] - Profile camel-core for optimization and faster startup

2017-07-05 Thread Claus Ibsen
Hi I just pushed some commits that improves a little bit the startup of Apache Camel. The Caffeine LRUCache will upon initialization block for 150 - 200 millis, which we can do in parallel while Camel is being started. Before this initialization was always forced when you created a new instance of

Re: [HELP] - Profile camel-core for optimization and faster startup

2017-06-30 Thread Claus Ibsen
Hi I found some other rooms for optimisations such as - invoking the base of the core type converters faster - jmx mbean of processors in the routes is using advice over wrapped processor to reduce garbage collection - simple language now caches evaluated expressions/predicates which yields faster

Re: [HELP] - Profile camel-core for optimization and faster startup

2017-06-23 Thread Claus Ibsen
Hi Just a little status update, that after a bunch of different optimisations, then the YourKit profiler is now down to showing that the type converter registry and the uuid generator is potential hot-spots, where the former is used a lot and we can optimise the conversions for the core converters

Re: [HELP] - Profile camel-core for optimization and faster startup

2017-06-09 Thread Claus Ibsen
On Mon, May 29, 2017 at 7:30 AM, Luca Burgazzoli wrote: > It may be worth adding a small number of JMH micro benchmarks - not to > be used as performances metrics - on camel core so we can spot > potential regressions. > I just added our first JMH tests, which you can find in the tests/camel-jmh

Re: [HELP] - Profile camel-core for optimization and faster startup

2017-06-06 Thread Claus Ibsen
Hi Just a heads up that I have been in contact with YourKit about licenses for their tool for Apache Camel committers. They got back to me and we have a project wide license that can hold 10 installed copies. I have installed one so there is 9 left. Anyone whom is helping with this work of work

Re: [HELP] - Profile camel-core for optimization and faster startup

2017-06-01 Thread Claus Ibsen
On Mon, May 29, 2017 at 7:30 AM, Luca Burgazzoli wrote: > It may be worth adding a small number of JMH micro benchmarks - not to > be used as performances metrics - on camel core so we can spot > potential regressions. > A candidate for JMH micro benchmark would be the org.apache.camel.impl.Activ

Re: [HELP] - Profile camel-core for optimization and faster startup

2017-05-30 Thread Claus Ibsen
On Mon, May 29, 2017 at 4:23 PM, Claus Ibsen wrote: > Hi > > So today the old cruft of the legacy tracer came to bit us. There is > something called Tracer in camel-core that was used to trace Camel > messages. Its only in use if you do camelContext.setTracing(true) from > Camel end users point of

Re: [HELP] - Profile camel-core for optimization and faster startup

2017-05-29 Thread Claus Ibsen
Hi So today the old cruft of the legacy tracer came to bit us. There is something called Tracer in camel-core that was used to trace Camel messages. Its only in use if you do camelContext.setTracing(true) from Camel end users point of view. However it captures trace details regardless. That old c

Re: [HELP] - Profile camel-core for optimization and faster startup

2017-05-29 Thread Claus Ibsen
On Mon, May 29, 2017 at 7:30 AM, Luca Burgazzoli wrote: > It may be worth adding a small number of JMH micro benchmarks - not to > be used as performances metrics - on camel core so we can spot > potential regressions. > Yeah we can try that. > --- > Luca Burgazzoli > > > On Sun, May 28, 2017 at

Re: [HELP] - Profile camel-core for optimization and faster startup

2017-05-28 Thread Luca Burgazzoli
It may be worth adding a small number of JMH micro benchmarks - not to be used as performances metrics - on camel core so we can spot potential regressions. --- Luca Burgazzoli On Sun, May 28, 2017 at 11:31 AM, Claus Ibsen wrote: > Hi > > I have found some more spots for optimisations which I h

Re: [HELP] - Profile camel-core for optimization and faster startup

2017-05-28 Thread Claus Ibsen
Hi I have found some more spots for optimisations which I have committed over the last couple of days. Its been several years since we last did such things last, and I have to admit we have introduced some code that add more object allocation and a few performance drawbacks since then. So with t

Re: [HELP] - Profile camel-core for optimization and faster startup

2017-05-26 Thread Claus Ibsen
On Fri, May 26, 2017 at 4:42 PM, Zoran Regvart wrote: > Hi, > awesome work Claus :) > > Just to add that you can do a lot with just VisualVM (bundled with > JDK), or if you run Oracle JDK Mission Control/Java Flight Recorder > which does not require a license when used in development[1]. > > And l

Re: [HELP] - Profile camel-core for optimization and faster startup

2017-05-26 Thread Zoran Regvart
Hi, awesome work Claus :) Just to add that you can do a lot with just VisualVM (bundled with JDK), or if you run Oracle JDK Mission Control/Java Flight Recorder which does not require a license when used in development[1]. And let me throw a few things into the mix: there is a great tool for find

[HELP] - Profile camel-core for optimization and faster startup

2017-05-26 Thread Claus Ibsen
Hi We have found a few spots to optimize the camel-core source code for thread contention and something else. You can use a profile tool such as YourKit which is excellent at identifying spots and visualizing what goes on in the JVM. We have used it in the past to optimise stuff. However recentl