question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Huge memory consumption under Python 3.6

See original GitHub issue
Python 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:open
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sazib47commented, Dec 11, 2019

Facing same issue with python 3.6, Django 2.2.8 and django-silk 3.0.4.The previous django-silk version was 1.0.0 with Django 1.11.23 and it was working fine.

0reactions
sazib47commented, Dec 11, 2019

Issue resolved by running python manage.py silk_clear_request_log, @lesiki @Vitiell0

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found