Htop - show single instance of running processes

When using htop, is there a way to have it show just one instance of each process going?

For instance, it shows multiple “forks” of Seamonkey.

That makes it hard to know how much memory and cpu it is using.

what you are seeing is multiple threads.

a complex program splits up its processing into mutliple processes known as threads, which all run ‘at the same time’.

seamonkey, like firefox is multi-threaded, and each add-on runs as its own process or thread, ‘owned’ by seamonkey. unfortunately while htop shows each thread, it shows each as using the same memory, it does show individual cpu though.

you can press F2 in htop to enter ‘setup’ and use the arrow keys to navigate and space bar to select. In ‘Display Options’ you can choose ‘show custom thread names’, so each thread gets its own label, which may or may not help!

1 Like

Multiple threads per process can be hidden via F2 => Display Options => Hide userland process threads.
This will no longer show individual threads, but especially webbrowsers spawn multiple processes as well, and those will still be listed separately.

1 Like

Thanks to you both.

Is there a way to copy a command in the window?