Upgrading from Ubuntu 16.04 to 14.04 takes up more ram with python than before.

May 18, 2018 1.1k views
Python Frameworks Ubuntu 16.04 Python

I recently transferred my projects from one droplet to another (Didn’t upgrade, transferred). I did it for personal reasons but it happened. I have 2 processes mainly running. One a discord bot in 7k servers (7 shards) and a flask server w/ Nginx. I originally had upstart setup to auto restart bot but now I am service’s in 16.04.

What I am asking is how could the percents based on Digital Ocean data via Dashboard has come up due to the transfer? What are some unneeded things I could do to remove all this memory usage (which is mainly coming from the 2 python projects). Both process are talking up half the memory (used to be just 30%) so y'all got any tips?

I’m using python3.x

1 Answer

Memory is a cache, which means it is fine to have it use a lot of memory as long as new processes have room to use it as well. So if you are at 50% that’s not an issue. You may want to see if there is anything that needs to be restarted to free memory up, but again because it’s basically a cache unless you are at 100% there is no system performance degradation so you aren’t losing any performance.

Have another answer? Share your knowledge.