-
Hi, I am using Memray to attempt to profile a web application running on Tornado framework. Is there any reason this memory allocation might not be visible? Thank you for making such a great tool - it has been useful in troubleshooting a few web application issues so far! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The only reason I can think of for this, short of a bug in Memray itself, is that the memory might be allocated by an extension module from a native thread with no Python stack. If there's no Python stack then there's no Python location to show you, and we're stuck with just a |
Beta Was this translation helpful? Give feedback.
-
Appreciate the feedback - this was a mistake on my side. |
Beta Was this translation helpful? Give feedback.
Appreciate the feedback - this was a mistake on my side.
I realized that the code was still instrumented with cProfile using the
runCtx
feature --- essentially a large anonymous function.I will try that native function if this happens again.
Removing cProfiler and running the live view again resolved it and I was able to trace the large allocations.
There was an inefficient eager load in SQL Alchemy that was pulling back GB worth of data.