Who’s Running that on my System: Case of the stolen CPU

Last week, I found myself needing to find what application a query was originating from. My typical method for doing this is searching through source code before I eventually get angry that I can’t find the query originating from an ORM and start drafting an email decreeing that all applications get distinct logins to the database that I’ll never send because who is going to listen anyway.

I had an idea for how I can track a query all the way back to the process that accessed it and I even scripted it.

[Read More]