473,394 Members | 1,875 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,394 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 1377
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.