Application pool importance in IIS!

Source: Internet
Author: User

This is an example of just working!

A declaration system, developed with ASP, and then the error page appears whenever the peak is declared.

Statistics unit on the phone to our unit!

Depending on your colleague's previous experience, logging on to the server will restart IIS.

I went up to see the good, a master level of the server on more than 20 sites stun!

After a period of time over the declaration unit of substitution. A person who is more likely to dislike or complain

Really do not want to talk about him, but there is no way after all the site is what we do ah. And now I'm taking over.

I analyzed the next, the most likely is the connection every close!

So I'm going to analyze the code.

The discovery code has two folders, let's say A and b

A folder still has the source (formerly a technical ox person writes)

The B folder is said to have been written by an intern. Even the. cs file is gone! Ah!!!

If you change the code to tell the truth, I am too lazy to change it!

Then Baidu went into the loop and found that it could be an application pool problem! The result is really an application pool . (It must be that each shutdown causes the application pool to be too large)

So today we're talking about application pools !

First I looked at the server process, there are many W3WP.EXE process! And it consumes a lot of memory.

I passed the PID find the process that corresponds to that site! Be more certain because the consumption causes the jammed.

650) this.width=650; "Src=" http://m3.img.srcdd.com/farm5/d/2012/1106/18/E8C8FFA77BDAB946ED20B1B517F86E4C_B500_ 900_500_471.jpeg "width=" "height=" 471 "style=" Margin:0px;padding:0px;border:0px;font-weight:inherit; Font-style:inherit;font-family:inherit;vertical-align:baseline;height:auto; "Alt=" E8c8ffa77bdab946ed20b1b517f86e4c_b500_90 "/>

650) this.width=650; "Src=" http://m2.img.srcdd.com/farm4/d/2012/1106/18/66CB754D5E5B1ABF13C87E8707B6D2F6_B500_ 900_462_463.jpeg "width=" 462 "height=" 463 "style=" Margin:0px;padding:0px;border:0px;font-weight:inherit; Font-style:inherit;font-family:inherit;vertical-align:baseline;height:auto; "Alt=" 66cb754d5e5b1abf13c87e8707b6d2f6_b500_90 "/>

By default AppPoolset to per 1740minutes (hours), recycling, AppPoolin the IISThe process stops and then restarts in an overlapping manner. So there will be no request lost! Recycling helps prevent program bugs due to memory leaks or other resource leakscause the Interruption!

He has only one defaultapppool by default.

My idea was to automatically restart IIS at 4 o ' Day by Scheduled tasks (after all, no one visited)

But found no, to 12 o ' or will be stuck dead! I can get the same his soporific phone in the afternoon.

So what do we do?

Later, I found out that Web sites running within the same AppPool share these processes.

For example DataReader not closed anything) will cause the presence of all sites to die (in this case our unit has encountered!) Only restart the server, or IIS )

After communication, I found that some of the pages with the use of the card will be very, I found that the intern was basically written in the folder inside (so that said no contempt for interns mean, truth-seeking, and I began to enter the unit is also an intern, and I also made a similar mistake! Later asked the previous several seniors fix program connection problem)

> and then I thought, "Can I create a few more application pools and then separate the Web site

to prevent the bug affect other sites! (In IIS There's an application pool on the left, where you build it, and then point to the application pool of the Web site or folder to the one you created,

So I created more than two application pools. A directory assigned to this site is assigned to directory B! Then IIS still schedules the restart. I didn't get stuck in the end.

Things happened very early, always want to summarize, but no chance, these days to see the information and saw this piece so write down, on the one hand to deepen the impression, the second aspect of hope to help everyone.

by Lao Chen

2012/3/9


Application pool importance in IIS!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.