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

How to find out source of dllhost.exe

I've got a Windows 2000 server running with about 50 websites on it, all
running ASP scripts. I've noticed that the servers CPU usage gets up 100%
sometimes, caused by dllhost.exe, which I'm certain is a hanging ASP script
somewhere on the box. Probably an on error resume next line that doesn't go
anywhere when an error is an encountered. Anyways, I'm not sure if there's
a way to isolate the website where its originating, or even the page this
problem is originating from. Is there a way to do this? Any help would be
appreciated, as this problem is slowing down the server for everyone. TIA
for any help/advice.

Rollin
Jul 19 '05 #1
11 14757
"Rollin 4 Eva" <te**@test.com> wrote in message
news:o_********************@giganews.com...
I've got a Windows 2000 server running with about 50 websites on it, all
running ASP scripts. I've noticed that the servers CPU usage gets up 100%
sometimes, caused by dllhost.exe, which I'm certain is a hanging ASP script somewhere on the box. Probably an on error resume next line that doesn't go anywhere when an error is an encountered. Anyways, I'm not sure if there's a way to isolate the website where its originating, or even the page this
problem is originating from. Is there a way to do this? Any help would be appreciated, as this problem is slowing down the server for everyone. TIA
for any help/advice.


Go into Component Services MMC. Click the "Status View" button in COM+. It
will show you the PID for each DllHost process.

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #2
> Probably an on error resume next line that doesn't go
anywhere when an error is an encountered.
No, that wouldn't cause it... on error resume next doesn't "go anywhere"...
it just ignores the line that causes the error and moves to the next line
(hence the "resume next" part).
Anyways, I'm not sure if there's
a way to isolate the website where its originating, or even the page this
problem is originating from. Is there a way to do this? Any help would be appreciated, as this problem is slowing down the server for everyone. TIA
for any help/advice.


I think you'd have to use trial and error... move all sites into isolated
and you should be able to track it down that way (since each site would have
its own dllhost.exe).

A
Jul 19 '05 #3

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl...
Probably an on error resume next line that doesn't go
anywhere when an error is an encountered.
No, that wouldn't cause it... on error resume next doesn't "go

anywhere"... it just ignores the line that causes the error and moves to the next line
(hence the "resume next" part). well what if the error happens when I try to open up a recordset (which
mostly all the pages that use a dbase connection do)? And what if the next
line is do while not rsTemp.EOF?
Wouldn't that cause an endless loop?
Anyways, I'm not sure if there's
a way to isolate the website where its originating, or even the page this problem is originating from. Is there a way to do this? Any help would be
appreciated, as this problem is slowing down the server for everyone. TIA for any help/advice.


I think you'd have to use trial and error... move all sites into isolated
and you should be able to track it down that way (since each site would

have its own dllhost.exe). Not sure what you mean by isolated. Running IIS on Windows 2000 Server BTW

Thanks.
Rollin

A

Jul 19 '05 #4
In news:z9********************@giganews.com,
Rollin 4 Eva <te**@test.com> typed:
: "Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
: news:up**************@TK2MSFTNGP09.phx.gbl...
::: Probably an on error resume next line that doesn't go
::: anywhere when an error is an encountered.
::
:: No, that wouldn't cause it... on error resume next doesn't "go
:: anywhere"... it just ignores the line that causes the error and
:: moves to the next line (hence the "resume next" part).
: well what if the error happens when I try to open up a recordset
: (which mostly all the pages that use a dbase connection do)? And
: what if the next line is do while not rsTemp.EOF?
: Wouldn't that cause an endless loop?

Yes, but the On Error Resume Next would not have *any* effect on that. An
endless loop is not incorrect in and of itself, although, in most cases,
highly undesirable.

[snipped..the rest]

Don Verhagen
Jul 19 '05 #5
> well what if the error happens when I try to open up a recordset (which
mostly all the pages that use a dbase connection do)? And what if the next line is do while not rsTemp.EOF?
What if? Did you try it?
Wouldn't that cause an endless loop?


Again, did you try it?
Jul 19 '05 #6
Sounds like you have got the Welchia Worm !!! I had the same problem myself.

If you do a search you will find more than one instance of DLLHOST.EXE.

The culprit resides in WinNT/System32/Wins/Dllhost.exe

You will not be able to delete this, change privaliges or anything.

You will have to go to Sophos (or Norton the choice is yours), and download
a little .exe file to delete the worm.

Then go to Microsoft.com and do a search on IISLockd.exe (this is an IIS
lock down tool)
You need this as the worm uses an RPC on the WEBDAV element in IIS to upload
the worm to your machine.
I hope this helps
Stuart

You can go to Sophos and download a little .exe to clear it.
"Rollin 4 Eva" <te**@test.com> wrote in message
news:o_********************@giganews.com...
I've got a Windows 2000 server running with about 50 websites on it, all
running ASP scripts. I've noticed that the servers CPU usage gets up 100%
sometimes, caused by dllhost.exe, which I'm certain is a hanging ASP script somewhere on the box. Probably an on error resume next line that doesn't go anywhere when an error is an encountered. Anyways, I'm not sure if there's a way to isolate the website where its originating, or even the page this
problem is originating from. Is there a way to do this? Any help would be appreciated, as this problem is slowing down the server for everyone. TIA
for any help/advice.

Rollin

Jul 19 '05 #7
Yes I tried it. It causes the server to lock up. The on error resume next
causes an endless loop because the recordset never reaches an .EOF status.
The initial question had nothing to do with the code. I'm aware of what's
causing the problem, just unaware of how to isolate the website which its
coming from.

"Aaron Bertrand [MVP]" <aa***@TRASHaspfaq.com> wrote in message
news:#E**************@TK2MSFTNGP09.phx.gbl...
well what if the error happens when I try to open up a recordset (which
mostly all the pages that use a dbase connection do)? And what if the

next
line is do while not rsTemp.EOF?


What if? Did you try it?
Wouldn't that cause an endless loop?


Again, did you try it?

Jul 19 '05 #8
> Yes I tried it. It causes the server to lock up. The on error resume
next
causes an endless loop because the recordset never reaches an .EOF status.


Can you show code that reproduces this? You understand that the following
loop will never even be entered if eof is false, right?

do while not rs.eof

Jul 19 '05 #9

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:eI**************@TK2MSFTNGP09.phx.gbl...
Yes I tried it. It causes the server to lock up. The on error resume next
causes an endless loop because the recordset never reaches an .EOF

status.
Can you show code that reproduces this? You understand that the following
loop will never even be entered if eof is false, right?

do while not rs.eof


OK try running this code on your server and tell me this doesn't create an
endless loop.
<%@ Language=VBScript %>
<% Option Explicit %>
<% Response.Buffer = true %>
<!--#include file="/includes/connection.inc.asp" -->
<%
on error resume next
dim rsTemp

set rsTemp = server.CreateObject("ADODB.RECORDSET")
set rsTemp = conn.execute("some sql syntax that does nothing")

do while not rsTemp.EOF
response.Write("TEST<BR>")
rsTemp.MoveNext
loop

rsTemp.Close
set rsTemp = nothing
conn.close
set conn = nothing
%>

You have to take out the include and set up your own connection of course.
EOF status is never reached because the sql syntax isn't proper.
Jul 19 '05 #10
Rollin 4 Eva wrote:
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:eI**************@TK2MSFTNGP09.phx.gbl...
OK try running this code on your server and tell me this doesn't
create an endless loop.
<%@ Language=VBScript %>
set rsTemp = conn.execute("some sql syntax that does nothing")


I'd like to try this but I have no idea what "some sql syntax that does
nothing" means. If you mean to use a statement that raises an error, well,
you would want to detect that error before attempting to loop through a
recordset wouldn't you? Since you are using On Error Resume Next, then it
seems that it would seem logical to use

If err <> 0 then
'handle the error
else
do until rsTemp.EOF
'etc
loop
end if

wouldn't it?

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #11
Well see that's where my problem is. My problem comes from a page that I
wrote in my inefficient/without error handling code writing days. I'm
pretty good about handling errors nowadays, but I find myself chasing the
ghosts of coding past. And considering that there's at least 50 different
websites on the server, I was hoping that there could be an easier way to
find the cause of the error than to manually go through every asp page on
the server and make sure error handling is handled properly.
"Bob Barrows" <re******@NOyahoo.SPAMcom> wrote in message
news:ek*************@TK2MSFTNGP10.phx.gbl...
Rollin 4 Eva wrote:
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:eI**************@TK2MSFTNGP09.phx.gbl...


OK try running this code on your server and tell me this doesn't
create an endless loop.
<%@ Language=VBScript %>
set rsTemp = conn.execute("some sql syntax that does nothing")


I'd like to try this but I have no idea what "some sql syntax that does
nothing" means. If you mean to use a statement that raises an error, well,
you would want to detect that error before attempting to loop through a
recordset wouldn't you? Since you are using On Error Resume Next, then it
seems that it would seem logical to use

If err <> 0 then
'handle the error
else
do until rsTemp.EOF
'etc
loop
end if

wouldn't it?

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Jul 19 '05 #12

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

Similar topics

5
by: Richard Wesley | last post by:
I am using coverage.py to run my unit test suite to check for missing tests. It mostly works, but for some mysterious reason, some of the files can't be found because they are not in the same...
0
by: Larry Morris | last post by:
Something has happened to my project. As I step through the code, a Find Source dialog opens up. For some reason VS can't find the source I'm stepping through. The routine it's calling is within...
2
by: Middletree | last post by:
This is an ASP-built Intranet app, so I have saved off a static version of the page for reference, and it is located at http://www.middletree.net/err.htm and the page to compare it to is...
3
by: Bruce D | last post by:
I'm new to .NET and I have a error that is coming up but it's not telling me where the error is coming from (no file). Is that because I'm doing something wrong...or is it a type of error that has...
7
by: Jonathan Wilson | last post by:
I can find source code in output.c for all the format specifications except for the workings of %e, %f and %g (and also %E and %G). Where is the source code for these functions? If it is not...
7
by: sandy | last post by:
hello can anbody help me in getting source code for tcp/ip stack in ANSI C or source code for http protocol
1
by: mimenko | last post by:
Hello, I like to play with letters, and I try to find some websites on which I could find source codes of word games, like crossword, scrabble, anagrams, word utilities,... , and other games but...
0
by: Paul | last post by:
Greetings: I have been trying to find source code for a Baccarat card game (C++ or Basic, but preferably the former). My reason for this is wanting to experiment with possible Baccarat card...
2
by: Deniz Dogan | last post by:
Hello. I am writing a program which has to send a signal (SIGUSR2 F.Y.I.) to a certain process, which I only know the name of, i.e. I need the PID for that process. How can I do this in C or...
2
by: satinderjeetkaur | last post by:
my question is: consider a discrete memoryless source with source probabilities{0.30,0.25,0.20,0.15,0.10}.find the source entropy,H(X)? please try to answer the question within 2-3...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
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,...
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.