Memory Usage
-
Hi, I developed an asp.net based eCommerce Website for a client of mine 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, 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 to double check things: how does memory usage on your sites look like? Could you check in Taskmanager, what asp net uses when you view a single site, 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 it's really me, or if the host just is not thought for heavier usage. Jan
-
Hi, I developed an asp.net based eCommerce Website for a client of mine 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, 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 to double check things: how does memory usage on your sites look like? Could you check in Taskmanager, what asp net uses when you view a single site, 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 it's really me, or if the host just is not thought for heavier usage. Jan
Jan my aspnet_wp.exe takes up 86,500 K when it isn't being used. So 100MB is easy to eat up, nothing you can do about it. One thing to double check is to make sure that debug="false" in the web.config for that will cut down on ram. Also since it is an ecommerce site, are you storing images on the server? Make sure they are compressed jpgs and not gifs. Also, when I code I use the Using keyword whereever possible, it calls an objects dispose method where available. One more thing is not to use arrays. They are inneficient. Generic Lists do much better if you can use them instead.
I didn't get any requirements for the signature