Huge memory consumption under Python 3.6
See original GitHub issuePython 3.6.6
Django 1.11.2
Silk 3.0.1
We’ve been using silk for quite a while on Python 2.6, but recently when we upgraded to Python 3.6, we observed our mod_wsgi processes consuming huge amounts of memory and being killed. This happens in a loop: every 15 seconds or so, the memory usage will climb steadily, then the process is killed and restarted, repeating the loop.
After investigating all our dependencies one by one, we found it is silk that triggers this behaviour - if silk dependency is included we observe it, if excluded the behaviour goes away. We’ve observed this behaviour on both apache and nginx.
I appreciate this report is thin on diagnostic info. Any ideas on tests I could do to narrow down the issue?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Excessive peak memory consumption by the Python parser
msg260704 ‑ (view) Author: A. Skrobov (A. Skrobov) * Date: 2016‑02‑22 23:06
msg260840 ‑ (view) Author: A. Skrobov (A. Skrobov) * Date: 2016‑02‑25 06:08
msg260859...
Read more >How to Fix Memory Leaks in Python? - Section.io
The occurrence of a memory leak fills up the program's storage, thus reducing storage space. With a lack of space, the program may...
Read more >Python consumes a lot of memory or how to reduce the size of ...
A memory problem may arise when a large number of objects are active in RAM during the execution of a program, especially if...
Read more >Huge memory consumption with slurm + matplotlib
I created a python script that relies heavily on the matplotlib.pyplot.contour. I tested it on my computer and on a google cloud server, ......
Read more >How to Profile Python Memory Usage - Pluralsight
In Python, it's simple because the language handles memory management for you. However, this doesn't mean memory should be forgotten. Good ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Facing same issue with
python 3.6
,Django 2.2.8
anddjango-silk 3.0.4
.The previousdjango-silk
version was1.0.0
withDjango 1.11.23
and it was working fine.Issue resolved by running
python manage.py silk_clear_request_log
, @lesiki @Vitiell0