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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:28:55+00:00 2026-06-04T22:28:55+00:00

According to this question , I want to know if asp.net’s system.web.caching.cache is good

  • 0

According to this question, I want to know if asp.net’s system.web.caching.cache is good for me, or I should use database caching?

So, I need to know how much memory is being used by system.Web.caching.cache?
But since I am using a shared hosting server, I can’t use task manager.
Is there any way to determine how much memory is used by system.web.caching.cache using some code?

  • 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-06-04T22:28:57+00:00Added an answer on June 4, 2026 at 10:28 pm

    One fast way to see how many working memory your application use is to direct ask the garbage collection.

    long bytes = GC.GetTotalMemory(false);
    txtMemoryUsed.Text = bytes.ToString();
    

    and use this literal <asp:Literal runat="server" ID="txtMemorysUsed" EnableViewState="false" />

    But you can get more details using the PerformanceCounter, for example you can get how many virtual memory the pools used by this code:

     var oPerfCounter = new PerformanceCounter();
    oPerfCounter.CategoryName = "Process";
    oPerfCounter.CounterName = "Virtual Bytes";
    oPerfCounter.InstanceName = "aspnet_wp";
    txtMemorysUsed.Text = "Virtual Bytes: " + oPerfCounter.RawValue + " bytes";
    

    You can use all this parameters to get information’s for your pool.

    Processor(_Total)\% Processor Time
    Process(aspnet_wp)\% Processor Time
    Process(aspnet_wp)\Private Bytes
    Process(aspnet_wp)\Virtual Bytes
    Process(aspnet_wp)\Handle Count
    Microsoft® .NET CLR Exceptions\# Exceps thrown / sec
    ASP.NET\Application Restarts
    ASP.NET\Requests Rejected
    ASP.NET\Worker Process Restarts (not applicable to IIS 6.0)
    Memory\Available Mbytes
    Web Service\Current Connections
    Web Service\ISAPI Extension Requests/sec
    

    for example, this parametres get the cpu load.

    oPerfCounter.CategoryName = "Processor";
    oPerfCounter.CounterName = "% Processor Time";
    oPerfCounter.InstanceName = "_Total";
    txtOutPut.Text = "Current CPU Usage: " + oPerfCounter.NextValue() + "%";
    

    reference: http://msdn.microsoft.com/en-us/library/ms972959.aspx

    relative: Monitoring ASP.NET application memory from within the application

    I have test that on local iis and works.

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

Sidebar

Related Questions

Just some architectural question: I use ASP.net MVC and exclusively rely on Strongly-Typed Views
Possible Duplicate: Priority queue in .Net This question is similar, but i want to
I want to create an ASP.NET web site. I have not been using ASP.NET
According to this question it seems like you can do this for Methods. What
According to this question I succeeded to create upload image, but now I need
According to this question in order for Flymake to work you must add a
I have modified the code in this question ,according to the answers there, in
According to this article I know, that DateTimePicker control does not reflect CurrentUICulture So,
According to this link: http://forums.silverlight.net/t/20489.aspx encrypting a XAP file is not possible. However, obfuscating
I'm debating what technology to use for an upcoming ASP.NET project. Assumptions: I will

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.