Re: [I] memory increase in camel quarkus [camel-quarkus]
brianmolinaspring commented on issue #5743: URL: https://github.com/apache/camel-quarkus/issues/5743#issuecomment-1944178315 hi @aldettinger thanks for your ![1](https://github.com/apache/camel-quarkus/assets/100229126/a0b40c29-bfbe-4ff3-8ad7-30512d1c441e) ![2](https://github.com/apache/camel-quarkus/assets/100229126/168e03fb-a87c-4936-b8d2-0e2e9f00be4e) response, I am currently testing the camel quarkus class that is in the documentation in java -jar mode, it has already been going on for 5 minutes and it does not present the increase in memory. I will leave the print screen attached. then I would understand that this mvn quarkus:dev mode must activate some components that cause the memory to increase, now I am going to try now with my application in this java -jar mode and I see the behavior in my development environment, I am telling you about this through -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] memory increase in camel quarkus [camel-quarkus]
aldettinger commented on issue #5743: URL: https://github.com/apache/camel-quarkus/issues/5743#issuecomment-1943792111 Hi @brianmolinaspring, Many thanks for contributing to Camel Quarkus :+1: Trying to summarize there is a microservice implemented with camel-quarkus 3.7.1 that is consuming/releasing memory. The microservice is assumed to be inactive / doing nothing. A peak of 250 MiB of memory is reached every 40 minutes when the garbage collector probably reclaims the memory. So far, this behavior is reproduced: + in native mode with a microservice deployed on kubernetes + in dev mode with the rest-json camel-quarkus example Please amend if above summary is not correct. The main hytothesis would be that there is actually a bit of activity occurring under the hood. A way to validate this hypothesis would be to collect some information before the memory is reclaimed. Especially collecting a dump of the java class histogram showing the most used classes would be helpful. Note that investigating in dev mode could be misleading and is not recommended. Investigating in jvm or native mode should help. And most of the time investigating in jvm mode is sufficient to understand what's happening. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] memory increase in camel quarkus [camel-quarkus]
jamesnetherton commented on issue #5743: URL: https://github.com/apache/camel-quarkus/issues/5743#issuecomment-1942347878 > @jamesnetherton how are you ? have you done any tests I'm good thanks. Sorry, I've had no time to do any real analysis. Maybe @aldettinger has some insight here as he's investigated performance related issues before. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] memory increase in camel quarkus [camel-quarkus]
brianmolinaspring commented on issue #5743: URL: https://github.com/apache/camel-quarkus/issues/5743#issuecomment-1942241486 @jamesnetherton how are you ? have you done any tests -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] memory increase in camel quarkus [camel-quarkus]
jamesnetherton commented on issue #5743: URL: https://github.com/apache/camel-quarkus/issues/5743#issuecomment-1939154504 We can investigate. But I'm not sure if profiling in dev mode is particularly meaningful: https://quarkus.io/guides/dev-mode-differences If you want to do profiling, it's better to do so when the application is run via the runnable JAR. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] memory increase in camel quarkus [camel-quarkus]
brianmolinaspring commented on issue #5743: URL: https://github.com/apache/camel-quarkus/issues/5743#issuecomment-1939080994 @jamesnetherton yes in dev Mode using mvn quarkus:dev . I made a comparison with an ms in pure Quarkus and this does not present that memory increase problem, it is maintained. I understand we are talking about camel with quarkus that's why my concern -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] memory increase in camel quarkus [camel-quarkus]
jamesnetherton commented on issue #5743: URL: https://github.com/apache/camel-quarkus/issues/5743#issuecomment-1938192786 Are you profiling the application in dev mode (E.g `mvn quarkus:dev`)? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] memory increase in camel quarkus [camel-quarkus]
brianmolinaspring commented on issue #5743: URL: https://github.com/apache/camel-quarkus/issues/5743#issuecomment-1937840126 hi @jamesnetherton add the details 3.7.1 ${quarkus.platform.version} io.quarkus.platform quarkus-bom ${quarkus.platform.group-id} quarkus-camel-bom UTF-8 UTF-8 17 17 ${maven.compiler.target} ${maven.compiler.source} 2.23.0 1.9.0 4.2 3.11.0 3.3.0 3.3.1 3.1.2 class route /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.acme.rest.json; import java.util.Collections; import java.util.LinkedHashSet; import java.util.Set; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.model.rest.RestBindingMode; /** * Camel route definitions. */ public class Routes extends RouteBuilder { private final Set fruits = Collections.synchronizedSet(new LinkedHashSet<>()); private final Set legumes = Collections.synchronizedSet(new LinkedHashSet<>()); public Routes() { /* Let's add some initial fruits */ this.fruits.add(new Fruit("Apple", "Winter fruit")); this.fruits.add(new Fruit("Pineapple", "Tropical fruit")); /* Let's add some initial legumes */ this.legumes.add(new Legume("Carrot", "Root vegetable, usually orange")); this.legumes.add(new Legume("Zucchini", "Summer squash")); } @Override public void configure() throws Exception { restConfiguration().bindingMode(RestBindingMode.json); rest("/fruits") .get() .to("direct:getFruits") .post() .type(Fruit.class) .to("direct:addFruit"); rest("/legumes") .get() .to("direct:getLegumes"); from("direct:getFruits") .setBody().constant(fruits); from("direct:addFruit") .process().body(Fruit.class, fruits::add) .setBody().constant(fruits); from("direct:getLegumes") .setBody().constant(legumes); } } this ms is git hub test , can donwload here : git clone https://github.com/apache/camel-quarkus-examples.git the test in this applicaction : ![imagen](https://github.com/apache/camel-quarkus/assets/100229126/5008cb7e-b897-40c5-89f8-308824cb09f2) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] memory increase in camel quarkus [camel-quarkus]
jamesnetherton commented on issue #5743: URL: https://github.com/apache/camel-quarkus/issues/5743#issuecomment-1936922982 > a microservice made in Quarkus Camel Please can you provide some more details? - Which version of Quarkus is used? - Which extensions do you use? - What does the Camel route configuration look like? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org