I have deployed a very simple spring boot application locally. It has only one class - controller. That\'s pretty much it. What I\'ve noticed is that heap allocation is not stab
Even tho no requests are being made the server application still does some kind of background stuff - then Garbage Collection happens. Here's a great article that explains it in-depth.
https://spring.io/blog/2015/12/10/spring-boot-memory-performance
The fact that you are monitoring the application with VisualVM already leads to allocations in Java Heap.
VisualVM talks to JVM through JMX; you are basically observing the effect of this communication.