Can Trap Memory Usage From Web Application When It Reaches A Certain Amount

Feb 3, 2011

I am hosting a solution with an outside company so getting them to troubleshoot or send me log files is not working.

Is there a way from code or Global.asax file that I can trap Memory usage from my web application when it reaches a certain amount? Then figure out what is using all the memory

View 2 Replies


Similar Messages:

Web Forms :: Get Load Information On Application Server In Terms Of Memory Or CPU Usage?

Feb 11, 2010

Is there a way to get load information on Application Server? How much memory or CPU is being used at a given point? I want to either 1. Limit users to use specific functionality of ASP.NET 3.5 application or 2. Deny users from accessing the application saying "Server is busy at the moment"

View 4 Replies

Load Balancing Application - Connect (login) To Application The TPS Reaches Zero

Feb 24, 2011

We have an ASP.NET application deployed on 2 Application servers with load balancer server. It is using INPROC state management. The ADO.NET connection pooling is enabled with 50 as minimum connections and 100 maximum connections.

In Load testing (using load testing tool) when the application reaches to 50 users no more users can connect (login) to application the TPS reaches zero. No errors are logged in application log related to application or database. The sessions are working fine.

View 2 Replies

C# - How To Write Memory Usage Log

Nov 10, 2010

We got "out of memory" issue on production servers. What API can we use to get live memory (physical and managed) usage of the ASP.NET application?

PS: we're forbidden to profile memory with tools.

View 4 Replies

What Is Normal Memory Usage Of A Mvc Website

Feb 16, 2011

I have really tried to Google it but only articles about how to troubleshoot memory issues come up. Before I start to troubleshoot, I would like to know if my web site's memory usage is really abnormal or not.

So it is an asp.net mvc 2 website that runs on IIS 7.5 in production. I guess normal memory usage depends upon traffic, so here are the numbers of an average day:

300 unique visitor
400 visits
3000 page views

I would be really happy to get some idea how much is the normal memory usage for this traffic. Also I would be curious to know how memory usage normally increases with traffic growth.

View 1 Replies

Memory Usage In IIS Is FAR Greater Than In DevEnv - Is This Normal

Jan 5, 2011

I have an ASP.NET app that scrapes data from a handful of external pages, parses the relevant bits and displays them in a table. Total data retrieved is 3-4MB and the resulting page is about 1MB. I am using synchronous WebRequest GetResponse for the retrieval, but the same problem existed using an asynchronous BeginGetResponse/EndGetResponse process.There is no database access, no session storage, no caching, but an in-memory list of about 100 objects (total 1MB of data), plus a good amount of AJAX (AjaxControlToolkit). This issue appears on the very first run of the app, even if I have restarted IIS.

The issue:

When I run the app on my dev computer, the maximum commit charge is about 1.5GB. The biggest user, measured by Task Manager's VM Size, is WebDev.WebServer.exe (600MB). The app runs perfectly.

When I run it on my rent-a-server (IIS 7.5, 1GB RAM), the maximum commit charge is over 3.8GB. The biggest user is w3wp.exe at 2.7GB. IIS grinds to a halt and spits out a timed-out error page.

Given my limited server budget and the hope of having multiple simultaneous users, I'm kind of in a panic.

Is this normal? If I bump the server RAM up to 4GB, will that be enough?

View 3 Replies

Configuration :: IIS Memory Usage Is Extreme - Is That Normal

Jan 6, 2011

I have an ASP.NET 3.5 app that collects data from a handful of external pages, parses the relevant bits and displays them in a table. Total data retrieved is 3-4MB and the resulting page is about 1MB. I am using synchronous WebRequest GetResponse for the retrieval, but the same problem existed using an asynchronous BeginGetResponse/EndGetResponse process.

There is no database access, no session storage, but an in-memory list of about 100 objects/1MB of data, plus a good amount of AJAX (AjaxControlToolkit). This issue appears on the very first run of the app, even if I have restarted IIS.

The issue:

When I run the app on my dev computer, the maximum commit charge is about 1.5GB. The biggest user, measured by Task Manager's VM Size, is WebDev.WebServer.exe (600MB). The app runs perfectly.

When I run it on my rent-a-server (IIS 7.5, 1GB RAM), the maximum commit charge is over 3.8GB. The biggest user is w3wp.exe at 2.7GB. IIS grinds to a halt and spits out a timed-out error page.

