visualvm icon indicating copy to clipboard operation
visualvm copied to clipboard

Multiselect "Select Threads" list

Open cogman opened this issue 7 years ago • 2 comments

First, love the "merge threads" feature when sampling, extremely useful. However, one little niggle with it is when you have lots of threads from a long sampling time or whatever, it makes it really hard to merge across them (could be hundreds). You end up doing a lot of "hit up, hit space, hit up, hit space" to get everything.

It would be really nice if I could multiselect a group of threads and check all selected for merging. selectthreads

cogman avatar Apr 12 '18 21:04 cogman

Clicking the 'Show all threads' checkbox checks/unchecks all threads. Typing a filter limits the displayed threads to be checked/unchecked. Does this help?

I'm not sure about the multiselection - you'll eventually end up clicking individual threads to select them, which is IMO the same as clicking the checkboxes - with one disadvantage, the multiselection can easily be lost by a wrong click.

jisedlac avatar Apr 16 '18 08:04 jisedlac

It really doesn't help when you are dealing with 100s of threads named different things and you want to just deal with one subset. (in this case, tomcat threads which spawn and die frequently, but you could also imagine things like thread pool threads).

It may work if you could both filter and select only the filtered values, but as it stands, you have to individually select / deselect each thread and that is what is annoying. What I really want is mass selection.

Where I was going with multiselect, If I could highlight the 1000 threads and hit space, I would expect every highlighted thread to toggle. That would save me a bunch of time. I could then filter, ctrl+A, space, hit merge selected and be done.

Just being able to filter isn't enough because I might have 1000 threads in the sampling with 500 I want to look at and 500 I don't want to look at. No matter how you slice the filtering it is still hundreds of selections I need to do which can take quite a bit of time.

cogman avatar Apr 16 '18 15:04 cogman