Friday, July 31, 2009

How to Schedule Recycling an IIS Application Pool

We have a customer with an IIS 6.0 application that crashes randomly--either the Application Pool worker process runs the server out of memory or hangs.

If you have a need to recycle the Application Pool between scheduled maintenance intervals, there are a couple of available solutions.

Windows 2003 (IIS 6)


IISApp.vbs
This script is part of the Windows 2003 Platform. Windows 2003 SP1 introduced the ability to recycle application pools. The syntax is pretty easy:

IISApp /a /r

Save this into a batch file and drop it into the task scheduler.

Application Pool Recycling through IISAdmin
1. On the taskbar, click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
2. Expand the server name, and then click Application Pools.
3. Right-click > Properties on the Application Pool you wish to recycle.


4. Set the appropriate properties for recycling.


5. For example, to recycle the worker processes at 6AM, select the "Recycle worker processes at the following times" checkbox and enter the appropriate time (24-hour format).


6. Click OK.

Windows 2008 (IIS 7)


1. On the taskbar, click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
2. In the Connections pane, expand the server name, and then click Application Pools.
3. In the Application Poolspane, select the application pool you wish to edit.
4. In the Actions pane, click Recycling...


5. On the Recycling Conditions page of the Edit Application Pool Recycling Settings Wizard, select at least one of the options in the Fixed Intervals section, select the checkboxes and enter values for "Regular time intervals" or "Specific Times" as necessary, and then click Next.
6. Click Finish.

Thursday, July 30, 2009

Obama Drinks to Race Relations

Sometimes a man just can't catch a break.

The blogosphere buzz from the Right is downright crazed about how Obama sat down to share beers with William Gates and the police officer who arrested him. Reading the tweets and Facebook replies to a recent NRP segment with Ken Rudin shows how so many people missed the boat:

Dear Mr. President: Stop wasting your time and acting "stupidly" in things that you should NOT be involved, stop giving your opinion for the actions of a "cranky old friend with a minority complex", and stop solving your verbal diarrhea with beer happy hours at the expense of Tax Payers. ...Ah, and stop walking like John Travolta in Saturday Night Fever ..."Not Cool"...


Oh yeah... drinking beer is the answer to all our problems today... why don't we smoke a joint while we are at it... or now how did Bob Dylan put it... Tellin' me he loves all kinds-a people. He's eatin' bagels. He's eatin' pizza. He's eatin' chitlins.


I think everyone should take a step back and think about how you would resolve a situation involving inflammatory remarks and strong disagreements. Maybe duke it out in the parking lot? That doesn't seem very productive.

I think I have to vote with the President on this one. Go grab a couple of beers and sit around and talk about what happened. That one-on-one personal communication works in any number of situations. I think the world would be a lot better off if we followed Obama's lead and talked out our problems instead of gossiping or backstabbing or lashing out in some other way.

One of the most powerful properties of social drinking is the socialization aspect. Alcohol tends to remove the inhibitions we have in our normal lives, which if not controlled, can have disastrous consequences. But, it can also be an excellent catalyst for very frank discussions.

To put the Biblical spin on it, Jesus presents it this way in Matthew 18:15-17:

Moreover if thy brother shall trespass against thee, go and tell him his fault between thee and him alone: if he shall hear thee, thou hast gained thy brother. But if he will not hear thee, then take with thee one or two more, that in the mouth of two or three witnesses every word may be established. And if he shall neglect to hear them, tell it unto the church: but if he neglect to hear the church, let him be unto thee as a heathen man and a publican.


The admonition is clear--get the parties in a room and talk about it. If everyone makes up, then you've gained an ally. If you can't come to an agreement, get another trusted person involved.

For all of you asking WWJD, I think Obama is on-track here.

I would challenge anyone this:

The next time you have a serious disagreement with someone at work, be the bigger person. Invite them out for a few drinks, talk about what's bothering you, explain how you feel. And then pay for the drinks. See how much that changes your relationship with that person, and consequently, your standing in the office. You have nothing to lose and everything to gain.

Bottoms up to that.

Sunday, July 19, 2009

My Favorite Whisky Sour

Sometimes, you just need a good whisky. Or whiskey. Take your pick. And sometimes, you need a good whisky sour.

Whisky Sour
2 oz Maker's Mark Bourbon
1 oz fresh squeezed lemon
1 oz water
Splash of Southern Comfort 100
1 tsp sugar

Combine in a shaker with ice. Shake vigorously for about 15 seconds and strain into a double old-fashioned filled with ice. Good to the last drop.

Friday, July 3, 2009

Longhorn Steak House "Perfect Margarita"

The Longhorn Steak House in Sterling, Virginia makes a great margarita. So great, in fact, that I decided to try to make it myself. No mixes here--only the real deal.

Longhorn Steak House Perfect Margarita
1 1/2 oz 1800 Reposado Tequila
1/2 oz Cointreau orange liqueur
1/2 oz Grand Marnier orange liqueur
1/2 oz pulp-free orange juice
2 1/2 oz fresh-squeezed lime juice
1/2 oz fresh-squeezed lemon juice
1 oz water
2 tsp sugar

Combine all ingredients in a shaker with cracked ice. Shake vigorously for 10-15 seconds and strain into salt-rimmed glasses.

Delicioso!