Given my limited server budget and the hope of having multiple simultaneous users, I'm kind of in a panic.

View 3 Replies

Response - Finding Memory Usage During Download?

Jan 22, 2010

On an ASP.net site at my place of work, the following chunk of code is responsible for handling file downloads (NOTE: Response.TransmitFile is not used here because the contents of the download are being streamed from a zip file):

[code]....

I've just read about the 'buffer' property of the Response object. If I set that to false, will that prevent the Response.BinaryWrite() calls from buffering the data in memory? In general, what is a good way to limit memory usage in this situation? Perhaps I should stream from the zip to a temporary file, then call Response.TransmitFile()?

EDIT: In addition to possible solutions, I'm very interested in explanations of the memory usage issue present in the code above. Why would this consume far more than 1MB, even though Response.Flush is called on every loop iteration? Is it just the unnecessary heap allocation that occurs on every loop iteration (and doesn't get GC'd right away), or is there something else at work?

View 1 Replies

IIS And Ajax UpdatePanel Results In Extreme Memory Usage?

Nov 26, 2010

I have a update panel combined with gridview with sorting and paging.

I go into task manager to monitor the memory usage of the worker process (w3wp)

What I do is just click on the sort buttons rapidly.

With each click the memory of the process increases with about 2 mb

So I go from 30 mb memory usage to about 90. Then it stops at remains there, no memory is freed up. I am not using caching or session/application state.

What can be causing this, is there a setting in IIS to reduce the mem usage?

I also used .net profiler to examine my app memory usage: 4 mb, so what is the other 86 used for??? Even though it repots 4mb, in task manager it says 90 mb, so this leads me to believe that the rest is namanaged memory which must be used by IIS in some way.

View 2 Replies

Caching - Controlling Output Cache Memory Usage?

May 17, 2010

I would like to use output caching with WCF Data Services and although there's nothing specifically built in to support caching, there is an OnStartProcessingRequest method that allows me to hook in and set the cacheability of the request using normal ASP.NET mechanisms.

But I am worried about the worker process getting recycled due to excessive memory consumption if large responses are cached. Is there a way to specify an upper limit for the ASP.NET output cache so that if this limit is exceeded, items in the cache will be discarded?

I've seen the caching configuration settings but I get the impression from the documentation that this is for explicit caching via the Cache object since there is a separate outputCacheSettings which has no memory-related attributes.

Here's a code snippet from Scott Hanselman's post that shows how I'm setting the cacheability of the request.

[code]....

View 1 Replies

C# - Page Explodes Memory Usage To 80MB And Then Dies?

Feb 25, 2011

I'm using asp.net and chrome and the page becomes unresponsive after a while. When I look at the chrome debug, I see that memory usage increases to about 80MB and chrome popups a request to kill the page. The error counter spins and generates about 30,000 errors when the popup comes. What triggers the error is the call of an updatepanel. The error as displayed in chrome is "Failed to load resource".

The update panel: the user clicks on a button and the panel is refreshed. There's only one update panel on the page.

This is what I have:

function HistoryUIActions() {
$('.SelectDay, .SelectDay1Digit').click(function () { GetNewDate(this); });
};
function GetNewDate(thedateitem) {
var TheDay = $.trim($(thedateitem).html());
TheYear = 2011;
ThisMonth = 2;
DateString = ThisMonth + '/' + TheDay + '/' + TheYear;
__doPostBack('<%= TheUpdatePanel.ClientID %>', DateString);
};
function EndRequestHandler(sender, args) {
HistoryUIActions();
};

The errors compound on every postback: 1,4, 11, 26, 57, 120, 247.... eventually chrome kills the page. When I put a breakpoint in the function, it stops the code just after I press the button; then after it hits the __doPostBack line, it starts the GetNewDate function again several times by going back to the line of the click event, apparently executing it the number of times shown above.

View 1 Replies

Web Forms :: Memory Usage (consumption) Of Individual Controls On A Web Form Shown In A Browser?

Oct 12, 2010

Is there a way to check the memory usage (consumption) of individual controls on a web form shown in a browser. Like Repeater Control, Multiline Text box etc. The reason is I am putting the repeater control in session and checking the status of controls, based on which I am doing further actions.

