After testing, the occupied memory is not released by using tcmalloc
Install tcmalloc:
following the construction on : https://centos.pkgs.org/6/atomic-x86_64/gperftools-libs-2.0-11.el6.1.art.x86_64.rpm.html
Use construction:
https://blog.csdn.net/u011217649/article/details/77683126
Use the tcmalloc allocator
http://www.riptutorial.com/tensorflow/example/13427/use-the-tcmalloc-allocator
Useful notes:
Python 进程内存增长解决方案
https://blog.csdn.net/BaishanCloud/article/details/76422782
https://blog.csdn.net/xiejueheng/article/details/45798381