What's gone wrong in my code?
Posted: Tue Nov 21, 2017 8:55 am
I have a multi-threaded application. It works fine for a month, and then stops responding to web requests. It is chewing 100% of a processor.
I need to know what it is doing when this happens. I know that madExcept can, when an exception occurs, dump the stack of all threads. How can I initiate this "manually" please?
I can probably work out a way to recognise the required situation, and other threads appear to be functioning, so I can tell one to do this from an external source. But I need to see "inside" to find out what is causing this, and where it is stuck. I hope you can help!
Probably worth saying that the ideal would be "non-destructive" but if it kills things, so be it. I have to restart the service anyway.
I need to know what it is doing when this happens. I know that madExcept can, when an exception occurs, dump the stack of all threads. How can I initiate this "manually" please?
I can probably work out a way to recognise the required situation, and other threads appear to be functioning, so I can tell one to do this from an external source. But I need to see "inside" to find out what is causing this, and where it is stuck. I hope you can help!
Probably worth saying that the ideal would be "non-destructive" but if it kills things, so be it. I have to restart the service anyway.