Skip to content

Delay loading previous nps captures for servers in Applications tree #485

@ronosaurus

Description

@ronosaurus

I have a bad habit of keeping many nps accessible within the Applications tree. I've noticed when I let nps files pile up over several weeks the available memory of VisualVM continues to decrease at launch because it seems to load each nps file at startup. This is what the memory graph looked like when I start with VisualVM with 50+ nps files spread across many servers in the Applications tree:

image

Clicking on the graph to trigger a GC doesn't free up memory. When I delete all the nps files from the tree there is more memory available:

image

It would be nice if there were an option to opt-out of loading previous nps files until they were actually needed. I'm ok with losing the friendly name "[snapshot] Feb 28, 2023 11:10:00 AM" and only have a file create time if it means I'll have gigabytes more memory to do captures. Can the "[snapshot] ..." stuff be extracted from the file then close the file so it doesn't consume any memory?

Assuming there's an opt-in feature to delay loading previous nps files, perhaps there could be a right click menu item to parse/load all snapshots at this level of the tree:

image

My distribution of nps files is typically two dozen remote servers in the Applications tree each with 15-35 nps files. I typically only work with one or two servers at a time on a given day. I keep the files in the tree because I may go weeks between re-visiting the server and being able to see what happened in the past is helpful.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions