February 11, 2013 at 4:29 am
hi all,
Do any one have any script by which i can get a automatic email notification when a HIGH CPU usage n >80 % occurs on the Sql server 2005 instance with the query which is causing the high CPU usage.
thanks
February 11, 2013 at 7:23 am
I am not sure how you could alert based on one specific query causing 80% CPU use because SQL Server abstracts a lot of that but you could get a list of all the queries and their CPU use for analysis when the server goes above 80% CPU use. You could do this by setting up a WMI Alert in SQL Agent that would run a job when CPU reached 80% on the server. The job could capture all running queries. Be careful with this kind of approach though, it can make bad times worse depending on how aggressive your job is at pulling information from the server.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
February 11, 2013 at 11:26 am
Try third party tools........like sentry or nagios alerts.
February 12, 2013 at 1:06 am
hi,
well as for now no 3rd party tool & WMI Alert can you pass me the script or any link through which i can get some idea........
February 12, 2013 at 7:54 am
Bing "wmi alert" to read about them for SQL Server Agent. Also lookup "ssis wmi event watcher" not because you need to use the object in ssis but because the msdn article has a sample WMI event query that will fire when CPU use goes above 80%.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
February 13, 2013 at 12:22 am
thanks look like i get what i was looking for........ will post the entire process step by step so that other can get the details and use it in there work.....
December 19, 2017 at 4:44 pm
Ivan Mohapatra - Wednesday, February 13, 2013 12:22 AMthanks look like i get what i was looking for........ will post the entire process step by step so that other can get the details and use it in there work.....
We're just 3 months away from this comment being 5 years old... did you ever document this?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply