It mostly happens in the low ram system that they are going out of memory. This was the case with me today and on digging to it figured out the my systems swap area and cache was occupying the most memory.
Instead of making this just one time solution I figured out to get the little hacky long term solution until I upgrade my system.
The tool called System Load Indicator is very helpful for the testing of the command and its easily available on Ubuntu software center.
For allowing this command to run smoothly follow the steps as :
This will give you one time solution but for a constant solution we can make this command in cron list. So that it will run on desired time and make RAM clean.
We can add it to cron job as follows:
Enjoy learning and keep exploring :)
Instead of making this just one time solution I figured out to get the little hacky long term solution until I upgrade my system.
The tool called System Load Indicator is very helpful for the testing of the command and its easily available on Ubuntu software center.
For allowing this command to run smoothly follow the steps as :
- Open Terminal and be root with sudo su
- Type command sync; sudo echo 3 > /proc/sys/vm/drop_caches
This will give you one time solution but for a constant solution we can make this command in cron list. So that it will run on desired time and make RAM clean.
We can add it to cron job as follows:
- Open terminal as root user
- Type: crontab -e
- If asked to select editor select your favourite
- Copy and paste this command as: * * * * * sync; sudo echo 3 > /proc/sys/vm/drop_caches
- Save and exit
Enjoy learning and keep exploring :)