|
sql
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
High CPU Use
Task manager shows two sqlserver.exe running each at 25% cpu and 5 gig memory. This is at 6 am with NOTHING going on. If I run --ActiveSessions.sql SELECT s.session_id , c.connect_time , s.login_time , s.login_name , c.protocol_type , c.auth_scheme , s.HOST_NAME , s.program_name FROM sys.dm_exec_sessions s JOIN sys.dm_exec_connections c ON s.session_id = c.session_id I don't get much action. If I look at activity monitor I get 10 sleeping awaiting command and a few from me. The highest cpu is 4000 from my login. Visual Studio Team System is on a separate server Team Foundation Server database is installed on this server. SqlServerProfiler is showing about every second Report Server is running this: "exec GetDBVersion @DBVersion=@p1 output" Any ideas on why 2 sqlserver.exe processes are running at 25%? are you patched up to SP2+some CU or another? I had a client where a server
would exhibit the exact same issue but this went away with a patch. Not sure which one it was that did the trick though. Sorry! -- Show quoteHide quoteKevin G. Boles Indicium Resources, Inc. SQL Server MVP kgboles a earthlink dt net "Chuck P" <Chuck@newsgroup.nospam> wrote in message news:4099C7AE-C22A-4884-ADDC-0E623E1CEE7F@microsoft.com... >I have a 4 cpu box with sql05 on it. > Task manager shows two sqlserver.exe running each at 25% cpu and 5 gig > memory. This is at 6 am with NOTHING going on. > > > If I run > --ActiveSessions.sql > > SELECT > s.session_id > , c.connect_time > , s.login_time > , s.login_name > , c.protocol_type > , c.auth_scheme > , s.HOST_NAME > , s.program_name > FROM sys.dm_exec_sessions s > JOIN sys.dm_exec_connections c > ON s.session_id = c.session_id > I don't get much action. > > > If I look at activity monitor I get 10 sleeping awaiting command and a > few > from me. The highest cpu is 4000 from my login. > > > Visual Studio Team System is on a separate server > Team Foundation Server database is installed on this server. > SqlServerProfiler is showing about every second Report Server is > running this: "exec GetDBVersion @DBVersion=@p1 output" > > Any ideas on why 2 sqlserver.exe processes are running at 25%? > We're patched.
Messing around changed the processor affinity to 3 for 1 sql instance and 1 for another. This dropped the cpu usage on the later box to a few percent. Show quoteHide quote "TheSQLGuru" wrote: > are you patched up to SP2+some CU or another? I had a client where a server > would exhibit the exact same issue but this went away with a patch. Not > sure which one it was that did the trick though. Sorry! > > -- > Kevin G. Boles > Indicium Resources, Inc. > SQL Server MVP > kgboles a earthlink dt net > > > "Chuck P" <Chuck@newsgroup.nospam> wrote in message > news:4099C7AE-C22A-4884-ADDC-0E623E1CEE7F@microsoft.com... > >I have a 4 cpu box with sql05 on it. > > Task manager shows two sqlserver.exe running each at 25% cpu and 5 gig > > memory. This is at 6 am with NOTHING going on. > > > > > > If I run > > --ActiveSessions.sql > > > > SELECT > > s.session_id > > , c.connect_time > > , s.login_time > > , s.login_name > > , c.protocol_type > > , c.auth_scheme > > , s.HOST_NAME > > , s.program_name > > FROM sys.dm_exec_sessions s > > JOIN sys.dm_exec_connections c > > ON s.session_id = c.session_id > > I don't get much action. > > > > > > If I look at activity monitor I get 10 sleeping awaiting command and a > > few > > from me. The highest cpu is 4000 from my login. > > > > > > Visual Studio Team System is on a separate server > > Team Foundation Server database is installed on this server. > > SqlServerProfiler is showing about every second Report Server is > > running this: "exec GetDBVersion @DBVersion=@p1 output" > > > > Any ideas on why 2 sqlserver.exe processes are running at 25%? > > > > > Messing with proc affinities is pretty significant stuff. I suggest reading
up on that if you plan on leaving it that way. -- Show quoteHide quoteKevin G. Boles Indicium Resources, Inc. SQL Server MVP kgboles a earthlink dt net "Chuck P" <Chuck@newsgroup.nospam> wrote in message news:C24D5AD7-57E1-4261-A99A-A4E6F559B84B@microsoft.com... > We're patched. > Messing around changed the processor affinity to 3 for 1 sql instance and > 1 > for another. This dropped the cpu usage on the later box to a few > percent. > > > > "TheSQLGuru" wrote: > >> are you patched up to SP2+some CU or another? I had a client where a >> server >> would exhibit the exact same issue but this went away with a patch. Not >> sure which one it was that did the trick though. Sorry! >> >> -- >> Kevin G. Boles >> Indicium Resources, Inc. >> SQL Server MVP >> kgboles a earthlink dt net >> >> >> "Chuck P" <Chuck@newsgroup.nospam> wrote in message >> news:4099C7AE-C22A-4884-ADDC-0E623E1CEE7F@microsoft.com... >> >I have a 4 cpu box with sql05 on it. >> > Task manager shows two sqlserver.exe running each at 25% cpu and 5 gig >> > memory. This is at 6 am with NOTHING going on. >> > >> > >> > If I run >> > --ActiveSessions.sql >> > >> > SELECT >> > s.session_id >> > , c.connect_time >> > , s.login_time >> > , s.login_name >> > , c.protocol_type >> > , c.auth_scheme >> > , s.HOST_NAME >> > , s.program_name >> > FROM sys.dm_exec_sessions s >> > JOIN sys.dm_exec_connections c >> > ON s.session_id = c.session_id >> > I don't get much action. >> > >> > >> > If I look at activity monitor I get 10 sleeping awaiting command and a >> > few >> > from me. The highest cpu is 4000 from my login. >> > >> > >> > Visual Studio Team System is on a separate server >> > Team Foundation Server database is installed on this server. >> > SqlServerProfiler is showing about every second Report Server is >> > running this: "exec GetDBVersion @DBVersion=@p1 output" >> > >> > Any ideas on why 2 sqlserver.exe processes are running at 25%? >> > >> >> >> Seems to be working. This is on a 64 bit box and my experience with MS and
64 bit is not that great (mostly MS drivers (e.g. oracle) and incompatibility with other MS products like TFS). I did read up on affinities after googling on "high cpu sql server" and saw related issues. That's why we tried it. I expect the problem has to do with running two instances on a 64 bit box and SQL not properly allocating resources from the hardware. We don't have this issue on our 32 bit boxes. Show quoteHide quote "TheSQLGuru" wrote: > Messing with proc affinities is pretty significant stuff. I suggest reading > up on that if you plan on leaving it that way. > > -- > Kevin G. Boles > Indicium Resources, Inc. > SQL Server MVP > kgboles a earthlink dt net > > > "Chuck P" <Chuck@newsgroup.nospam> wrote in message > news:C24D5AD7-57E1-4261-A99A-A4E6F559B84B@microsoft.com... > > We're patched. > > Messing around changed the processor affinity to 3 for 1 sql instance and > > 1 > > for another. This dropped the cpu usage on the later box to a few > > percent. > > > > > > > > "TheSQLGuru" wrote: > > > >> are you patched up to SP2+some CU or another? I had a client where a > >> server > >> would exhibit the exact same issue but this went away with a patch. Not > >> sure which one it was that did the trick though. Sorry! > >> > >> -- > >> Kevin G. Boles > >> Indicium Resources, Inc. > >> SQL Server MVP > >> kgboles a earthlink dt net > >> > >> > >> "Chuck P" <Chuck@newsgroup.nospam> wrote in message > >> news:4099C7AE-C22A-4884-ADDC-0E623E1CEE7F@microsoft.com... > >> >I have a 4 cpu box with sql05 on it. > >> > Task manager shows two sqlserver.exe running each at 25% cpu and 5 gig > >> > memory. This is at 6 am with NOTHING going on. > >> > > >> > > >> > If I run > >> > --ActiveSessions.sql > >> > > >> > SELECT > >> > s.session_id > >> > , c.connect_time > >> > , s.login_time > >> > , s.login_name > >> > , c.protocol_type > >> > , c.auth_scheme > >> > , s.HOST_NAME > >> > , s.program_name > >> > FROM sys.dm_exec_sessions s > >> > JOIN sys.dm_exec_connections c > >> > ON s.session_id = c.session_id > >> > I don't get much action. > >> > > >> > > >> > If I look at activity monitor I get 10 sleeping awaiting command and a > >> > few > >> > from me. The highest cpu is 4000 from my login. > >> > > >> > > >> > Visual Studio Team System is on a separate server > >> > Team Foundation Server database is installed on this server. > >> > SqlServerProfiler is showing about every second Report Server is > >> > running this: "exec GetDBVersion @DBVersion=@p1 output" > >> > > >> > Any ideas on why 2 sqlserver.exe processes are running at 25%? > >> > > >> > >> > >> > > > Hi Chuck,
According to the exsiting information, it is hard to track the root cause of this issue. Regarding optimizting SQL Server CPU performance, I recommend that you refer to the following articles: Optimizing SQL Server CPU Performance http://technet.microsoft.com/en-us/magazine/2007.10.sqlcpu.aspx Also I appreciate your understanding that our MSDN Managed Newsgroup is not the best place for answering performance related issues. We will try to give you some general suggestions here, however they are not helpful, it is recommended that you contact Microsoft Customer Support Services (CSS) via telephone so that a dedicated Support Professional can assist you in a more efficient manner. Please be advised that contacting phone support will be a charged call. To obtain the phone numbers for specific technology request please take a look at the web site listed below. http://support.microsoft.com/default.aspx?scid=fh;EN-US;PHONENUMBERS If you are outside the US please see http://support.microsoft.com for regional support phone numbers. Best regards, Charles Wang Microsoft Online Community Support ========================================================= Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msd***@microsoft.com. ========================================================= This posting is provided "AS IS" with no warranties, and confers no rights. ========================================================= Dear Partner,
Thank you for the post. From your description, I understand that you want to find what has caused high CPU usage in your server. If I have misunderstood, please let me know. Based on your troubleshooting results, it seems there is little chance that user activity has consumed high CPU. I suspect that some system activity might consumed more resource such as scheduled job or etc. To find the root cause of the issue, I would like to collect the following information: 1. Please check your trace record and search for any record with high duration. (if possible, please list it) 2. Is there any scheduled job running in the server? 3. Did you configure the server for replication or log shipping? 4. Regarding there is two sqlserver.exe, do you mean two instance on you server? Also, I suggest that we monitor the performance counter to check who have easing more CPU Object: Thread Counter: Processor Time Instance: All SQLServer Worker threads We can check if any specific sql thread thats eating alarmingly more cpu than other threads and we can suspect the special thread to be the problem creator. (once we know what thread it is, make a note of thread instance number) These threads are nothing but the worker threads in sqlserver. And these threads are eventually associated with a specific sql SPID Please let me know on any updates on the situation. Best Regards, Robbie Meng Microsoft Online Community Support ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications <http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx>. Note: The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at <http://msdn.microsoft.com/subscriptions/support/default.aspx>. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. The only job durations over a few minutes are (today is 12/15/08):
53 2008-12-11 18:26:28.843 2008-12-11 18:26:28.843 NT AUTHORITY\SYSTEM TSQL NTLM HRSQL05 SQLAgent - Email Logger 54 2008-12-11 18:26:28.843 2008-12-11 18:26:29.140 NT AUTHORITY\SYSTEM TSQL NTLM HRSQL05 SQLAgent - Generic Refresher 55 2008-12-11 18:26:48.827 2008-12-11 18:26:48.827 NT AUTHORITY\SYSTEM TSQL NTLM HRSQL05 SQLAgent - Alert Engine 51 2008-12-11 19:00:00.720 2008-12-11 19:00:01.267 NT AUTHORITY\SYSTEM TSQL NTLM HRSQL05 SQLAgent - Job invocation engine Their are 4 backup jobs scheduled, all are idle. No replication or log shipping. We have to sql instances on the server. The one we have been talking about, which is for normal db stuff and another one is exclusively for Team Foundation Server. Both are sql05 standard. Show quoteHide quote "Robbie Meng" wrote: > Dear Partner, > > Thank you for the post. > > From your description, I understand that you want to find what has caused > high CPU usage in your server. If I have misunderstood, please let me know. > > Based on your troubleshooting results, it seems there is little chance that > user activity has consumed high CPU. I suspect that some system activity > might consumed more resource such as scheduled job or etc. > > To find the root cause of the issue, I would like to collect the following > information: > 1. Please check your trace record and search for any record with high > duration. (if possible, please list it) > > 2. Is there any scheduled job running in the server? > > 3. Did you configure the server for replication or log shipping? > > 4. Regarding there is two sqlserver.exe, do you mean two instance on you > server? > > Also, I suggest that we monitor the performance counter to check who have > easing more CPU > > Object: Thread > Counter: Processor Time > Instance: All SQLServer Worker threads > > We can check if any specific sql thread thats eating alarmingly more cpu > than other threads and we can suspect the special thread to be the problem > creator. (once we know what thread it is, make a note of thread instance > number) > > These threads are nothing but the worker threads in sqlserver. And these > threads are eventually associated with a specific sql SPID > > > Please let me know on any updates on the situation. > > > Best Regards, > > Robbie Meng > Microsoft Online Community Support > ================================================== > Get notification to my posts through email? Please refer to > http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif > ications > <http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx>. > Note: The MSDN Managed Newsgroup support offering is for non-urgent issues > where an initial response from the community or a Microsoft Support > Engineer within 1 business day is acceptable. Please note that each follow > up response may take approximately 2 business days as the support > professional working with you may need further investigation to reach the > most efficient resolution. The offering is not appropriate for situations > that require urgent, real-time or phone-based interactions or complex > project analysis and dump analysis issues. Issues of this nature are best > handled working with a dedicated Microsoft Support Engineer by contacting > Microsoft Customer Support Services (CSS) at > <http://msdn.microsoft.com/subscriptions/support/default.aspx>. > ================================================== > This posting is provided "AS IS" with no warranties, and confers no rights. > > Hi Chuck,
Could you please let me know why you thought that 25% CPU utilization was high? Generally values of 80% processor time per CPU are generally deemed to be a bottleneck. I recommend that you refer to this article for more information: CPU Bottlenecks http://www.microsoft.com/technet/prodtechnol/sql/2005/tsprfprb.mspx#EIE Best regards, Charles Wang Microsoft Online Community Support ========================================================= Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msd***@microsoft.com. ========================================================= This posting is provided "AS IS" with no warranties, and confers no rights. ========================================================= If we do a clean install on a server and put on sql server, we usually only
have a few percent cpu usage. Since this box has no load but has 50% cpu utilization, we thought that was not normal. I think on this box some sql process is churning. ""Charles Wang [MSFT]"" wrote: Show quoteHide quote > Hi Chuck, > Could you please let me know why you thought that 25% CPU utilization was > high? Generally values of 80% processor time per CPU are generally deemed > to be a bottleneck. I recommend that you refer to this article for more > information: > CPU Bottlenecks > http://www.microsoft.com/technet/prodtechnol/sql/2005/tsprfprb.mspx#EIE > > Best regards, > Charles Wang > Microsoft Online Community Support > ========================================================= > Delighting our customers is our #1 priority. We welcome your > comments and suggestions about how we can improve the > support we provide to you. Please feel free to let my manager > know what you think of the level of service provided. You can > send feedback directly to my manager at: msd***@microsoft.com. > ========================================================= > This posting is provided "AS IS" with no warranties, and confers no rights. > ========================================================= > > > >
Other interesting topics
text to number <--SQL rookie here Options
dbcc shrinkfile SQL 2005: "Function argument count error." error SQL Server 2008 - remote connection problems listing sql server and instances Collation Issue Active/Active/Active Cluster question SQL 2000 and 2005 On Save Box Oracle Linked Server 16GB memory for SQL |
|||||||||||||||||||||||