DLLHost.exe pushing CPU to 50-100%

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)
Who is Participating?
inthedarkConnect With a Mentor Commented:
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



do some code ' which cause fault will cause loop

Change error trap code like this:

  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.

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
partner0Author Commented:
To close it...
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

partner0, Please read this:

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

If you post to CS, a Moderator will examine this question and may change the grade.
-- Dan
partner0Author Commented:
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,

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!
>> 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
partner0Author Commented:
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"


"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.
partner0Author Commented:
PS: Average means Average, please don't tell me there are clues so that Average means Very Bad!
>> 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.
partner0Author Commented:
OK, I'm too stupid...

BTW, in my contry, you can order small coke at the Mac Donalds.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.