473,811 Members | 3,004 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dot bet Sql and memory consumption

Recently we have been looking at converting our systems over to Dot net.

What has been of concern is the excessive amount of resources that a C# SQL
web page requires as apposed the ASP/SQL

We have recently moved an ASP page to C# this page that creates a sizable
report.

Under WK2000/IIS5 ASP SQL2000 the page requires about 250 meg of RAM

The same page as C# on WK2000/IIS5 and SQL2000 rockets over 500 meg!!

Is this normal does dot net require significantly more RAM to operate than
Classic ASP.
How much RAM does an WK2000 server running Dot Net require (don't say the
more the merrier). I ask this because some of the pages will not display
because the page required more than 60% of the RAM. I've never had this
problem with Classic ASP and I don't know if I can ever get the amount of
RAM into a server to satisfy C#.
Any Ideas, pointers would be of great help.

Marcel
Nov 15 '05 #1
3 1501
Marcel,

First, I would take a very, very good look at how the page was converted. It is very possible that you have not converted elements over correctly (and if the page requires 250MB to process, I would say that you are doing something wrong to begin with) and that they should be addressed first before you look at the hardware requirements are.

Anyways, your web machine probably has more than enough memory to handle ASP.NET (I'm guessing, but if you can run a 250 MB ASP page, then I don't think that ASP.NET is a problem).

Also, you can change the amount of memory that ASP.NET allows to be consumed by the ASP.NET worker process before it is shut down. In the web.config file for the application, you can set the memoryLimit attribute on the processModel element to set the threshold.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- nick(d0t)paldin o=At-exisconsulting' dot|com

On Mon, 6 Oct 2003 16:24:31 +1000, marcel <No*****@nospam .com.au> wrote:
Recently we have been looking at converting our systems over to Dot net.

What has been of concern is the excessive amount of resources that a C# SQL
web page requires as apposed the ASP/SQL

We have recently moved an ASP page to C# this page that creates a sizable
report.

Under WK2000/IIS5 ASP SQL2000 the page requires about 250 meg of RAM

The same page as C# on WK2000/IIS5 and SQL2000 rockets over 500 meg!!

Is this normal does dot net require significantly more RAM to operate than
Classic ASP.
How much RAM does an WK2000 server running Dot Net require (don't say the
more the merrier). I ask this because some of the pages will not display
because the page required more than 60% of the RAM. I've never had this
problem with Classic ASP and I don't know if I can ever get the amount of
RAM into a server to satisfy C#.
Any Ideas, pointers would be of great help.

Marcel

Nov 15 '05 #2
Some hints:
1. Since Dataset works with disconnected recordsets it is supposed to keep
the recorsets into memory. If you're working with it than do it smart. Make
it an Application level object and share it among all users as a in-memory
database. If you'll use the Dataset at Session level, or worst, at demand
(page level), all you'll obtain will be a lot of objects that have to be
garbage collected...
2. Remember, the garbage collector does not free objects in order to achieve
performance so all the objects will remain for a while in the pool. You
can't control the GC, you can only notify it that there are disposable
objects and have it run sometime with GC.Collect but that "give your
application some direct control over the garbage collector" as MSDN says.
Anyhow implementing "Dispose" can clean-up of objects before GC frees the
object; see:
ms-help://MS.NETFramework SDKv1.1/cpguidenf/html/cpconimplementi ngdisposemeth
od.htm in MSDN.
Frankly, GC is smarter than 90% of the programmers that are releasing the
resources; it was designed for that, maybe is not perfect but it does not
have bugs...
3. Another issue is, supposing you're not using the Dataset: does a "Select
* from hugeTable" to create an ASP page is a good approach? All the 10.000
records will be displayed? Does anyone need or can read a page that contains
10.000 records? Or, at page creation you'll select only 100 of them. Then
improve your SQL statements in order to return only the 100 records,
remember, you're not using ADO with "aduseserve r", you're using ADO.Net with
disconnected recordsets!
4. Anyhow the memory in use by a .Net application will be larger than the
one needed for a classic ASP application, and will try to use as much as
possible memory in order to improve the performance (to keep a pool of
unused objects ready to be delegated when a new instance of that type is
required). It's your call to find the balance.
--
Horatiu Ripa
"marcel" <No*****@nospam .com.au> wrote in message
news:OD******** ******@TK2MSFTN GP10.phx.gbl...
Recently we have been looking at converting our systems over to Dot net.

What has been of concern is the excessive amount of resources that a C# SQL web page requires as apposed the ASP/SQL

We have recently moved an ASP page to C# this page that creates a sizable
report.

Under WK2000/IIS5 ASP SQL2000 the page requires about 250 meg of RAM

The same page as C# on WK2000/IIS5 and SQL2000 rockets over 500 meg!!

Is this normal does dot net require significantly more RAM to operate than
Classic ASP.
How much RAM does an WK2000 server running Dot Net require (don't say the
more the merrier). I ask this because some of the pages will not display
because the page required more than 60% of the RAM. I've never had this
problem with Classic ASP and I don't know if I can ever get the amount of
RAM into a server to satisfy C#.
Any Ideas, pointers would be of great help.

Marcel

Nov 15 '05 #3
the file is a simple report which displays 13,000 clients that use the
system in the Dot Net I and doing a data bind to a grid control

on the ASP page its a straight
recordset.getst ring(,,"</td><td>","</td></tr><tr><td>","& nbsp;") "which
dosent seem to work in C#"

the ASP page displays in about 60 seconds where as dot net crashes out.

