473,789 Members | 2,441 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET application more than 200MB virtual memory


I have recently been deploying a asp.net extranet application.

The asp.net worker process starts off with 30MB virtual memory and then upon
serving a few pages, the memory usage increases to a WHOOPIN! 200MB and
eventully the asp.net process restarts at 300MB and my application becomes
"unavailabl e" with my sessions being destroyed.

Is there an explanation why the asp.net process uses that much memory?

After i have logged out of my application and closed the browser, the memory
usage does not decrease?

Is this due to the Compiler keeping the cache of the application?

Is there anyway i tune the performance and find the memory leak?

Tel : [65] 6225 1308 Fax : [65] 6225 1931 www.active8.com.sg
Nov 19 '05 #1
4 3912
do you access databases? do you close your connections?
do you add something in cache/session?
do you destroy your objects?

"Ethan Chan" <et***@active8. com.sg> wrote in message
news:u8******** ******@TK2MSFTN GP14.phx.gbl...

I have recently been deploying a asp.net extranet application.

The asp.net worker process starts off with 30MB virtual memory and then
upon serving a few pages, the memory usage increases to a WHOOPIN! 200MB
and eventully the asp.net process restarts at 300MB and my application
becomes "unavailabl e" with my sessions being destroyed.

Is there an explanation why the asp.net process uses that much memory?

After i have logged out of my application and closed the browser, the
memory usage does not decrease?

Is this due to the Compiler keeping the cache of the application?

Is there anyway i tune the performance and find the memory leak?

Tel : [65] 6225 1308 Fax : [65] 6225 1931 www.active8.com.sg

Nov 19 '05 #2
I am using Castle Proxy as an object factory to serve objects and store them
in an object pool for retrieval.

Other than that, our application uses very little session data, more for the
forms authentication.

Database:
Access MySQL database using nHibernate which manages the database pooling.

"Jéjé" <wi******@BBBho tmailAAA.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
do you access databases? do you close your connections?
do you add something in cache/session?
do you destroy your objects?

"Ethan Chan" <et***@active8. com.sg> wrote in message
news:u8******** ******@TK2MSFTN GP14.phx.gbl...

I have recently been deploying a asp.net extranet application.

The asp.net worker process starts off with 30MB virtual memory and then
upon serving a few pages, the memory usage increases to a WHOOPIN! 200MB
and eventully the asp.net process restarts at 300MB and my application
becomes "unavailabl e" with my sessions being destroyed.

Is there an explanation why the asp.net process uses that much memory?

After i have logged out of my application and closed the browser, the
memory usage does not decrease?

Is this due to the Compiler keeping the cache of the application?

Is there anyway i tune the performance and find the memory leak?

Tel : [65] 6225 1308 Fax : [65] 6225 1931 www.active8.com.sg


Nov 19 '05 #3
mmm...

its difficult to isolate the problem from my point of view ;-)

have you try to open 1 page only and refresh it a lot of time while
measuring the memory usage?

how many memory is installed on the server?
have you try to call the GC.Collect() method to purge the memory?

I have found a post regarding the usage of Strings instead-of StringBuilder
using strings can cause huge memory usage, changing it to stringbuilders can
help you.
"Ethan Chan" <et***@active8. com.sg> wrote in message
news:uI******** ******@TK2MSFTN GP15.phx.gbl...
I am using Castle Proxy as an object factory to serve objects and store
them in an object pool for retrieval.

Other than that, our application uses very little session data, more for
the forms authentication.

Database:
Access MySQL database using nHibernate which manages the database pooling.

"Jéjé" <wi******@BBBho tmailAAA.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
do you access databases? do you close your connections?
do you add something in cache/session?
do you destroy your objects?

"Ethan Chan" <et***@active8. com.sg> wrote in message
news:u8******** ******@TK2MSFTN GP14.phx.gbl...

I have recently been deploying a asp.net extranet application.

The asp.net worker process starts off with 30MB virtual memory and then
upon serving a few pages, the memory usage increases to a WHOOPIN! 200MB
and eventully the asp.net process restarts at 300MB and my application
becomes "unavailabl e" with my sessions being destroyed.

Is there an explanation why the asp.net process uses that much memory?

After i have logged out of my application and closed the browser, the
memory usage does not decrease?

Is this due to the Compiler keeping the cache of the application?

Is there anyway i tune the performance and find the memory leak?

Tel : [65] 6225 1308 Fax : [65] 6225 1931 www.active8.com.sg



Nov 19 '05 #4
also try this:
http://msdn.microsoft.com/library/de...nethowto13.asp

the CLR Profiler...
this utility will scan the memory usage for you

"Jéjé" <wi******@BBBho tmailAAA.com> wrote in message
news:um******** ******@tk2msftn gp13.phx.gbl...
mmm...

its difficult to isolate the problem from my point of view ;-)

have you try to open 1 page only and refresh it a lot of time while
measuring the memory usage?

