Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

IIS  worker process change priority

Posted on 2009-05-15
7
3,017 Views
Last Modified: 2013-11-07
I have an ASP.net app that is very CPU intensive. I would like to lower its execution priority while it is running, but it appears that many apps run in the same worker process. I assume lowering the process will affect all. How do you recommend I do this. I looked at creating a separate application pool for this (there's actually a couple of apps), but I couldnt find a priority setting on the application pool.

How would you lower the priority of only one (or a given set of) ASP.net applications?

One situation, I am running IIS 6, and on another IIS 7.
0
Comment
Question by:MikeBroderick
  • 3
  • 2
  • 2
7 Comments
 
LVL 11

Expert Comment

by:Muhammad Ousama Ghazali
ID: 24403865
Try doing the following:
  • Open IIS snap in.
  • Browse to the Application Pools and select the application pool attached to the website (create a new if the website is on a pool shared by other websites and applications).
  • Right click on it, choose Properties and then select Peformance tab on the resulting window.
  • The third section on this tab is titled "Enable CPU monitoring". Check the checkbox.
  • Set the Maximum CPU use (percentage) value you want to assign to the worker process running ASP.NET to use.
  • Optionally set other options.
  • It is suggested that you click on the Help button on this Properties window to understand more for different options on this tab.
  • Click Apply/OK and see it does give you the priorty you are look for.
0
 

Author Comment

by:MikeBroderick
ID: 24403974
Thanks, but I dont think that's what I want. The only 2 options are "No action" and "Shutdown". I want the priority lowered so that the rest of the machine gets execution time.
0
 
LVL 11

Accepted Solution

by:
Muhammad Ousama Ghazali earned 500 total points
ID: 24405033
I understand what you wish for, however, as per my knowledge there is no direct way to lower the priority of the worker process for just a single website. You have to resort to either the above method I described, and allow this website's applicaiton pool to be shared with as many sites as possible to make it automatically a low priority web site while move the website into their own isolated/stand alone (single website) application pools to give them high priority.
One other way priortize might be setting the Bandwith throttling and Web site connections on the Performance tab of the website itself rather than application pool. See this link for information on this tab: http://technet.microsoft.com/en-us/library/cc753823.aspx.
Spare time to see these two links which may assist:
http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1788
http://technet.microsoft.com/en-us/library/cc732553.aspx
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 51

Expert Comment

by:Ted Bouskill
ID: 24407068
moghazali is correct.  IIS wasn't really designed for this type of precise control.  You have to control this with your web applications themselves.
0
 

Author Comment

by:MikeBroderick
ID: 24413057
Is there a separate process running for each application pool. If so, I can define an application pool called LowPrior or something, and define all of my "pig" applications ot this app-pool. Each one can issue a priority change to low. .Net allows you to change your priority to low.

Do you see a problem with this?
0
 
LVL 11

Expert Comment

by:Muhammad Ousama Ghazali
ID: 24414282
Read this just to be informed of consequences for having multiple websites in a single Application Pool.
http://www.experts-exchange.com/Software/Misc/Q_22137556.html and http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/67e39bd8-317e-4cf6-b675-6431d4425248.mspx?mfr=true
Read the discussion here for different ways to increase the priority of your .net application but I am not sure if it would work in ASP.NET: http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/daae2f48-d2c9-44f1-b981-3d5397cf156c
I hope it hellps in deciding on how you want to place your websites.
0
 
LVL 51

Expert Comment

by:Ted Bouskill
ID: 24414614
Using multiple application pools is valid but there is a cost because each pool has it's own memory space et cetera, however it might be a good way to control them.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Troubleshooting Latency Timeout on IIS 2008 R2 Server 2 22
jquery + C#.net radiobuttonlist 3 27
IEnumerable<T> to a List<T> 8 36
Change to file doesn't show up 16 50
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

789 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