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

check server

how do i write a script like this?

if dllhost.exe's cpu usage is greater than 90% then
run iisreset
end if

Thanks in advance,
Aaron
Nov 22 '05 #1
3 1375
If you are using IIS6 you can do this by configuring the application
pool that the website runs under. Simply bring up the application pool
properties page in its MMC and select the Performance tab and set the
appropriate values. It is pretty self explanatory but there is a help
page available for each of the settings. Hope this helps.

Have A Better One!

John M Deal, MCP
Necessity Software

Aaron wrote:
how do i write a script like this?

if dllhost.exe's cpu usage is greater than 90% then
run iisreset
end if

Thanks in advance,
Aaron

Nov 22 '05 #2
WOW! I didn't know IIS 6 has this feature built-in. You saved the day John.
i have a question about
action performed if exceeds max cpu use: if i choose shutdown would it also
restart the server?

is it better to have more worker processes?
"John M Deal" <jo******@necessitysoftware.com> wrote in message
news:OK**************@TK2MSFTNGP15.phx.gbl...
If you are using IIS6 you can do this by configuring the application pool
that the website runs under. Simply bring up the application pool
properties page in its MMC and select the Performance tab and set the
appropriate values. It is pretty self explanatory but there is a help
page available for each of the settings. Hope this helps.

Have A Better One!

John M Deal, MCP
Necessity Software

Aaron wrote:
how do i write a script like this?

if dllhost.exe's cpu usage is greater than 90% then
run iisreset
end if

Thanks in advance,
Aaron

Nov 22 '05 #3
This process doesn't shut down the server, what it does is shut down the
worker processes that are running under the application pool that hit
its maximum. Also the help file says that the application pool "shuts
down and resets" so I believe what happens is the existing individual
worker processes stop accepting requests, try to complete their current
work (dying off if they can't before the time limit is up), the
application pool shuts down, then the application pool comes back up and
starts handling requests again. Do note, if you don't create new
application pools to run each of your web applications in (e.g. you
leave them all in the default) you will see behavior similar to shutting
down the entire server, however if you isolate your web apps into
separate application pools only the mis-behaving web app will shut down
while the others go along their way uninhibited. Hope that helps.

John M Deal, MCP
Necessity Software

Aaron wrote:
WOW! I didn't know IIS 6 has this feature built-in. You saved the day John.
i have a question about
action performed if exceeds max cpu use: if i choose shutdown would it also
restart the server?

is it better to have more worker processes?
"John M Deal" <jo******@necessitysoftware.com> wrote in message
news:OK**************@TK2MSFTNGP15.phx.gbl...
If you are using IIS6 you can do this by configuring the application pool
that the website runs under. Simply bring up the application pool
properties page in its MMC and select the Performance tab and set the
appropriate values. It is pretty self explanatory but there is a help
page available for each of the settings. Hope this helps.

Have A Better One!

John M Deal, MCP
Necessity Software

Aaron wrote:
how do i write a script like this?

if dllhost.exe's cpu usage is greater than 90% then
run iisreset
end if

Thanks in advance,
Aaron


Nov 22 '05 #4

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

Similar topics

1
by: Martin | last post by:
Hello Everybody! I have a POLINE table on a SQL Server 2000 DB. Before I update the record I need to check that either field, STORELOC or WONUM has data on it. If both fields are NULL I would...
3
by: RAD | last post by:
I am working with an evaluation copy of SQL Server 2000 for the first time; my DB experience lies with MS Access. I have a simple table in SQL Server (tblCompany) that has a field called...
2
by: Nuno Magalhaes | last post by:
How to check for a closed http socket without losing any data? (MSDN says to send something to server). Somewhere in my code (after sending the http header in plain text) I'm doing a loop with:...
6
by: test2000 | last post by:
Hello I'm trying to write a javascript that checks if a server/host is available. To be more precice. I would like to check if the browser can read an XML file from a server. If not the script...
0
by: =?Utf-8?B?U2FkaG5h?= | last post by:
HI , I am using MOSS 2007 API's to implement the version controls like check in and check out in Visual Studio 2005. I have a sharepoint 2007 server and i am accessing the MOSS API (on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
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
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...

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.