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 657591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:50:28+00:00 2026-05-13T22:50:28+00:00

I m contributing to a project that s been developed for over a year

  • 0

I m contributing to a project that s been developed for over a year and I jumped into it in lately.

There are performance problems with the application.

I m aware of several profiling tools, approaches for optimization such as find out the bottlenecks and optimize them. I m comfortable with algorithms, running times of iterations etc.

We are using C#, an object oriented dbms, the application has many writes and updates, as far as caching; Velocity Cache. App will be deployed on about 100 dedicated large machines behind a expensive load balancer that can handle 400K request per second, with a db server with 64 GB ram, replicated. This s their scaling strategy.

  • 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-13T22:50:28+00:00Added an answer on May 13, 2026 at 10:50 pm

    So basically the question is how to locate the bottleneck(s). Profiling is one approach, and it usually works fine if used correctly. Focus on highest time inclusive stack to find which component is the problem, focus on time exclusive to locate problem functions. Also take a look at number of executions, you often find surprises there in small functions that are executed way too often.

    Another approach is performance counters, and this is my favorite because is far less invasive than profiling, and can be used and re-used again and again in production deployment. I add counter generously to my code (see Using XSLT to generate Performance Counters code to avoid typing a tonne of repetitive code) and instrument the code with calls to IncrementXXX. Incrementing a performance counter is so cheap that the code can be left in Release production code, and this is why I prefer this method. for instance say I have a piece of code that makes a database call, then a web service request, then another database call. Overall is slow, but where? I can instrument the code like this:

    void MyFunction()
    {
      CountersManager.IncrementMyFunction(1);
    
      CountersManager.IncrementFirstDBCall(1);
      dataAccess.FirstCall();
      CountersManager.IncrementFirstDBCall(-1);
    
      CountersManager.IncrementWebCall(1);
      webRequest.MakeCall();
      CountersManager.IncrementWebCall(-1);
    
      someCode.. moreCode;
    
      CountersManager.IncrementSecondDBCall(1);
      dataAccess.SecondCall();
      CountersManager.IncrementSecondDBCall(-1);
    
      CountersManager.IncrementMyFunction(-1);
    }
    

    This is the simplest instrumentation, its trivial to add, and although the information it provides it’s minimal, it can give insight into what happens. Say I collect performance counters and I find that most samples the MyFunction counter is 500, the FirstDBCall counter is 50, the WebService counter is 300 and the SecondDB call is 50. That tells me that in average, from the 500 calls that are in MyFunction, 300 were captured during the web call, so that is where the most time is spent. But I can go further, add counters that measure time occured (increment a counter of type AverageTimer32 and an AverageBase one) and the profiling will give me the average duration of the operation. And so on and so forth.

    And last but not least, you can look at all the existing counters in the products you use. The drawback is that understand where to look and how to interpret the number you see requires knowledge of the said counters, or access to good troubleshooting tips. There are plenty for products like SQL Server for instance, but other products from the stack you use may be more difficult to find a good documentation on how this topic.

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

Sidebar

Related Questions

I have been contributing heavily to this open source project that aims to help
I'm contributing to a fairly small open source project hosted on Github. So that
We are writing an AJAX-heavy Wicket application and have panels that are contributing CSS
I am contributing code to an open source project which requires that no tabs
I'm contributing on an I18N project and there's a call to serialize our *.resx
I've been consulted with on the setup of a project and would like to
Okay, I've realized that I really have asked way too many questions without contributing
I am working on an FEM project using Scipy. Now my problem is, that
In Contributing to Eclipse book it is written that to introduce an extension point
I'm about to start a project where programmers will be contributing from their homes

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.