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

  • Home
  • SEARCH
  • 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 6737111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:12:36+00:00 2026-05-26T11:12:36+00:00

I’m pretty new to load testing with VS, but I think I’ve set everything

  • 0

I’m pretty new to load testing with VS, but I think I’ve set everything up normally, and I’m having a problem where execution of my Load Test quickly spikes to 100% CPU utilization. It seems likely that this will affect my test results and I assume it’s not the anticipated behavior.

My hardware platform is a beefy developer machine: a few months old with a quad-core, 12GB RAM, 2 IDE drives and a fast NIC. I can elaborate if necessary, but usually I’d say it screams.

I’m testing an MVC2/3 application that runs locally on Win7 x64, against MSSQL 2008, using VS2010 SP1, C#/.NET 4.

The underlying test is a Unit Test that exercises a single MVC controller method, which uses Unity and other Ent-Lib libraries to pull a collection of clients back from the database, according to the user’s rights. Typical execution time for the Unit Test is 0.4 to 0.6 seconds.

The Load Test is set to expose the performance problem and runs for 10 minutes:

  • Initial User Count: 1
  • Step Duration: 30
  • Step User Count: 1

Observations:

  1. For the first 30 seconds as a single user, execution is a bit erratic. The first test takes 3 sec, which is normal warm-up. The next 15 or so take about .4 sec, which is perfect. Just after 10 seconds, though, tests start running for 5 sec. This is before the 2nd virtual user comes on. As additional virtual users come on, test times increase gradually, which is to be expected, though the runtimes still seem long.

  2. More concerning is that CPU utilization spikes around user 6 (it was averaging around 20% prior across all 8 cores). At user 6 and 7, CPU goes to 70% and is pegged at 100% on 8 cores by user 8, and it stays there until the test ends after 10 minutes. Needless to say, for a normal stepped test, I’d like to start with 10 concurrent users and go up to 100 or more, but my CPU starts at 100%, and the results are surely inaccurate.

The cuprit is clearly QTAGENT.EXE, as I can see from the executing tasks. It uses every spare CPU cycle from what I can see. I’ve run this Load Test in 32-bit mode as well, and QTAGENT32.EXE runs similarly.

I’m at a loss for why I’m experiencing this problem, let alone what to do about it. Any proposals or solutions are appreciated. TIA!

EDIT

I found that a workaround to my problem is to start the load test by clicking “Debug Test” instead of “Run Test.” This doesn’t really make any sense to me, in fact it’s like the exact opposite of what I’d expect; however, I can’t deny it’s consistently running my tests with 100s of users and only semi-thrashing my CPU (~50% average with spikes).

  • 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-26T11:12:36+00:00Added an answer on May 26, 2026 at 11:12 am

    So it came down to user error. Turns out the controller I was testing was ultra-resource-intensive. I read about this as the likeliest cause of high CPU usage elsewhere, but I assumed (oops) that 8 concurrent users hitting this particular controller couldn’t possibly peg my CPU. No, in fact, our code is extremely expensive to run, and 8 users requesting the page at the same time will max it out. Thanks for all the suggestions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

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.