I noticed that when doing builds with Android Studio my system's memory usage increases until I restart Android Studio.
Each build increases a little bit more up to the 16GB of my system. At the end I need to restart AS.
I am running Android Studio 3.0.1 on Linux Mint 18.1., 16GB RAM. I noticed this with and without emulator