473,396 Members | 1,967 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,396 software developers and data experts.

IIS - DLHOST.EXE 100% utilisation?


Hi,

I have ASP site running, which has several include files.

This is include file, most used in the HTML files.

<%
Public objDict
Dim ObjFSO, objFolder
Const Folder = "C:\WWW\MRTG\Configuration\Devices\"
Set ObjDict = CreateObject("Scripting.Dictionary")
Set ObjFSO = CreateObject("Scripting.FileSystemObject")
Call ShowSubFolders (objFSO.GetFolder(Folder))
Function ShowSubFolders(Folder)
Count = 0
For Each Subfolder in Folder.SubFolders
MyFoldArray = Split(Subfolder.path,"\",-1,1)
Count = Count + 1
objDict.Add Count, MyFoldArray(5)
Next
Set objFSO = Nothing
'Set objDict = Nothing
Set FolderFile = Nothing
End Function
%>

Within the ASP file I use the objDict as reference for my needed values,
as the code above is used several times can it cause the DLLHOST.EXE to
stall?
TaskMgr shows 100% CPU usage, I know it is caching all VBscript
request/actions....

Can I prevent it or otherway to get my values past to my webpages
without using a database?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
4 1679
How many folders/files do you have in the
"C:\WWW\MRTG\Configuration\Devices\" folder? If it's above 1000 or 2000,
it will take a while. I ended up having to move to a database to make
things quicker (since Windows looses it's mind when it trys to handle more
than 1000 files ;) j/k.)

Try adding a "response.write Subfolder.path" in your For loop, and a
"response.buffer=false" to the top of your code. this will help you with
debugging.

"Jo Becaus" <be******@msn.com> wrote in message
news:OE**************@TK2MSFTNGP11.phx.gbl...

Hi,

I have ASP site running, which has several include files.

This is include file, most used in the HTML files.

<%
Public objDict
Dim ObjFSO, objFolder
Const Folder = "C:\WWW\MRTG\Configuration\Devices\"
Set ObjDict = CreateObject("Scripting.Dictionary")
Set ObjFSO = CreateObject("Scripting.FileSystemObject")
Call ShowSubFolders (objFSO.GetFolder(Folder))
Function ShowSubFolders(Folder)
Count = 0
For Each Subfolder in Folder.SubFolders
MyFoldArray = Split(Subfolder.path,"\",-1,1)
Count = Count + 1
objDict.Add Count, MyFoldArray(5)
Next
Set objFSO = Nothing
'Set objDict = Nothing
Set FolderFile = Nothing
End Function
%>

Within the ASP file I use the objDict as reference for my needed values,
as the code above is used several times can it cause the DLLHOST.EXE to
stall?
TaskMgr shows 100% CPU usage, I know it is caching all VBscript
request/actions....

Can I prevent it or otherway to get my values past to my webpages
without using a database?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #2
http://www.aspfaq.com/2227

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Jo Becaus" <be******@msn.com> wrote in message
news:OE**************@TK2MSFTNGP11.phx.gbl...

Hi,

I have ASP site running, which has several include files.

This is include file, most used in the HTML files.

<%
Public objDict
Dim ObjFSO, objFolder
Const Folder = "C:\WWW\MRTG\Configuration\Devices\"
Set ObjDict = CreateObject("Scripting.Dictionary")
Set ObjFSO = CreateObject("Scripting.FileSystemObject")
Call ShowSubFolders (objFSO.GetFolder(Folder))
Function ShowSubFolders(Folder)
Count = 0
For Each Subfolder in Folder.SubFolders
MyFoldArray = Split(Subfolder.path,"\",-1,1)
Count = Count + 1
objDict.Add Count, MyFoldArray(5)
Next
Set objFSO = Nothing
'Set objDict = Nothing
Set FolderFile = Nothing
End Function
%>

Within the ASP file I use the objDict as reference for my needed values,
as the code above is used several times can it cause the DLLHOST.EXE to
stall?
TaskMgr shows 100% CPU usage, I know it is caching all VBscript
request/actions....

Can I prevent it or otherway to get my values past to my webpages
without using a database?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #3

I tried running the include file straight ahead with Response write and
I get the values.

Once I put it in HTML as include file it hangs?

I did same thing with my first page and works fine with the include
file.

From that page I open new page which runs same include code that past
data to objDict then it hangs?

In the first page on the end it has <%Set ObjDict = Nothing%>

This should clear the dictionary.

Is it just the fact I am using the include file twice?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #4
If you're including the file twice, then you will have duplicate function
definitions within your code, which is probably what is happening to you.
Plus, since the FileSystemObject is natively slow, your code will go
increasingly slower for every time that it is included.

"Jo Becaus" <be******@msn.com> wrote in message
news:eN**************@TK2MSFTNGP12.phx.gbl...

I tried running the include file straight ahead with Response write and
I get the values.

Once I put it in HTML as include file it hangs?

I did same thing with my first page and works fine with the include
file.

From that page I open new page which runs same include code that past
data to objDict then it hangs?

In the first page on the end it has <%Set ObjDict = Nothing%>

This should clear the dictionary.

Is it just the fact I am using the include file twice?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #5

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

Similar topics

11
by: jong | last post by:
I have a problem with an C# application. The application is a 24x7 low volume message processing server. The server has a single thread of processing, running in a continuous loop, for each...
5
by: | last post by:
newbie code -------------------------- #include <iostream> using namespace std; #include <cstring> class aaa {
3
by: Bruce Pullen | last post by:
DB2 7.2 on AIX 5.2. I'm looking to remove redundant indexes. The GET SNAPSHOT FOR ALL command does not appear to include historic data for index utilisation. Can anyone give me any tips...
0
by: Bruce Pullen | last post by:
DB27.2 on AIX 5.2. KEEPDARI = YES MAXDARI = 50 I'm investigating memory paging caused, I believe, by a specific memory-hungry stored procedure and have some questions! 1) Is there a memory...
18
by: P.N. | last post by:
Hi! when i define array (any type) then compilator say that array is to large! ?? i need at least 10.000 instead 100. This is for numeric methods in "C" any sugestion? thx Greetings P
17
by: Mike | last post by:
I'm trying to create a page: Three sections (left, topright and bottomright), each with a heading and scrolling (overflow) content. The size of these sections should be based upon the size of the...
6
by: =?Utf-8?B?VGhvbWFzWg==?= | last post by:
Hi, Is it possible to read a file in reverse and only get the last 100 bytes in the file without reading the whole file from the begining? I have to get info from files that are in the last 100...
2
by: narasimha435 | last post by:
how to find the cpu utilisation ratio in linux and unix
0
by: NagarajanS | last post by:
Hi, i created windows form .when i try to move any other application over my form like a calc form the cpu utilisation moves to 100%. why is this happening? and how i can eliminate that? Regards,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.