Hi,

It might be specific to your one.yaml route. Can you provide us with the
route yaml?

On Mon, Feb 17, 2025 at 1:01 AM Chirag <chirag.sangh...@gmail.com> wrote:

> Here is more:
> C:\work\camel-demos\fileToPubSub>camel run --verbose one.yaml
> 2025-02-16 10:52:46.984  INFO 30360 --- [           main]
> org.apache.camel.main.MainSupport        : Apache Camel (JBang) 4.10.0 is
> starting
> 2025-02-16 10:52:47.300  INFO 30360 --- [           main]
> org.apache.camel.main.MainSupport        : Using Java 21.0.4 with PID
> 30360. Started by user in C:\work\camel-demos\fileToPubSub
> 2025-02-16 10:52:47.474  INFO 30360 --- [           main]
> org.apache.camel.main.ProfileConfigurer  : The application is starting with
> profile: dev
> 2025-02-16 10:52:52.686  INFO 30360 --- [           main]
> .main.download.MavenDependencyDownloader : Downloading:
> org.apache.camel:camel-xslt-saxon:4.10.0 (elapsed: 5s)
> 2025-02-16 10:52:57.695  INFO 30360 --- [           main]
> .main.download.MavenDependencyDownloader : Downloading:
> org.apache.camel:camel-xslt-saxon:4.10.0 (elapsed: 10s)
> 2025-02-16 10:53:02.700  INFO 30360 --- [           main]
> .main.download.MavenDependencyDownloader : Downloading:
> org.apache.camel:camel-xslt-saxon:4.10.0 (elapsed: 15s)
> 2025-02-16 10:53:05.531  INFO 30360 --- [- MavenDownload]
> .main.download.MavenDependencyDownloader : Dependencies:
> org.apache.camel:camel-xslt-saxon:4.10.0 ->
> [[org.apache.camel:camel-xslt-saxon:4.10.0,
> org.apache.camel:camel-xslt:4.10.0, org.apache.camel:camel-support:4.10.0,
> org.apache.camel:camel-api:4.10.0,
> jakarta.xml.bind:jakarta.xml.bind-api:4.0.2,
> jakarta.activation:jakarta.activation-api:2.1.3,
> org.apache.camel:camel-management-api:4.10.0,
> org.apache.camel:camel-util:4.10.0,
> org.apache.camel:camel-util-json:4.10.0,
> org.apache.camel:camel-xml-jaxp-util:4.10.0, org.slf4j:slf4j-api:2.0.16,
> org.apache.camel:camel-xml-jaxp:4.10.0,
> org.apache.camel:camel-core-model:4.10.0,
> org.apache.camel:camel-core-processor:4.10.0,
> org.apache.camel:camel-xml-io-util:4.10.0, net.sf.saxon:Saxon-HE:12.5,
> org.xmlresolver:xmlresolver:5.2.2,
> org.apache.httpcomponents.client5:httpclient5:5.1.3,
> org.apache.httpcomponents.core5:httpcore5-h2:5.1.3,
> commons-codec:commons-codec:1.15,
> org.apache.httpcomponents.core5:httpcore5:5.1.3,
> org.xmlresolver:xmlresolver:5.2.2]]
> 2025-02-16 10:53:05.531  INFO 30360 --- [- MavenDownload]
> .main.download.MavenDependencyDownloader : Added classpath:
> org.apache.camel:camel-xslt-saxon:4.10.0
> 2025-02-16 10:53:05.531  INFO 30360 --- [- MavenDownload]
> .main.download.MavenDependencyDownloader : Added classpath:
> org.apache.camel:camel-xslt:4.10.0
> 2025-02-16 10:53:05.531  INFO 30360 --- [- MavenDownload]
> .main.download.MavenDependencyDownloader : Added classpath:
> net.sf.saxon:Saxon-HE:12.5
> 2025-02-16 10:53:05.531  INFO 30360 --- [- MavenDownload]
> .main.download.MavenDependencyDownloader : Added classpath:
> org.xmlresolver:xmlresolver:5.2.2
> 2025-02-16 10:53:05.531  INFO 30360 --- [- MavenDownload]
> .main.download.MavenDependencyDownloader : Added classpath:
> org.apache.httpcomponents.client5:httpclient5:5.1.3
> 2025-02-16 10:53:05.531  INFO 30360 --- [- MavenDownload]
> .main.download.MavenDependencyDownloader : Added classpath:
> org.apache.httpcomponents.core5:httpcore5-h2:5.1.3
> 2025-02-16 10:53:05.531  INFO 30360 --- [- MavenDownload]
> .main.download.MavenDependencyDownloader : Added classpath:
> commons-codec:commons-codec:1.15
> 2025-02-16 10:53:05.531  INFO 30360 --- [- MavenDownload]
> .main.download.MavenDependencyDownloader : Added classpath:
> org.apache.httpcomponents.core5:httpcore5:5.1.3
> 2025-02-16 10:53:05.547  INFO 30360 --- [           main]
> .main.download.MavenDependencyDownloader : Resolved:
> org.apache.camel:camel-xslt-saxon:4.10.0 (took: 17s878ms)
> 2025-02-16 10:53:05.801  INFO 30360 --- [           main]
> he.camel.cli.connector.LocalCliConnector : Camel JBang CLI enabled
> 2025-02-16 10:53:06.317  INFO 30360 --- [           main]
> e.camel.impl.engine.AbstractCamelContext : Apache Camel 4.10.0 (one) is
> starting
> 2025-02-16 10:53:07.175  INFO 30360 --- [           main]
> e.camel.impl.engine.AbstractCamelContext : Routes startup (total:1)
> 2025-02-16 10:53:07.181  INFO 30360 --- [           main]
> e.camel.impl.engine.AbstractCamelContext :     Started route1
> (timer://yaml)
> 2025-02-16 10:53:07.181  INFO 30360 --- [           main]
> e.camel.impl.engine.AbstractCamelContext : Apache Camel 4.10.0 (one)
> started in 855ms (build:0ms init:0ms start:855ms boot:19s336ms)
> 2025-02-16 10:53:08.104  INFO 30360 --- [ - timer://yaml] one.yaml:9
>                         : Hello Camel from route1
>
> mvn version:
> C:\work\camel-demos\fileToPubSub>mvn -v
> Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
> Maven home: C:\Apps\apache-maven-3.9.9
> Java version: 21.0.4, vendor: Red Hat, Inc., runtime:
> C:\Apps\java-21-openjdk-21.0.4.0.7-1
> Default locale: en_US, platform encoding: UTF-8
> OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"
>
>
> basic route runs fast:
> C:\work\camel-demos\fileToPubSub>camel init two.yaml
>
> C:\work\camel-demos\fileToPubSub>camel run --verbose two.yaml
> 2025-02-16 10:56:05.179  INFO 38976 --- [           main]
> org.apache.camel.main.MainSupport        : Apache Camel (JBang) 4.10.0 is
> starting
> 2025-02-16 10:56:05.435  INFO 38976 --- [           main]
> org.apache.camel.main.MainSupport        : Using Java 21.0.4 with PID
> 38976. Started by user in C:\work\camel-demos\fileToPubSub
> 2025-02-16 10:56:05.596  INFO 38976 --- [           main]
> org.apache.camel.main.ProfileConfigurer  : The application is starting with
> profile: dev
> 2025-02-16 10:56:05.992  INFO 38976 --- [           main]
> he.camel.cli.connector.LocalCliConnector : Camel JBang CLI enabled
> 2025-02-16 10:56:06.086  INFO 38976 --- [           main]
> e.camel.impl.engine.AbstractCamelContext : Apache Camel 4.10.0 (two) is
> starting
> 2025-02-16 10:56:06.355  INFO 38976 --- [           main]
> e.camel.impl.engine.AbstractCamelContext : Routes startup (total:1)
> 2025-02-16 10:56:06.355  INFO 38976 --- [           main]
> e.camel.impl.engine.AbstractCamelContext :     Started route1
> (timer://yaml)
> 2025-02-16 10:56:06.355  INFO 38976 --- [           main]
> e.camel.impl.engine.AbstractCamelContext : Apache Camel 4.10.0 (two)
> started in 264ms (build:0ms init:0ms start:264ms boot:908ms)
> 2025-02-16 10:56:07.245  INFO 38976 --- [ - timer://yaml] two.yaml:9
>                         : Hello Camel from route1
> 2025-02-16 10:56:08.230  INFO 38976 --- [ - timer://yaml] two.yaml:9
>                         : Hello Camel from route1
> 2025-02-16 10:56:08.669  INFO 38976 --- [ngupInterceptor]
> e.camel.main.DefaultMainShutdownStrategy : JVM shutdown hook triggered by
> SIGTERM (PID 38976). Shutting down Apache Camel (JBang) 4.10.0
>
> issue seem to be only in communication with mvn.
>
> will try older version of camel-jbang as well as compiling a code directly
> using mvn to see if similar behavior occurs.
>
> ચિરાગ/चिराग/Chirag
> ------------------------------------------
> Sent from My Gmail Account
>
>
> On Sun, Feb 16, 2025 at 4:16 AM Claus Ibsen <claus.ib...@gmail.com> wrote:
>
> > 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
> >
>


-- 
Tadayoshi Sato

Reply via email to