I have 4GB RAM. When I open Firefox, IntelliJ IDEA or VS Code and some other application my memory is about used up thus my machine hangs and I can't do anything. I can't even close any applications.
Date and time are shown in the top bar so that I can view it any time without any thing typing.
If I would view memory status in this way without typing anything then I can make a decision whether to open an application or whether this application may put my machine in hanging state or not.
Is it possible in Ubuntu 18.04 LTS?
You may try a GNOME shell extension called "system-monitor". It does
"system-monitor" depends on a few packages. To install them, run
Then log out and log in again.
As pointed out in the other post you want to install the Gnome Shell Extension
system-monitor
There's a browser plugin and integrations that can allow you to install it from the browser or from the software center as mentioned by @pomsky.However I've found that the easiest way to install it is to just install it from apt using the debian package
This will also pull in all the required dependencies, and after a reboot or log out the system monitor was in the top task bar.
(Note that I think I enabled the swap manually before taking the screenshot.)
Based on my experience, there are 2 packages required:
gnome-shell-extension-system-monitor
gnome-tweaks
Luckily, these 2 can be installed easily with the following command:
Open Tweaks, navigate to the Extensions tab, ensure that extensions in general are enabled, and then find "System-monitor" in the list on the same tab, and enable it.
That's it, problem solved. No reboot required in my case. This is also tested on Ubuntu 20.04
However, if the
system-monitor
does not appear inTweaks > Extensions
, reboot the laptop and it should be there after that.In Ubuntu 18.04 (assuming you're using the default gnome desktop at least) run the gnome Tweaks app. Everything you need to manage for that is there, including what exactly you'd like to see from gnome system-monitor on the dock bar, which you can configure through the settings icon near the on/off switch for system-monitor seen below.
Unfortunately the extension doesn't really fit the dock's default color so it might be a little ugly when you configure to see graphs and not digit values there. So I ended up configuring to show the digit value only for now.
TLDR
I've just refined this on my third Ubuntu 20.04, and did it on 18.04 way back in 2018/2019.
I tried logging out and in and even rebooted all to no effect.
What worked was (instead of
gnome-tweaks
, which sounds Kev-ish):I discovered this from the author's README (where they are calling the tool an "applet"):
and playing with that command (because writing someone else's email sounds like an exfiltration risk).
On previous attempts I had already restarted and could just issue some CLI voodoo (actually the
enable
step from the TLDR, though substitutinginfo
indicatedenable
would be needed) to have the graphs magically appear:You won't see this yet if you don't sort of restart. What I did was open a text only terminal with Ctrl-Alt-F3 and requested it to restart
display-manager
. After some glitches where my password entries looped back to me via a black screen a couple of times I was in.Was all my stuff still running? Probably not! But I had saved or shut it down.
In Ubuntu 21.04 you have to install Google Chrome and the chrome extension for Gnome Shell extensions to install the system monitor extension.
You can go to https://extensions.gnome.org/ and then install the chrome plugin and then view any of the gnome extensions in chrome and then enable or disable the extension from the browser itself.