how many memory is installed on the server?
have you try to call the GC.Collect() method to purge the memory?

I have found a post regarding the usage of Strings instead-of
StringBuilder
using strings can cause huge memory usage, changing it to stringbuilders
can help you.
"Ethan Chan" <et***@active8. com.sg> wrote in message
news:uI******** ******@TK2MSFTN GP15.phx.gbl...
I am using Castle Proxy as an object factory to serve objects and store
them in an object pool for retrieval.

Other than that, our application uses very little session data, more for
the forms authentication.

Database:
Access MySQL database using nHibernate which manages the database
pooling.

"Jéjé" <wi******@BBBho tmailAAA.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
do you access databases? do you close your connections?
do you add something in cache/session?
do you destroy your objects?

"Ethan Chan" <et***@active8. com.sg> wrote in message
news:u8******** ******@TK2MSFTN GP14.phx.gbl...

I have recently been deploying a asp.net extranet application.

The asp.net worker process starts off with 30MB virtual memory and then
upon serving a few pages, the memory usage increases to a WHOOPIN!
200MB and eventully the asp.net process restarts at 300MB and my
application becomes "unavailabl e" with my sessions being destroyed.

Is there an explanation why the asp.net process uses that much memory?

After i have logged out of my application and closed the browser, the
memory usage does not decrease?

Is this due to the Compiler keeping the cache of the application?

Is there anyway i tune the performance and find the memory leak?

Tel : [65] 6225 1308 Fax : [65] 6225 1931 www.active8.com.sg



Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2721
by: Google Mike | last post by:
I need an Application object replacement. I was creating my own using shared memory -- shm* API in PHP. I was doing fine for 6 months until it just got too fat, I guess, and the RH9 Linux server just started "losing its memory". I don't know -- perhaps I'm doing something wrong, perhaps it's my code, or perhaps there's a limitation on what I'm trying to do here. It's too many lines of code to debug right now. I'm searching for...
1
2435
by: picard | last post by:
I have seen in various posts that there are tricks to increasing the largest continuous memory block available to an application on a windows machine. I want to prove this is possible using a simple example. Here is my configuration. -I am running vc++ 6.0 on winXP. (Came with book Starting with Visual C++ by Wright) -I have the 3GB switch set at run time
10
3835
by: VM | last post by:
How can I limit the use of the PC's virtual memory? I'm running a process that basically takes a txt file and loads it to a datatable. The problem is that the file is over 400,000 lines long (77 MB) and after a while I get the Windows message saying that the virtual memory's getting really low. Plus the machine gets really sluggish (with multi-threading). Is it possible to use the virtual memory until it reaches a certain limit and then use...
3
1923
by: SL | last post by:
All, As I understand it, a single application (i.e. IIS virtual directory) in ASP.NET may in fact have more than one corresponding HttpApplicationState object (more or less one per server thread, I think). During each request, only one of these objects is exposed to the page as Page.Application. This seems to be supported by the fact that when I use the debugger, I can see the Application_Start event firing more than one time even...
2
4335
by: Thomas Lykke Petersen | last post by:
The setup is a Windows 2003 Server (Standard) with the /4GT (/3GB) switch turned on which should enable ~3GB of memory for user processes and only ~1GB for windows processes. Is it possible to make an ASP.NET application utilize the new found memory or should the ASP.NET application be build with the LARGEADDRESSAWARE bit turned on? Is the CLR / IIS / aspnet_wp.exe LARGEADDRESSAWARE compatible? Is it the parent process which...
4
1267
by: mkillian | last post by:
I am having an issue to where I need to share memory between an ASP.Net solution and a VB.Net solution. I have several large arrays and collections that are updated every half second. The data is only about 30k, but saving to a file or stringing into text uses too much processor time. I would appreciate any suggestions, Thank you
13
6112
by: ACC | last post by:
Hi! I'm developing an application to analyze some information that is inside a text file. The size of the text file goes from 50Mb to 220Mb... The text file is like a table, with "rows" and "columns", and several "cells" represent an objects in my application. What I need to do is, read the text file line by line, parse the
1
1208
by: Steve Besalke | last post by:
Greetings, I have a question about KB 911309 (http://support.microsoft.com/?kbid=911309) and what it fixes. My company is using a purchased ASP.NET application and virtual directories to provide group access to the application. We are using Windows 2000 Server, IIS 5, and .NET 1.1 SP1. Here is the scenario. The main virtual directory, App points to e:\Program Files\App in IIS. Then we have virtual directories Mirror1, Mirror2, etc....
0
1637
by: George2 | last post by:
Hello everyone, Sorry that this question is related to another question I posted some time before because I have some new findings and self-analysis. My question is why sometimes from perfmon on Windows, working set larger than virtual memory? I think virtual memory is the total size of memory (committed, reserved, shared, private) and working set is just the RAM touched by current process currently. Virtual memory should always larger...
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10404
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10195
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7525
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6765
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5415
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2906
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.