Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

monitor Java process memory in realtime

I have a java application that its memory starting to jump and fall after few days.
Is there a tool that can show me the variables/members sizes during run/debug in real time?

Debugging it with eclipce is impossible.

like image 926
fatnjazzy Avatar asked Apr 09 '26 00:04

fatnjazzy


1 Answers

Check out jhat and jmap.

In the longer run, consider adding a monitor to your app (with JMX, or write your own). It may help you in many situations in future.

like image 135
Konrad Garus Avatar answered Apr 10 '26 14:04

Konrad Garus