This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients Recursing, asvetlov, christian.heimes, yselivanov
Date 2020-05-22.10:09:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590142187.66.0.445544111872.issue40727@roundup.psfhosted.org>
In-reply-to
Content
Without asyncio memory consumption stays low and stable for me:

$ ./python -m venv venv
$ ./venv/bin/pip install psutil
$ ./venv/bin/python
>>> ssl.OPENSSL_VERSION
'OpenSSL 1.1.1g FIPS  21 Apr 2020'
>>> import psutil, ssl, os
>>> p = psutil.Process(os.getpid())
>>> cafile = ssl.get_default_verify_paths().cafile
>>> p.memory_info()
pmem(rss=14811136, vms=237223936, shared=8138752, text=2125824, lib=0, data=6701056, dirty=0)
>>> for i in range(1000):
...     ssl.SSLContext(ssl.PROTOCOL_TLS).load_verify_locations(cafile)
... 
>>> p.memory_info()
pmem(rss=17489920, vms=238170112, shared=9863168, text=2125824, lib=0, data=7647232, dirty=0)
>>> for i in range(1000):
...     ssl.SSLContext(ssl.PROTOCOL_TLS).load_verify_locations(cafile)
... 
>>> p.memory_info()
pmem(rss=17489920, vms=238170112, shared=9863168, text=2125824, lib=0, data=7647232, dirty=0)
History
Date User Action Args
2020-05-22 10:09:47christian.heimessetrecipients: + christian.heimes, asvetlov, yselivanov, Recursing
2020-05-22 10:09:47christian.heimessetmessageid: <1590142187.66.0.445544111872.issue40727@roundup.psfhosted.org>
2020-05-22 10:09:47christian.heimeslinkissue40727 messages
2020-05-22 10:09:47christian.heimescreate