neetinnagap
neetinnagap

Reputation: 106

Spring Boot Actuator metric heap.used increases with every consequent actuator /metrics api call

One strange thing I observed. heap.used increases with every consequent /metrics api call. I am the only client using this application. Not sure why it is occurring. Can someone please explain?

"heap.used": 62495

"heap.used": 62642

"heap.used": 62827

Upvotes: 0

Views: 226

Answers (1)

aglassman
aglassman

Reputation: 2653

All sorts of intermediate objects are used in order to create your http response. These objects get allocated on the heap. You should not be worried about this as garbage collection will clean them up.

Upvotes: 3

Related Questions