'Micronaut application memory issue with httpcall

There was already an issue https://github.com/micronaut-projects/micronaut-core/issues/6623 related to the HTTP call for Micronaut application, which was closed and the suggested solution was to include

netty:
  default:
    allocator:
      max-order: 1

I am using the latest Micornuat version 3.4.3, and the feature that are included in the project are

  1. MongoDB
  2. Swagger
  3. Open API
  4. JWT security
  5. Consul
  6. Zipkin
  7. Project-reactor
  8. JUnit-5

Running the application in native mode, the initial memory is 43.6 MB

enter image description here

Leaving the application Idea for some time and CURL the first HTTP call, the memory increase significantly

enter image description here

Second Http call

enter image description here

Again leaving the application idea for another 3 or 4 minutes and the third HTTP call

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source