Solved

DLLHost.exe pushing CPU to 50-100%

Posted on 2002-05-19
10
487 Views
Last Modified: 2012-08-13
This is a website running for 2 years with VB ActiveX DLLs COM copmponents. From one day to another, after having running fine for 2 years, it became to be unstable. From times to times (about 5 times a day), it would either be very slow, or returning a 500 IIS Internal Error. When this happen, the DLLHost.exe referenced by the concerned website uses 50% of the CPU (it never went above 10% before we begin to have the problem), and sometime just 100% consuming all machine ressources.

I guess that could either be an OS issue (maybe security patches that has this secondary effect) or a strange leak or pb with my DLLs that sundenly wake-up, but those have been running fine before for a long time... Another important point is that the website had no significant activity increase at the time this begun to happen.

Thanks in advance for your useful help :o)
0
Comment
Question by:partner0
  • 5
  • 4
10 Comments
 
LVL 17

Accepted Solution

by:
inthedark earned 200 total points
Comment Utility
Here a few thoughts which you probably checked already:


1) First check that you have space on your windows drive. Sometimes sites go down cos nobody deletes the log files.

2) Do you keep a track of handles and available memory?  If the handles keep going up you could have a bug on an ASP page.

3) VB ActiveX + SQL server can only service about 4 hits per second, if you get more your server will start to hang - but you say no increase in activity.

4) If there is an error on an ASP page you should be carefully about using a response to another ASP page. You can send the client in a redirect loop where a page keeps redirecting to itself.

5) Also error traps in ASP pages or ActiveX can create this fault.

Example of problem:


On error goto ErrorTrap

do some code

...
...

ErrorTrap:

do some code ' which cause fault will cause loop

Change error trap code like this:

ErrorTrap:
  StoreError = Err. Number
  StoreSetails = Err. Description
  On error Resume Next ' stop another error causing a fault.

6) Another classic cause of loss of resources is to have a bug in the global.asa Session_OnEnd event which causes a loop.  As more sessions time-out it gets worse.  If you try to shut down IIS the system crashes.

7) Make sure your browser settings (Tools-Options-Advanced) for "Show friendly HTTP error messages" is not checked - if it is you may not see the full error message.

8) Check the Application/System event logs.

Bust of luck - my heart always sinks when I see internal server error 500.





0
 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
Hi partner0,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept inthedark's comment(s) as an answer.

partner0, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Author Comment

by:partner0
Comment Utility
To close it...
0
 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
partner0, Please read this:
    http://www.experts-exchange.com/Community_Support/CleanUp/cmtyQuestAnswer.jsp#3

It is quite unacceptable to dump a grade of 'C' on an expert except in vary narrow set of circumstances.

inthedark,
If you post to CS, a Moderator will examine this question and may change the grade.
-- Dan
0
 

Author Comment

by:partner0
Comment Utility
OK, then change the grade.

The point is that I accepted answer to close the question as you requested. The answer is kind of very generic and none of the mentioned 8 points has something to do with my problem.

Plus, C grade is called Average. I think average is not even adequate for what is the answer to me...

Now my point is certainly not blaming anybody or make what I thought to be a good action being a bad one. So please change the grade if needed.

Kind regards,
Francois.

PS: If "It is quite unacceptable to dump a grade of C on an expert" Then either C should not be called "Average" or it should be removed!
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
>> The answer is kind of very generic and none of the mentioned 8 points has something to do with my problem.

That happens quite often because the Expert comes into a problem 'cold' and has no means to diagnose the problem other than the information that you provide.  The Expert cannot read your mind.  If you tell him very little about the problem, he will, of necessity, be very generic in his comments.  THEREFORE you must respond to each comment and provide additional information.  If you do that, you will get very specific help that will lead you to a solution for your particular problem.    

>>either C should not be called "Average" or it should be removed!

I agree that the label of 'Average' should be changed.  The fact that it is the lowest available grade is a sort of clue to what it really means, and the Site Guidelines make that quite clear.

-- Dan
0
 

Author Comment

by:partner0
Comment Utility
I also posted this same question in the Win 2000 forum and led the discussion there cause comments posted there made sense. I insist this comment does not make sense at all and has absolutly no value to solving my problem. The only thing I could have responded point by point is either

"This is out of purpose"

or

"Obviouly I already verified this and it has no link with my problem"

I don't think this would have help... I'm sorry, I cant say this is a good or excelent answer... Now I do understand "Average" means "Very Bad" according to your policies, and therefore maybe "Good" means "Average" in which case a B grade would be fine (and even well payed ;o) ) I supose.

I repeat myself: If you think the grade should be changed, please go ahead.
0
 

Author Comment

by:partner0
Comment Utility
PS: Average means Average, please don't tell me there are clues so that Average means Very Bad!
0
 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
>> please don't tell me there are clues so that Average means Very Bad!

At McDonalds, you can order these three sizes of CocaCola.  
     1) Extra Large !!
     2) Large !
     3) Medium
Which is the smallest?  Does "Medium" mean "Small"?   Yes, it does.  Can you take a clue from that?  The other clue is at the link I showed you which is at the bottom of every page.
0
 

Author Comment

by:partner0
Comment Utility
OK, I'm too stupid...

BTW, in my contry, you can order small coke at the Mac Donalds.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now