visualvm history graph

michael nesterenko picture michael nesterenko · Jan 28, 2012 · Viewed 8.5k times · Source

Is it possible in visual vm to set memory, process/gc activity etc. graphs to shift in time without lowering x scale? When application starts that graphs look nice, but after some time they toughly compressed along x axis and it becomes cumbersome to see what actually happens in application.

Answer

Tomas Hurka picture Tomas Hurka · Jan 29, 2012

You can do several things:

  1. Go to tools>options and change 'Monitored Host' and/or 'Monitored Data' to something smaller than default 60 minutes. 60 minutes mean that the graph will remember data for last 60 minutes.
  2. You can close other tabs ('Heap', 'Classes', 'Threads') to make a graph bigger.
  3. You can use Tracer Framework to display your data. Tracer framework allows you to zoom-in zoom-out collected data.

[NOTE: This answer was last updated in January 2016 to reflect changes in JVisualVM.]