Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7552233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:42:33+00:00 2026-05-30T10:42:33+00:00

I have a server with 32 gigs of RAM and Intel Xeon CPU (2

  • 0

I have a server with 32 gigs of RAM and Intel Xeon CPU (2 processors at 2.4GHz).

SQL Server 2008 is running on it with 3 or 4 databases.

The problem is that the CPU and memory has been running at full capacity and I initially thought it was multithreaded applications I was running through Visual Studio, but after shutting these down, nothing has changed. Someone suggested I do performance testing in SQL but I am not sure if this will give the answers I need.

I looked at the activity monitor and I can see which are expensive queries etc. but my question is whether these are sufficient. I need to present to my lead stats on what is causing the spike in CPU and memory and is the activity monitor results enough or do I need to use the SQL Server Profiler and run traces. Any suggestions appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:42:34+00:00Added an answer on May 30, 2026 at 10:42 am

    I use the following Query to find out the most expensive queries on my server – originally from here.

    Hopefully it helps!

    SELECT DISTINCT TOP 10 t.TEXT QueryName,
                           s.execution_count AS ExecutionCount,
                           s.max_elapsed_time AS MaxElapsedTime,
                           Isnull(s.total_elapsed_time / s.execution_count, 0) AS AvgElapsedTime,
                           s.creation_time AS LogCreatedOn,
                           Isnull(s.execution_count / Datediff(s, s.creation_time, Getdate()), 0) AS FrequencyPerSec
    FROM   sys.dm_exec_query_stats s
           CROSS APPLY sys.Dm_exec_sql_text(s.sql_handle) t
    ORDER  BY s.max_elapsed_time DESC
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very large (100+ gigs) SQL Server 2005 database that receives a
I have 17 gigs of images directly on my server that I would like
Here's my problem: I have server A, running node.js and using socket.io for communicating
I have a development vm which is running sql server as well as some
I'm working within a platform that I do not have server side access to
I have SQL Server 2005 and I am looking for a way to take
I have a server application that is compiled in 32 bit, and I want
I have a server running openvpn for outgoing connections. However, once I start openvpn,
I have a server that runs on Solaris 10, whenever I go to the
I have server-client application, it's a file manager my problem is when I go

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.