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

Memory Usage By dllhost.exe Under IIS

Hello.

I'm new to the news group and new to IIS. I'm trying to
help a client deal with memory usage issues in IIS. My
client is running IIS 5.0 on a Win2K box and is running
ASP scripts that both talk to an Active X Control written
in C++ as well calls directly into the ADO layer.

It seems that basic interaction with the ADO layer and
Active X Control causes the dllhost.exe process to use
more and more memory until the machine becomes wedged. It
seems that removing the interaction with the database and
with the Active X control helps significantly, but not
completely. I can make memory usage go up indefinitely
just by concatenating strings together in a loop. Once
the loop ends, the memory doesn't come back, even after 15
or 20 minutes of idle time. Switching to VB Script from
Java Script doesn't seem to help.

I'd like to know if there's a book out there or a
reasonably up to date web site that discusses best coding
practices for making database calls via ADO from IIS
approved scripting languages. My client's ASP scripts
seem to be matching the examples I've found online. The
scripts close connections after each call; the scripts set
all record set and connection objects to nothing/null when
complete.

I'd like to know also what constitutes reasonable ADO
usage from an ASP script. One of my client's pages
performs an outer query and then varying nested queries
while processing the records of the outer loop. The result
is potentially thousands of ADO queries. Trying to
display this page in particular can easily eat up 300
megabytes and that memory never comes back.

I'd like to know also if it's enough to set a handle to an
Active X Control to nothing/null when one finishes with it
in the scripting language when one finishes with it or if
something additional is required to ensure that its
resources are reclaimed.

I've spent a lot of time searching on Google for others
that may have run into this and found some horror stories
as well as success stories. This leads me to believe that
we probably have either a configuration problem or our
scripts are missing some key step or steps for releasing
resources.

Thanks for your help,

David Swift
Jul 19 '05 #1
1 5991
My client was using the wrong ODBC driver. Once we
started using the Microsoft ODBC driver for Oracle the
majority of the problems went away.
-----Original Message-----
Hello.

I'm new to the news group and new to IIS. I'm trying to
help a client deal with memory usage issues in IIS. My
client is running IIS 5.0 on a Win2K box and is running
ASP scripts that both talk to an Active X Control written
in C++ as well calls directly into the ADO layer.

It seems that basic interaction with the ADO layer and
Active X Control causes the dllhost.exe process to use
more and more memory until the machine becomes wedged. Itseems that removing the interaction with the database and
with the Active X control helps significantly, but not
completely. I can make memory usage go up indefinitely
just by concatenating strings together in a loop. Once
the loop ends, the memory doesn't come back, even after 15or 20 minutes of idle time. Switching to VB Script from
Java Script doesn't seem to help.

I'd like to know if there's a book out there or a
reasonably up to date web site that discusses best coding
practices for making database calls via ADO from IIS
approved scripting languages. My client's ASP scripts
seem to be matching the examples I've found online. The
scripts close connections after each call; the scripts setall record set and connection objects to nothing/null whencomplete.

I'd like to know also what constitutes reasonable ADO
usage from an ASP script. One of my client's pages
performs an outer query and then varying nested queries
while processing the records of the outer loop. The resultis potentially thousands of ADO queries. Trying to
display this page in particular can easily eat up 300
megabytes and that memory never comes back.

I'd like to know also if it's enough to set a handle to anActive X Control to nothing/null when one finishes with itin the scripting language when one finishes with it or if
something additional is required to ensure that its
resources are reclaimed.

I've spent a lot of time searching on Google for others
that may have run into this and found some horror stories
as well as success stories. This leads me to believe thatwe probably have either a configuration problem or our
scripts are missing some key step or steps for releasing
resources.

Thanks for your help,

David Swift
.

Jul 19 '05 #2

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

Similar topics

8
by: rbt | last post by:
Would a Python process consume more memory on a PC with lots of memory? For example, say I have the same Python script running on two WinXP computers that both have Python 2.4.0. One computer has...
2
by: tomvr | last post by:
Hello I have noticed some 'weird' memory usage in a vb.net windows app The situation is as follows I have an app (heavy on images) with 2 forms (actually there are more forms and on starting...
2
by: Jarvis | last post by:
I've made a testing program to test the memory usage of some Data Forms. I create a MDI parent form with one single MDI child form, which is a Data Form generated by .NET Data Form Wizard. To...
3
by: Ian Taite | last post by:
Hello, I'm exploring why one of my C# .NET apps has "high" memory usage, and whether I can reduce the memory usage. I have an app that wakes up and processes text files into a database...
7
by: George Gre | last post by:
Hi, I wrote a c# programme that listens to incoming TCP requests and services them. This programme is meant to be running as long as the server its installed on is running. So we assume for...
20
by: Philip Carnstam | last post by:
How come .Net applications use so much memory? Every application I compile uses at least 10 MB of memory, even the ones consisting of only a form and nothing else. If I minimize them though the...
4
by: RH | last post by:
Hi, I am building a windows application that has a feature that retrieves a set of records when a button is clicked. When the records are being retrieved I experience a complete system...
8
by: Greg Merideth | last post by:
I've written a basic windows service to provide some helper xml functions for my web methods and even thou the service is only about 1k lines long with 1 timer, its mem usage is 10m and its vm mem...
2
by: jld | last post by:
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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:
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
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...

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.