-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running a deamonized app #2
Comments
I have been running into similar issues. The issue for me at least appears to be using stackimpact with any app that has a signal handler(most daemon apps do). I am regularly catching SIGALRM, which is preventing block_reporter from operating correctly I think. I still get health stats, but the other features always report 0 for everything. As an example of the signal handler collisions, this snippet will show the cadence of stackimpact's signals as time.sleep will wake on signal.
|
@cedricleroy I've tried the daemon setup using the link and starting the agent in the @redNixon the agent takes over SIGALRM and SIGPROF and uses them all the time. What you can do for the moment is disable profilers, which conflict. Blocking call profiler uses SIGALRM, which can be disabled by passing Regarding the |
I use a daemon to run my app (something like that), and it seems it is not really working.
I first tried to initiate stackimpact at the top of my core module as shown in the examples, but could not run my app as a service anymore as stackimpact was not deamonized along other stuff (makes sense). I then tried to initiate stackimpact in run(), but I don't get any data. I think stackimpact is not really designed to work like that, I would be curious if there is a way to make it work.
Env is Python 3.5.2, stackimpact v1.0.1
Would be happy to provide more details if needed.
The text was updated successfully, but these errors were encountered: