Wow, what a simple one-liner can improve performance!

On Wed, Feb 19, 2025 at 8:55 PM Grzegorz Grzybek <gr.grzy...@gmail.com>
wrote:

> Hello
>
> The ultimate fix is described here:
> https://issues.apache.org/jira/browse/CAMEL-21761. We've enabled Maven
> ModelCache for maven downloader.
>
> regards
> Grzegorz Grzybek
>
> pon., 17 lut 2025 o 19:46 Claus Ibsen <claus.ib...@gmail.com> napisał(a):
>
> > Hi
> >
> > Okay I tested 4.10.1 and 4.11.0 and they run fast again
> >
> > Apache Camel 4.11.0-SNAPSHOT (idle) started in 104ms (build:0ms init:0ms
> > start:104ms boot:741ms)
> >
> > On Mon, Feb 17, 2025 at 7:08 PM Claus Ibsen <claus.ib...@gmail.com>
> wrote:
> >
> > > Hi
> > >
> > > Okay we found out the problem is google-cloud-bom that is crazy.
> > > So we are fixing this to avoid importing this bom, and will be super
> fast
> > > again in 4.10.1 and onwards.
> > >
> > > On Mon, Feb 17, 2025 at 1:14 PM Claus Ibsen <claus.ib...@gmail.com>
> > wrote:
> > >
> > >> Hi
> > >>
> > >> I created a ticket
> > >> https://issues.apache.org/jira/browse/CAMEL-21750
> > >>
> > >> On Mon, Feb 17, 2025 at 12:20 PM Grzegorz Grzybek <
> gr.grzy...@gmail.com
> > >
> > >> wrote:
> > >>
> > >>> Hello
> > >>>
> > >>> I tracked the problem down to HUGE amount of transitive BOM
> > dependencies
> > >>> starting from com.google.cloud:libraries-bom:26.54.0 being
> bom-imported
> > >>> from camel-parent 4.10.0:
> > >>>
> > >>> com.google.cloud:libraries-bom:26.54.0
> > >>>  - com.google.protobuf:protobuf-bom:4.29.0
> > >>>  - com.google.cloud:first-party-dependencies:3.42.0
> > >>>     - com.google.api:gapic-generator-java-bom:2.52.0
> > >>>     - com.google.cloud:google-cloud-core-bom:2.50.0
> > >>>     - com.google.oauth-client:google-oauth-client-bom:1.37.0
> > >>>     - com.google.api-client:google-api-client-bom2.7.2
> > >>>  - com.google.cloud:google-cloud-bom:0.235.0
> > >>>     - com.google.cloud:gapic-libraries-bom:1.51.0
> > >>>        - 181 BOMs imported...
> > >>>     - com.google.cloud:google-cloud-bigquerystorage-bom:3.11.2
> > >>>        - I stopped counting...
> > >>>     - com.google.cloud:google-cloud-bigtable-bom:2.51.2
> > >>>     - com.google.cloud:google-cloud-datastore-bom:2.26.0
> > >>>     - com.google.cloud:google-cloud-firestore-bom:3.30.6
> > >>>     - com.google.cloud:google-cloud-logging-bom:3.21.2
> > >>>     - com.google.cloud:google-cloud-pubsub-bom:1.136.1
> > >>>     - com.google.cloud:google-cloud-pubsublite-bom:1.15.2
> > >>>     - com.google.cloud:google-cloud-spanner-bom:6.86.0
> > >>>     - com.google.cloud:google-cloud-storage-bom:2.48.1
> > >>>
> > >>> I'll see if there's something in maven-resolver that could be
> > optimized -
> > >>> but this is no longer a Camel/JBang issue...
> > >>>
> > >>> regards
> > >>> Grzegorz Grzybek
> > >>>
> > >>> niedz., 16 lut 2025 o 10:16 Claus Ibsen <claus.ib...@gmail.com>
> > >>> napisał(a):
> > >>>
> > >>> > Hi
> > >>> >
> > >>> > Also you can run camel-jbang with --verbose then it logs more
> > >>> information
> > >>> > about those maven activities that can help to find out why
> > >>> >
> > >>> >
> > >>> > On Sun, Feb 16, 2025 at 7:43 AM Claus Ibsen <claus.ib...@gmail.com
> >
> > >>> wrote:
> > >>> >
> > >>> > > Hi
> > >>> > >
> > >>> > > Can you try testing with older versions of camel jbang to find
> out
> > >>> if you
> > >>> > > can see a specific version where it was much slower.
> > >>> > >
> > >>> > >
> > >>> > > On Sat, Feb 15, 2025 at 8:50 PM Chirag <
> chirag.sangh...@gmail.com>
> > >>> > wrote:
> > >>> > >
> > >>> > >> Recently I am noticing that my jbang apps take longer to start.
> > >>> > >>
> > >>> > >> 2025-02-15 14:42:41.393  INFO 27180 --- [           main]
> > >>> > >> org.apache.camel.main.MainSupport        : Apache Camel (JBang)
> > >>> 4.10.0
> > >>> > is
> > >>> > >> starting
> > >>> > >> 2025-02-15 14:42:41.729  INFO 27180 --- [           main]
> > >>> > >> org.apache.camel.main.MainSupport        : Using Java 21.0.4
> with
> > >>> PID
> > >>> > >> 27180. Started by csanghavi in C:\work\camel-demos\fileToPubSub
> > >>> > >> 2025-02-15 14:42:41.938  INFO 27180 --- [           main]
> > >>> > >> org.apache.camel.main.ProfileConfigurer  : The application is
> > >>> starting
> > >>> > >> with
> > >>> > >> profile: dev
> > >>> > >> 2025-02-15 14:42:47.148  INFO 27180 --- [           main]
> > >>> > >> .main.download.MavenDependencyDownloader : Downloading:
> > >>> > >> org.apache.camel:camel-xslt-saxon:4.10.0 (elapsed: 5s)
> > >>> > >> 2025-02-15 14:42:52.153  INFO 27180 --- [           main]
> > >>> > >> .main.download.MavenDependencyDownloader : Downloading:
> > >>> > >> org.apache.camel:camel-xslt-saxon:4.10.0 (elapsed: 10s)
> > >>> > >> 2025-02-15 14:42:57.165  INFO 27180 --- [           main]
> > >>> > >> .main.download.MavenDependencyDownloader : Downloading:
> > >>> > >> org.apache.camel:camel-xslt-saxon:4.10.0 (elapsed: 15s)
> > >>> > >> 2025-02-15 14:43:00.302  INFO 27180 --- [           main]
> > >>> > >> .main.download.MavenDependencyDownloader : Resolved:
> > >>> > >> org.apache.camel:camel-xslt-saxon:4.10.0 (took: 18s175ms)
> > >>> > >> 2025-02-15 14:43:00.519  INFO 27180 --- [           main]
> > >>> > >> he.camel.cli.connector.LocalCliConnector : Camel JBang CLI
> enabled
> > >>> > >> 2025-02-15 14:43:00.846  INFO 27180 --- [           main]
> > >>> > >> e.camel.impl.engine.AbstractCamelContext : Apache Camel 4.10.0
> > >>> (one) is
> > >>> > >> starting
> > >>> > >> 2025-02-15 14:43:01.456  INFO 27180 --- [           main]
> > >>> > >> e.camel.impl.engine.AbstractCamelContext : Routes startup
> > (total:1)
> > >>> > >> 2025-02-15 14:43:01.457  INFO 27180 --- [           main]
> > >>> > >> e.camel.impl.engine.AbstractCamelContext :     Started route1
> > >>> > >> (timer://yaml)
> > >>> > >> 2025-02-15 14:43:01.458  INFO 27180 --- [           main]
> > >>> > >> e.camel.impl.engine.AbstractCamelContext : Apache Camel 4.10.0
> > (one)
> > >>> > >> started in 610ms (build:0ms init:0ms start:610ms boot:19s444ms)
> > >>> > >>
> > >>> > >>
> > >>> > >> it took about 19s, of that 18s was spent trying to fetch from
> > local
> > >>> > >> mvn cache.
> > >>> > >>
> > >>> > >> any setting to speed this up?
> > >>> > >>
> > >>> > >> This is on Windows 11.
> > >>> > >>
> > >>> > >> ચિરાગ/चिराग/Chirag
> > >>> > >> ------------------------------------------
> > >>> > >> Sent from My Gmail Account
> > >>> > >>
> > >>> > >
> > >>> > >
> > >>> > > --
> > >>> > > Claus Ibsen
> > >>> > > -----------------
> > >>> > > @davsclaus
> > >>> > > Camel in Action 2: https://www.manning.com/ibsen2
> > >>> > >
> > >>> >
> > >>> >
> > >>> > --
> > >>> > Claus Ibsen
> > >>> > -----------------
> > >>> > @davsclaus
> > >>> > Camel in Action 2: https://www.manning.com/ibsen2
> > >>> >
> > >>>
> > >>
> > >>
> > >> --
> > >> Claus Ibsen
> > >> -----------------
> > >> @davsclaus
> > >> Camel in Action 2: https://www.manning.com/ibsen2
> > >>
> > >
> > >
> > > --
> > > Claus Ibsen
> > > -----------------
> > > @davsclaus
> > > Camel in Action 2: https://www.manning.com/ibsen2
> > >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > @davsclaus
> > Camel in Action 2: https://www.manning.com/ibsen2
> >
>


-- 
Tadayoshi Sato

Reply via email to