What are these zombie ipykernel_launcher process in my machine, which are hogging to much memory:

This is output of htop command, but I ps for those processes,(to kill them) I do not see them as:
ps -ef|grep ipykernel
Not sure, how to get rid of these memory hogs!
The reason why you're seeing all these processes in
htopand not withpsis thathtopis showing threads (see https://serverfault.com/questions/24198/why-does-htop-show-lots-of-apache2-processes-by-ps-aux-doesnt). Type "-H" insidehtopto toggle showing threads.Automatically stop idle kernels
Concerning Jupyter notebook processes in general: kernels are small computational engines and consume a lot of resources (mainly memory) even when they're not active. This is why one should encourage users to stop running kernels when they're not in use. The problem is that even if one closes a tab or the whole browser, the kernel keeps running, so one forgets about the kernels!
Since it's unlikely that users will shutdown their kernels, consider stopping idle kernels by configuring the parameter
NotebookApp.shutdown_no_activity_timeoutIntin your Jupyter configuration filejupyter_notebook_config.py.See also these properties:
If that doesn't work, you may need to run a cron job to kill the ipykernel processes with
killafter a certain amount of elapsed time (see for instance https://unix.stackexchange.com/questions/531040/list-processes-that-have-been-running-more-than-2-hours).One-time solution
A quick solution to solve the problem is to restart the Jupyter notebook/Jupyter Hub. This will stop all kernels.