473,406 Members | 2,404 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,406 software developers and data experts.

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 1481
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)paldino=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.NETFrameworkSDKv1.1/cpguidenf/html/cpconimplementingdisposemeth
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 "aduseserver", 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**************@TK2MSFTNGP10.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.getstring(,,"</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**************@exisconsulting.com> wrote
in message news:op**************@msnews.microsoft.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)paldino=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
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...
1
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...
7
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...
8
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
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
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...
1
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...
2
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...
10
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 =...
17
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.