View 2 Replies

Environment.WorkingSet Incorrectly Reports Memory Usage For A Website That Runs On Windows 2003 Server

Jul 31, 2010

Environment.WorkingSet incorrectly reports the memory usage for a web site that runs on Windows 2003 Server.(OS Vers: Microsoft Windows NT 5.2.3790 Service Pack 2, .NET Vers: 2.0.50727.3607)

It reports memory as Working Set(Physical Mem.): 1952 MB (2047468061).

Same web site runs locally on Windows Vista with a Working Set(Physical Mem.): 49 MB (51924992).

I have limited access to the server and support is so limited.

so i have computed the total memory by traversing with VirtualQuery.

Total of pages with state: MEM_FREE is 1300 MB.

(I guess server have 4 GBs of RAM and PAE is not enabled, max user mode virtual address is 0x7fff0000.)

So, i know working set is not only about virtual memory. But, is it normal to have such a high working set while its very low on another machine?

View 2 Replies

Configuration :: Temporary File Size Of Windows Reaches Around 10MB, Than The Application Blocks And The Reports Cannot Be Generated?

Jan 14, 2011

I have an application that is hosted in Server 2008 Standard Edition.It has more than 50 active users that uses it. The problem is that when Temporary file size of Windows (C:Windows emp) reaches around 10MB, than the application blocks and the reports cannot be generated.When we clear this temp folder and reset Refresh IIS, the application starts working again.Below is the code we use to generate reports:

[Code]....

View 7 Replies

Web Application Is Locked Up And CPU Usage Reached To 100%

Dec 28, 2010

We have a web application running which having around 100 users logged in, All clients are connected to server using websync. I was having requirement for keeping the session always live, so I am regenerating session when it is about to expire.

But after 3 or 4 days, I found cpu reached to 100% and application locked, then we need to restart the server to make it working.

View 3 Replies

Configuration :: Web Application Is Locked Up And CPU Usage Reached To 100%.

Dec 28, 2010

We have a web application running which having around 100 users logged in, All clients are connected to server using websync. I was having requirement for keeping the session always live, so I am regenerating session when it is about to expire.

But after 3 or 4 days, I found cpu reached to 100% and application locked, then we need to restart the server to make it working.

View 3 Replies

How To Protect The DLL / Applying Time Limit (trial Period ) To Entire Application Usage

Dec 21, 2010

1. I need to protect DLL

2. Applying time limit (trial period ) to entire application usage.

View 3 Replies

Use Web Application To Manipulate Memory?

Dec 28, 2010

multiple groups of users interacts using browser. in each group, users will interact with some data(objects). the data(objects) are loaded from database. during the interaction, users needs quick and synchronized view of the same data(object), so they must be save in the memory. data(objects) will change during the interaction, but only the final result of this interaction need to be saved back into DB.

My Current Solution

load data(object) into global.asax the manipulate. but for this solution, i got few questions.

how can i make sure the web application have ONLY ONE instance?(configure in iis-->application pool?) because web application would restart by itself, as a result, all data in the application state will lose. how can i avoid application restart by it self rather than managed? in the iis application pool setting, i can set the recycle time, is it guaranteed that no application restart will happen during this time? or is there and event that might trigger something(before application restart) so i can save the current application status and load them back again?

View 2 Replies

How To Trace Is There Are Any Memory Leaks In Application

Feb 5, 2010

I have an ASP.net application with c# which uses MS SQL server 2005. I find that the cpu usage of my server reaches 100% when ever i run the application. I was told that i may have memory leak in my application. How can i trace is there are any memory leaks in my application? Note: I am not the programmer of this application. But i have the complete source code as i am doing maintenance and enhancements on this application.

View 1 Replies

MVC :: Atrying To Determine The Memory Used By MVC Application

Feb 19, 2011

This is a cross post from my post on SO [URL]

I'm trying to determine the memory used by my ASP.NET MVC application. My host imposes a 100mb application pool memory restriction. However, from my tests, an empty ASP.NET MVC application uses 30mb memory so I have absolutely no hope with an application that actually does something.

I can't find any benchmarks on what a "standard" MVC app should be using (I assume MS have someb somewhere??).

My application is not that special. I use StructureMap for DI and EF Code First. The model is equivelant to that of a blog. If I completely remove my data access code then my memory usage drops to around 40mb (of course in this state its pretty useless).

