2019-03-27 00:04:10.033-0600 [-] main_thread(29621)log (async_worker_process.py:304): INFO_FLUSH: RSS: 144244736...2019-03-27 01:01:46.841-0600 [-] main_thread(29621)log (async_worker_process.py:304): INFO_FLUSH: RSS: 1444208642019-03-27 01:02:36.943-0600 [-] main_thread(29621)log (async_worker_process.py:304): INFO_FLUSH: RSS: 144269312
2019-03-27 01:04:17.184-0600 [-] main_thread(29621)log (async_worker_process.py:304): INFO_FLUSH: RSS: 1454694402019-03-27 01:05:07.305-0600 [-] main_thread(29621)log (async_worker_process.py:304): INFO_FLUSH: RSS: 1581752322019-03-27 01:05:57.401-0600 [-] main_thread(29621)log (async_worker_process.py:304): INFO_FLUSH: RSS: 1731911682019-03-27 01:06:47.490-0600 [-] main_thread(29621)log (async_worker_process.py:304): INFO_FLUSH: RSS: 1969438722019-03-27 01:07:37.575-0600 [-] main_thread(29621)log (async_worker_process.py:304): INFO_FLUSH: RSS: 2054062082019-03-27 01:08:27.659-0600 [-] main_thread(29621)log (async_worker_process.py:304): INFO_FLUSH: RSS: 2545623042019-03-27 01:09:17.770-0600 [-] main_thread(29621)log (async_worker_process.py:304): INFO_FLUSH: RSS: 2560204802019-03-27 01:10:07.866-0600 [-] main_thread(29621)log (async_worker_process.py:304): INFO_FLUSH: RSS: 289779712
2019-03-26 23:55:49.127-0600 [-] main_thread(29621)log (async_worker_process.py:304): INFO_FLUSH: RSS: 1406320642019-03-26 23:55:49.133-0600 [-] main_thread(29621)log (async_worker_process.py:308): DBG0: Total memory consumed:GC used: 56.8MB (peak: 69.6MB)in arenas: 39.3MBrawmalloced: 14.5MBnursery: 3.0MBraw assembler used: 521.6kB-----------------------------Total: 57.4MBTotal memory allocated:GC allocated: 63.0MB (peak: 71.2MB)in arenas: 43.9MBrawmalloced: 22.7MBnursery: 3.0MBraw assembler allocated: 1.0MB-----------------------------Total: 64.0MB
2019-03-27 01:42:41.751-0600 [-] main_thread(29621)log (async_worker_process.py:304): INFO_FLUSH: RSS: 2851471362019-03-27 01:42:41.751-0600 [-] main_thread(29621)log (async_worker_process.py:308): DBG0: Total memory consumed:GC used: 57.5MB (peak: 69.6MB)in arenas: 39.9MBrawmalloced: 14.6MBnursery: 3.0MBraw assembler used: 1.5MB-----------------------------Total: 58.9MBTotal memory allocated:GC allocated: 63.1MB (peak: 71.2MB)in arenas: 43.9MBrawmalloced: 22.7MBnursery: 3.0MBraw assembler allocated: 2.0MB-----------------------------Total: 65.1MB
def get_rss_mem_usage():'''Get the RSS memory usage in bytes@return: memory size in bytes; -1 if error occurs'''try:process = psutil.Process(os.getpid())return process.get_memory_info().rssexcept:return -1
Python 2.7.13 (ab0b9caf307db6592905a80b8faffd69b39005b8, Apr 30 2018, 08:21:35)[PyPy 6.0.0 with GCC 7.2.0]