473,804 Members | 3,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1401
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******@neces sitysoftware.co m> wrote in message
news:OK******** ******@TK2MSFTN GP15.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******@neces sitysoftware.co m> wrote in message
news:OK******** ******@TK2MSFTN GP15.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
5306
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 like to send a message letting the user know that either fields needs data before they can save the record. If any of the fields have data then, it is OK to save the record. Could you please let me know how to accomplish this? An example will
3
9074
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 "Ticker." When new company stock tickers (i.e., MSFT for Microsoft) are entered into the field, I'd like them in all caps--whether the user types msft, Msft, MsFt, etc. In Access, this was easy--simply set the Format to ">" in table design view. In...
2
2807
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: Loop:---------------- Socket.Receive //receive http data chunks Socket.Send //'/r/n' data to check if connection is active ------------------------ The problem is that when connection is closed by the http server, the send socket function...
6
3685
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 should read the same XML file from a backup server. Does anyone have any idea how to achive that?? Any help is appreciated.
0
1330
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 sharepoint server) from dotnet web application on my local machine using a custom webservice. I am able to check out the document on the sharepoint server by calling the API "item.File.CheckOut();" method via custom webservice. But once i check out the...
0
9575
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10320
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10073
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9134
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7609
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6846
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4288
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3806
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2981
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.