473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Aspnet Worker Thread Memory Usage

jld
Hi,

I developed an asp.net based eCommerce Website for a client and it is
hosted at discount asp.

The site is quite interactive, queries a database a lot and uses
ajax.asp.net to spice up interactivity.
The service suffers from a lot of restarts since discountasp enforces
a 100mb per worker thread limit and when you top it, the service gets
restarted. When there is a lot of traffic on the site, this happens
almost every other minute and users see an unwelcoming "service
unavailable" quite often.

Now I already tried to strip down memory usage, by eliminating almost
all session objects, by using datareaders instead of datasets and by
by employing a very disconnected, database based "state" architecture,
but I still cannot keep MB usage under 100mb.

So I am about to tell my client that he will need to move to a host,
that does not have such a strict memory policy, maybe a virtual host
on a machine with few users.

But just to double check: how does memory usage on your sites look
like? Could you check in task manager, what asp net uses when you view
a single site/application, and the tell me, together with some info
about the site's complexity?

I would be very glad, to have some numbers, that could tell me, if the
host just is not thought for heavier usage or if I am just doing
something stupid that no one else does.

Jan

Jul 2 '07 #1
2 2430
You can track such events on a hosted account with some of the ASP.NET event
providers. Here is an article that touches on some of this, including
tracking app recycles.

http://www.eggheadcafe.com/tutorials...apps-prog.aspx

Aside from that, cache everything that you can to cut down on database
usage. Failing that, you need to consider a different host. I've used
CrystalTech with excellent results, and also gate.com with good results and
few restarts.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder(BETA): http://www.blogmetafinder.com

"jld" wrote:
Hi,

I developed an asp.net based eCommerce Website for a client and it is
hosted at discount asp.

The site is quite interactive, queries a database a lot and uses
ajax.asp.net to spice up interactivity.
The service suffers from a lot of restarts since discountasp enforces
a 100mb per worker thread limit and when you top it, the service gets
restarted. When there is a lot of traffic on the site, this happens
almost every other minute and users see an unwelcoming "service
unavailable" quite often.

Now I already tried to strip down memory usage, by eliminating almost
all session objects, by using datareaders instead of datasets and by
by employing a very disconnected, database based "state" architecture,
but I still cannot keep MB usage under 100mb.

So I am about to tell my client that he will need to move to a host,
that does not have such a strict memory policy, maybe a virtual host
on a machine with few users.

But just to double check: how does memory usage on your sites look
like? Could you check in task manager, what asp net uses when you view
a single site/application, and the tell me, together with some info
about the site's complexity?

I would be very glad, to have some numbers, that could tell me, if the
host just is not thought for heavier usage or if I am just doing
something stupid that no one else does.

Jan

Jul 2 '07 #2
Aside from that, cache everything that you can to cut down on database
usage.
Not sure how that will help on his memory usage problem. One thing you might
try is to force garbage collection once in a while. Also .NET may leak
memory, see if you can find potential culprits.

I agree with considering a different host, though. If you have so much
usage, maybe it is time to move up from your discount provider.

Otavio
"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:98**********************************@microsof t.com...
You can track such events on a hosted account with some of the ASP.NET
event
providers. Here is an article that touches on some of this, including
tracking app recycles.

http://www.eggheadcafe.com/tutorials...apps-prog.aspx

Aside from that, cache everything that you can to cut down on database
usage. Failing that, you need to consider a different host. I've used
CrystalTech with excellent results, and also gate.com with good results
and
few restarts.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder(BETA): http://www.blogmetafinder.com

"jld" wrote:
>Hi,

I developed an asp.net based eCommerce Website for a client and it is
hosted at discount asp.

The site is quite interactive, queries a database a lot and uses
ajax.asp.net to spice up interactivity.
The service suffers from a lot of restarts since discountasp enforces
a 100mb per worker thread limit and when you top it, the service gets
restarted. When there is a lot of traffic on the site, this happens
almost every other minute and users see an unwelcoming "service
unavailable" quite often.

Now I already tried to strip down memory usage, by eliminating almost
all session objects, by using datareaders instead of datasets and by
by employing a very disconnected, database based "state" architecture,
but I still cannot keep MB usage under 100mb.

So I am about to tell my client that he will need to move to a host,
that does not have such a strict memory policy, maybe a virtual host
on a machine with few users.

But just to double check: how does memory usage on your sites look
like? Could you check in task manager, what asp net uses when you view
a single site/application, and the tell me, together with some info
about the site's complexity?

I would be very glad, to have some numbers, that could tell me, if the
host just is not thought for heavier usage or if I am just doing
something stupid that no one else does.

Jan


Jul 3 '07 #3

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

Similar topics

0
by: marek | last post by:
Hello All, I have a strange bahavior with memory managment by a asp.net worker process. I have an application with a mixed code e.i. managed code wraps unmanaged corespondin functions. I perform...
9
by: Matt Calhoon | last post by:
Hi there, I have specified a aspnet user account to run all .net sites. This account needs access to start a .BAT File (in my global.asax on session start the app needs to execute this bat...
6
by: mark | last post by:
Just wondering if anyone has aspnet process recycling set up in any production environments. Our worker process memory gets out of control after being up for about a day or so and we were thinking...
16
by: JCauble | last post by:
We have a large Asp.net application that is currently crashing our production servers. What we are seeing is the aspnet_wp eat up a bunch of memory and then stop unexpectedly. Does not recycle. ...
7
by: M. Simioni | last post by:
Hi, i'm always auditing ASPNET's account accesses on my webserver, a WIN2K_SP4 + IIS5 + SQLServer2K_SP3a machine. Nearly all the applications work correctly, but i constantly find a message in...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
1
by: Anders | last post by:
Hi I have been given the task to inverstergate why a asp.net 1.1 on windows 2003 worker process is growen to around 700mb somtimes and the restarts it self. The application does use some...
3
by: Kevin | last post by:
Using this: http://msdn2.microsoft.com/en-us/library/3dasc8as(VS.80).aspx as an example I have a question concerning the reuse of objects. In the example 10 instances of the Fibonacci class...
1
by: Kevin | last post by:
(apologies if this is a duplicate posting, but my previous seemed to get lost in the ether...) Using this as an example: http://msdn2.microsoft.com/en-us/library/3dasc8as(VS.80).aspx I have...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.