Whilst I know that returning this amount of information is asking for
trouble but what concerns me is that Dot Net can't handle something that a
lesser technology can, plus I have other reports that crunch quater of a
million records a week in the a 1500 line item reports and I have no
confidence that Dot net can handle it. Again I don't think allocating more
ram to the process is the point .
"Nicholas Paldino [.NET/C# MVP]" <ni************ **@exisconsulti ng.com> wrote
in message news:op******** ******@msnews.m icrosoft.com...
Marcel,

First, I would take a very, very good look at how the page was converted. It is very possible that you have not converted elements over correctly (and
if the page requires 250MB to process, I would say that you are doing
something wrong to begin with) and that they should be addressed first
before you look at the hardware requirements are.
Anyways, your web machine probably has more than enough memory to handle ASP.NET (I'm guessing, but if you can run a 250 MB ASP page, then I don't
think that ASP.NET is a problem).
Also, you can change the amount of memory that ASP.NET allows to be consumed by the ASP.NET worker process before it is shut down. In the
web.config file for the application, you can set the memoryLimit attribute
on the processModel element to set the threshold.
Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- nick(d0t)paldin o=At-exisconsulting' dot|com

On Mon, 6 Oct 2003 16:24:31 +1000, marcel <No*****@nospam .com.au> wrote:
Recently we have been looking at converting our systems over to Dot net.

What has been of concern is the excessive amount of resources that a C# SQL web page requires as apposed the ASP/SQL

We have recently moved an ASP page to C# this page that creates a sizable report.

Under WK2000/IIS5 ASP SQL2000 the page requires about 250 meg of RAM

The same page as C# on WK2000/IIS5 and SQL2000 rockets over 500 meg!!

Is this normal does dot net require significantly more RAM to operate than Classic ASP.
How much RAM does an WK2000 server running Dot Net require (don't say the more the merrier). I ask this because some of the pages will not display
because the page required more than 60% of the RAM. I've never had this
problem with Classic ASP and I don't know if I can ever get the amount of RAM into a server to satisfy C#.
Any Ideas, pointers would be of great help.

Marcel


Nov 15 '05 #4

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

Similar topics

6
1930
by: Andy | last post by:
Along with many others I've noticed the large amount of memory that can be taken up by the aspnet_wp.exe. I've found that I can better control and limit this memory consumption by including a GC.Collect() in the Application_EndRequest() event handler in the Global.asax file. Whilst this appears to help my memory consumption issues I've also read that forced GC.Collect() can be inefficient. Assuming that I don't see any adverse effects...
1
1365
by: anandav2001 | last post by:
Hello developers, I have created an executable(system tray application) in VS.net 2003 using VB.net. My app was taking 30 MB memory(since some web services call are there which happens for each 10 sec checking internet is available or not). Inorder to reduce huge memory consumption, what i used is Public Class MemoryManagement Private Declare Function SetProcessWorkingSetSize Lib
7
6939
by: Salvador | last post by:
Hi, I am using WMI to gather information about different computers (using win2K and win 2K3), checking common classes and also WMI load balance. My application runs every 1 minute and reports the status of the machines. Upon we follow the .NET object lifetime recommendations the application is constantly consuming more memory! The problem is on the ManagementObjectSearch, upon we Dispose the object it seems that is not releasing the...
8
2824
by: Raja Gregory | last post by:
Hi All, I have developed a server application in C#. While running this application, it is not running more than 30 minutes due to memory leak. Could you tell me what will be the problem?
9
5206
by: Adam Right | last post by:
Hi, Anyone suffers from the high memory usage of C# in windows applications? Is there a solution for that problem? Thanks...
12
8701
by: Tony | last post by:
Hi expert, I installed DB2 v8.2 server on Solaris 9 box. When I connect to DB2 using control centre or other applications(except command line), around 12 db2sysc processes pop up and each one consumes more than 2G memory(total 30G memory). The server only has 8G physical memory, so DB2 costs too many memory resources. I tried to reduce the appgroup_mem_sz and app_ctl_heap_sz, but it didn't work. What else can I do?
1
2330
by: buu | last post by:
It's strange to me, but, create a dictionary and fill it with 1 mil. of some objects. then, see the memory consumption (arised, of course). then, clean the dictionary.... memory consumption is the same... write MyDic=nothing memory consumption is still the same force GC to collect... memory consumption is little bit smaller
2
2293
by: Jonas Maurus | last post by:
Hello everybody, I'm pondering the following problem: I want to write a Python program that receives messages via SMTP and stores them in a dict or an array. For my purposes it would be important that all received mail would be kept in RAM and not cached out to disk. If a new message comes in that can't fit in the allocated memory, a number of old messages would be discarded.
10
2315
by: deciacco | last post by:
I'm writing a command line utility to move some files. I'm dealing with thousands of files and I was wondering if anyone had any suggestions. This is what I have currently: $arrayVirtualFile = array( 'filename'=>'filename', 'basename'=>'filename.ext', 'extension'=>'ext', 'size'=>0,
17
7974
by: Cesar | last post by:
Hello people. I'm having a Winform app that contains a webbrowser control that keeps navigating from one page to another permanentrly to make some tests. The problem I'm having is that after a while, the application is using more than 100 or 150 Mb in RAM, and if I let it continue, it can leave the system without memory. I've been watching in some pages that other people has the same problem with this control when keep navigating for a...
0
9734
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9607
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
10662
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
10398
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...
0
10138
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5567
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
5702
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3881
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3028
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.