Skip to content

Memory constantly increasing #3403

@kyal2000

Description

@kyal2000

I'm compiling following simple example:

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("hello")
public class GreetingResource {

    @GET
    @Produces(MediaType.TEXT_PLAIN)
    public String hello() {
        return "Hello";
    }
}

And deploy the native image on my GCP Kubernetes Cluster.
The memory starts at ~5MB but over time it raises and never drop back down.

I get the same behavior using a Apache Camel Route which starts up every second and does nothing:

import org.apache.camel.builder.RouteBuilder;

public class Demo extends RouteBuilder {
  @Override
  public void configure() throws Exception {
      from("timer:camel-demo?period=1000")
        .setBody()
          .constant("");
  }
}

It looks like this:
RAM_usage

I'm compiling it with:

mvn clean package -DskipTests -Dquarkus.container-image.push=true -Pnative

It looks like there exists already a very similar issue: #2428

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions