Google Answers Logo
View Question
 
Q: How do you detect a hung DLL? ( No Answer,   3 Comments )
Question  
Subject: How do you detect a hung DLL?
Category: Computers > Software
Asked by: buyoguru-ga
List Price: $10.00
Posted: 18 Dec 2002 14:40 PST
Expires: 17 Jan 2003 14:40 PST
Question ID: 126636
We are certain that a vendor DLL is getting hung that takes down their
application. We cannot figure out how to tell if a DLL is hung
(stopped in code, running in a endless loop, etc). Is there a way to
detect if a DLL is running amok? We see it loaded using MSINFO.EXE but
it doesn't show any more than that. This is running on a Win2000
Server with all the latest Service Packs and HotFixes. The application
is a third party web based e-commerce package.

Request for Question Clarification by answerguru-ga on 18 Dec 2002 14:45 PST
Hi there,

Can you define "hung"? Do you get an error message or see programs
closing? Or is there just a pause in activity every so often that goes
away after a little while?

answerguru-ga

Clarification of Question by buyoguru-ga on 18 Dec 2002 16:10 PST
Hung means that the application stops working and only those users
that use that application are affected. The Web App uses several DLLs
as provided by the Vendor. Once in a great while the App (Web Stores)
stops working although everything seems to be OK; i.e the Data Base,
the Server, other Web pages, etc. So the OS and Data Base and other
tools seem to be OK. After beating this extensively and having a good
knowledge of Software and Hardware engineering, my only conclusion is
that a DLL created by the Vendor and used by the Users of the
E-Commerce store gets hung, bringing everything to a stop. My probblem
is identifying that the DLL is "hung" and which DLL (the store app has
several running).

Clarification of Question by buyoguru-ga on 18 Dec 2002 16:17 PST
In addition, there are no error messages and no logs (including the
System and App Logs). Also, we have never seen it kick back on
although we typically react quickly when this happens because we have
many screaming customers calling and emailing so we never had the
chance past 30 minutes or so to see if the App starts to work again.
From my 20+ years of software development and systems management, this
is usually an indication that a process is in a loop or at an impasse,
maybe due to a system level error. Since these are shared DLLs, it is
logical that if the DLL gets "hung", all users of that DLL are also
hung.

Request for Question Clarification by answerguru-ga on 18 Dec 2002 18:50 PST
I agree, from my experience that type of problem is usually present in
this type of situation. However, without any error logs I have not
come across any ways to detect which DLL is faulty. Of course, other
researchers may have insights that could help you so you may want to
let this question sit for a while..

answerguru-ga
Answer  
There is no answer at this time.

Comments  
Subject: Re: How do you detect a hung DLL?
From: mathtalk-ga on 18 Dec 2002 19:49 PST
 
It sounds like a problem that needs to be addressed by the vendor, one
way or the other.  What a DLL implements might be germane to
diagnostic techniques, ie. is it an ordinary DLL, or does it implement
COM interfaces?  You describe it as a "shared" DLL, but this is not
really a clear description.  From the surrounding discussion of "Web
stores" and "E-commerce" one might guess that the DLL is the
implementation of an ASP/Webclass project in VB 6.0.  Without knowing
more it's hard to suggest a way to determine whether the application
or the DLL is at fault.

If the DLL were in an infinite loop, then the Task Manager would
almost surely show the excess CPU cycles as being consumed by the
application.  You don't mention this, however, which leads me to think
that the application may be unable to allocate threads, database
connections, or some other kind of critical resource.

Despite not being able to diagnose the problem on the vendor's behalf,
I would certainly try to have them address the issue.  Depending on
their size, they may have previously diagnosed the problem for another
customer, and unless they are comparable in size to Microsoft, they
probably value your opinion of them and their product.

regards, mathtalk-ga
Subject: Re: How do you detect a hung DLL?
From: buyoguru-ga on 18 Dec 2002 21:11 PST
 
I agree and appreciate your thoughts. The app does not show in the
Task Manager; I wish it did for the reasons you pointed out. If you go
to MSINFO.EXE, Software > Loaded Modules, you see several of the
Vendors DLLs loaded and running. However MSINFO does not tell you the
resources that the process is utilizing. If nothing else, this tells
me that I know as much as anyone else and have no where to go with the
problem but back to the Vendor who may be reluctant or at least
critical of the thought that this provokes. They are a small/medium
size vendor.
Subject: Re: How do you detect a hung DLL?
From: thmoje-ga on 20 Dec 2002 15:32 PST
 
Note that a dll, can hang in two ways. 

Endless loop which means it will use ressources from the CPU, and in
worst case all CPU ressources.

Stuck in code, in which case it does not use CPU ressources, but stops
responding.

You can download Faber Toys from
http://www.faberbox.com/fabertoys.asp?action=download (Freeware) and
watch the vendors DLLs.

Note that if the application runs within IIS on windows 2000 it might
be a problem MTS/COM+ not being able to running the application. Use
the windows MTS or COM+ tools see how the dll is configured and/or how
it runs as well as set up logging.

TMJ

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy