Can you comment on how compatible this is with asyncio-based applications? Looks like an interesting product and I'm going to try it out regardless, but it would be cool to get some clarity since I couldn't find anything in the docs besides this: > Time (blocking call) profiler supports threads and gevent. (from https://stackimpact.com/docs/#getting-started-with-python-pr... )
Show HN: StackImpact – Python Production Profiler: CPU, Memory, Exceptions
51–60 of 72 posts
Re: Show HN: StackImpact – Python Production Profiler: CPU, Memory, Exceptions
#52How would I configure StackImpact to run on my celery workers?
Re: Show HN: StackImpact – Python Production Profiler: CPU, Memory, Exceptions
#53I've been trying ways to profile my django code on my dev server. Its using runserver and postgres on virtualbox (ubuntu in ubuntu) and takes 20s to display a page. This is not due to slow db queries, those are quick. strace says its making a huge number of calls to: futex(0xe9d550, FUTEX_WAIT_PRIVATE, 0, NULL) = 0 I tried debug_toolbar, Silk, yet-another-django-profiler, these dont give me insight into where all tha…
Re: Show HN: StackImpact – Python Production Profiler: CPU, Memory, Exceptions
#54...
Re: Show HN: StackImpact – Python Production Profiler: CPU, Memory, Exceptions
#55This is an interesting project. It appears to me, based on the README and the name, that it was primarily intended to profile backend services in a web app. I have a question for hacker news. Does Python still have a lot of momentum in this area? I love Python and use it whenever I can, but I find these days that most web frameworks assume right off the bat that you are using Node. The frontend landscape is so heavil…
I am personally skeptical of these trends, but my skepticism doesn't change the shift of the industry. My advice would be to get some Node and React experience under your belt so that you can at least discuss it intelligently, and it shouldn't be too much of an impediment moving forward.
Python is in a tough spot for growth, IMO. The new generation of languages have internalized much of what made Python great, while leaving behind a lot of the inadequacies and cruft attached to CPython.
Like you, I will always have a soft spot for Python, but it's getting increasingly difficult to continue to see it as the default choice for new projects (outside of a few specific niches).
Re: Show HN: StackImpact – Python Production Profiler: CPU, Memory, Exceptions
#56Seems really interesting but a lot of companies are not willing or not able to send this to an unknown un trusted party. Would it be possible to host this on premise? Sentry seems to do quite well with a business model where customers are free to host it on premise. That might be worth a consideration. I for one am interested but for me to become a customer I would first need to be able to trail it on my staging envi…
There is no on-prem offering yet, since there was actually no demand/requests. At least with the Golang agent, which was introduced first. With Python agent we will reprioritise it. Thank you for the feedback! (Disclaimer: I work at StackImpact)
Re: Show HN: StackImpact – Python Production Profiler: CPU, Memory, Exceptions
#57Seems really interesting but a lot of companies are not willing or not able to send this to an unknown un trusted party. Would it be possible to host this on premise? Sentry seems to do quite well with a business model where customers are free to host it on premise. That might be worth a consideration. I for one am interested but for me to become a customer I would first need to be able to trail it on my staging envi…
There is no on-prem offering yet, since there was actually no demand/requests. At least with the Golang agent, which was introduced first. With Python agent we will reprioritise it. Thank you for the feedback! (Disclaimer: I work at StackImpact)
Re: Show HN: StackImpact – Python Production Profiler: CPU, Memory, Exceptions
#58I got excited but then read that it's some kind of cloud-based web application thing. Is there something like this (show memory use and call times for a Python process) that just runs on my computer to help me profile a long-running Python process?
Yes! It's called profiling and there are many ways to do that. Python has built-in profiling tools (profile, cProfile), there are also whole-system profiling solutions like DTrace (sadly, that is not available on Linux). No fancy GUIs AFAIK, you'd have to RTFM a bit.
Sysdig is available though. It even got userspace tracers recently (including Python). Alternatively there's "perf" if you want just the kernel side.
Re: Show HN: StackImpact – Python Production Profiler: CPU, Memory, Exceptions
#59I've been trying ways to profile my django code on my dev server. Its using runserver and postgres on virtualbox (ubuntu in ubuntu) and takes 20s to display a page. This is not due to slow db queries, those are quick. strace says its making a huge number of calls to: futex(0xe9d550, FUTEX_WAIT_PRIVATE, 0, NULL) = 0 I tried debug_toolbar, Silk, yet-another-django-profiler, these dont give me insight into where all tha…
runserver as in "manage.py runserver"? An issue I have hit a few times is when the app is making a request to itself, but runserver cannot serve requests concurrently. Say, browser loads request A and waits for response. While processing request A, the python code makes an internal request B and waits for response. This deadlocks because runserver will not start processing B before A has finished. Eventually request…
Re: Show HN: StackImpact – Python Production Profiler: CPU, Memory, Exceptions
#60I've been trying ways to profile my django code on my dev server. Its using runserver and postgres on virtualbox (ubuntu in ubuntu) and takes 20s to display a page. This is not due to slow db queries, those are quick. strace says its making a huge number of calls to: futex(0xe9d550, FUTEX_WAIT_PRIVATE, 0, NULL) = 0 I tried debug_toolbar, Silk, yet-another-django-profiler, these dont give me insight into where all tha…
Have you tried the low tech way of adding debug log statements that print how long a function takes to run? Once you know what is slow it should be easier to troubleshoot. Also I would check to see if you have any DNS issues in your virtual environment.
I did solve this by removing django debug toolbar though trial and error (and still not sure why it was doing that), but I never found a tool which would discover that problem.