View 2 Replies

C# - Creating 3D Visual In Memory Using WPF In Web Application

Jan 12, 2011

Bit of a weird title, but here's the deal. For a web site I'm working on, we have the need to generate quasi-3D images on the fly. Basically, it's for an art site, and we have the need to show a 3D representation of a Canvas given a 2D image (jpg). (See here for some context.) The approach we're taking is to leverage the WPF 3D API and create a Viewport3D in code, add a bunch of points to it with the correct dimensions, and then apply the textures from the original jpg appropriately. While testing it, I was testing it the whole time in a sandbox environment, and in the built in Cassini web server in Visual Studio. While trying to migrate it over to the actual code repository and testing it there, it stopped working. The image that's pumped out is the correct size, but is completely blank. It's totally black. After hours of banging my head against the wall, I figured out that it's an IIS issue. I created a simple sample app to demonstrate the issue (doesn't add images though it just paints all sides green), however since most of the code is largely irrelevant to the question, I won't put it here, rather I'll post a link to it:

[URL]

If you do download it and want to run it, in the code behind of Default.aspx you'll see this:

protected void buttonClick(object sender, EventArgs e)
{
var path = @"C: estoutputoutput.png";
IISvsCassini.WpfImageCreator.CreateWPFImage(path);
}

Feel free to change that path to whatever, and make sure that the correct permissions are in place as it'll try to save a file there. If you try that sample in Visual Studio with Cassini, it'll work fine, and you should have a new file called "output.png" which has a green 3D cube. If you try it in IIS, you'll get a blank image. A few points: Before anyone asks, yes, I gave all the proper folders the correct permission issues. I also do the actual 3D generation and image saving on a separate thread with the Apartment state set to STA. know this is a bit of an unusual case of fusing WPF and ASP.Net, but by some chance, Is there some setting in IIS that I need to change? Is there some limitation to the WPF API that won't allow it to run out of IIS?

View 2 Replies

Check Memory Leaks In Web Application?

Feb 14, 2011

My web application is of large size and its performnacne is very slow,

now i want to check the memory leaks, are there any third party tools or built in add in in VS 2010 ,

i tried using ANTS profiler but it supports only .net framerok 2.0, my project in built in framework 4.0

how can i detect memory leaks

View 6 Replies

Is Possible For Our Application To Be Using 5GB Of Memory But Only Showing 350mb For The Process

Mar 30, 2010

Running an ASP.NET application in its own app pool on Windows Server 08 / IIS 7.

Server keeps hitting 97% memory usage and sticking there, trying to work out if that is our application's fault.

My main question is, does all of the memory used by an application get displayed as the working set for the w3wp.exe process associated to it? Our application (according to IIS7 and the worker process in task manager) is using less then 350mb. I want to know if it is possible for our application to be using 5GB of memory but only showing 350mb for the process?

View 9 Replies

.net - Memory Increase On Application Pool Recycle?

Dec 14, 2010

I'd like to describe strange issue I've noticed while analyzing my asp.net application in production and ask for some advice or opinion on the following matter.Application usually runs with some 80-90 MB of memory footprint. This seems stable since no memory leaks have been detected so far - no slight increase in memory usage over time. Yet, problem occurs when application pool recycles (I'm using shared hosting and judging by logs it occurs either when app is idle for 20 mins or every ~30 hours - something like that). The issue is that used memory almost doubles for some period on recycle - it goes to some 160-170 MBs without any explanation. This is confusing, since it is common claim that recycling should purge the memory and all other resources - at least I get it that way. System holds this amount of memory for some 7-8 hours and then memory usage drops to it's usual level of 90-100 MB, again, with no apparent reason (at least not know to me).

View 1 Replies

Memory Limits And Application Pool Recycle?

Jun 22, 2010

my web applications app pool configuration is
PeriodicRestartMemory : 512000
PeriodicRestartPrivateMemory : 196608

although the virtual memory limit is higher than private memory, app pool is recycled with virtual memory limits exceeded errors in the event log (instead of private memory).

what is the reason for this? how could it exceed virtual memory limits before exceeding private memory limits? it seems that systems other allocations in virtual memory cause limits exceeded before applications private allocations exceed the limits, but what are those allocations of the system? or what is the root cause of this.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved