Application pool là gì


People who are new khổng lồ hosting web apps on IIS (Internet Information Services) sometimes struggle with the concept of application pools. What is an IIS application pool? What purpose does it serve? In this post, we’ll answer these questions—và more.

Bạn đang xem: Application pool là gì

Quý Khách đang xem: Application pool là gì

We’ll begin by offering a brief introduction to lớn IIS itself. If you’re already well acquainted with this piece of software, then the first section isn’t for you; feel không tính tiền to lớn skip it. Those of you who choose khổng lồ read it will learn a bit about IIS and the role it plays in the Microsoft stachồng.

After that, we’ll proceed to lớn cover the concept of “pools” in the tech world. If you’re an IT professional—especially in the field of software development—you likely come across a reasonable number of “pools” in your day-to-day work, so it makes sense lớn define those as well.

Then we get khổng lồ the main point of the article: IIS application pools. You’ll see the definition of the IIS application pool, underst& its purpose, and learn details about the different types of pools.

Troubleshooting and optimizing your code is easy with integrated errors, logs and code cấp độ performance insights.

A Brief Introduction to IIS

IIS stands for Internet Information Services, as you’ve seen in the introduction. Formerly known as “Internet Information Server,” IIS is a web hệ thống created by Microsoft.

The paragraph above sầu summarizes what IIS is. We could leave sầu it at that và điện thoại tư vấn it a day, if not for the “web server” part. You see, “website server” is a somewhat ambiguous term, because it can mean two different—yet related—things.

“Web server” can mean a computer (which can be both a physical machine or a virtualized computer. ) It can also mean a type of software that runs on said computer. Both the hardware & software varieties of the website servers are there for the same purpose: they take và reply to lớn requests.

Since Microsoft is—or at least has been, for the most part of its history—a software company, it shouldn’t take you long to underst& that IIS belongs to the “software” category of website servers. So, IIS is an application used khổng lồ host & manage website applications/websites on Windows. It was introduced bachồng in 1995 as a không tính tiền add-on for Windows NT 3.51, và it’s been part of the Windows NT family since then.


The Concept of “Pools” in Tech

Tech workers come across the concept of pools all the time in their works; this is especially true for software development. Since it’s such a pervasive concept, it’d make sense to dedicate a little time to lớn define it.

According khổng lồ Wikipedia:

In computer science, a pool is a collection of resources that are kept ready to use, rather than acquired on use và released afterwards.

You might think that the definition above doesn’t sound that far from caching, and you wouldn’t be far from the truth. Sure, there are differences between the concepts, but they also have sầu a lot in comtháng. Think of caching as storing values for later reuse, while pooling deals with resources.

The justification for adopting pools is usually performance; for instance, think about scenarquả táo when acquiring some resources might present a high-cost. In situations lượt thích that, pooling might come in handy.

Xem thêm: Nghĩa Của Từ Sore Throat Là Gì, Pharyngitis Và Sore Throat?

IIS Application Pool – What It Is, What It’s Used for

We started the post by giving an overview of IIS, proceeding to lớn define the concept of “pools” in tech. Now we’re ready lớn put it all together and start answering the title question.

Defining the IIS Application Pool

After learning about IIS & understanding the meaning of the pool in Computer Science, defining the “IIS application pool” should be almost trivial. An IIS application pool is a pool—i.e., a collection—that houses applications on IIS. Each application pool consists of a process called w3wp.exe cộ that runs on the VPS machine. That’s pretty much it.

The question then obviously becomes: why? What is the purpose of application pools on IIS? What do you use them for? Are there implications for your apps?

IIS Application Pool: Understanding the Need

As the previous section just covered, you can think of an application pool as a collection or compartment of applications. An application pool can contain n apps, và it allows you lớn create isolation levels for your applications. Why would that be useful?

One reason khổng lồ adopt application pools might be khổng lồ ensure availability for your apps. Since each pool runs in its dedicated process, an error in one app won’t take down applications in other application pools.

Additionally, you might want to use application pools lớn configure different levels of security for different applications. For instance, you have sầu five applications. One of them requires a higher cấp độ of security than the other four. In this case, you could create two separate application pools for the two different groups of applications. You can configure each pool khổng lồ run under a different user tài khoản, by specifying the identity for the Application Pool.

Finally, you might also want lớn run applications on different versions of the .NET framework. This is yet another case where the application pool might come in handy.


Going Deeper: Shared vs. Dedicated Application Pools

You can classify IIS application pools inkhổng lồ two main categories: shared application pools và dedicated application pools.

Shared Application Pools

You Hotline an application pool “shared” if it hosts several web applications running under it. You’d typically combine many applications into a single application pool if you want lớn preserve the memory of the server. As we have sầu already mentioned, each pool consists of a w3wp.exe pháo process. If you have ten applications, each one in its own pool, that means you have sầu ten processes in execution. On the other h&, if you host all ten applications under a single application pool, you kết thúc up with a single w3wp.exe process running.

What about a dedicated application pool? Well, that’s exactly the opposite: you say a pool is dedicated when it only has a single application running on it. Isolating each app in its own pool enables you to have sầu a more rigid separation between them. Also, as we’ve already said, this compartmentalization prevents the crash of an tiện ích that brings other apps down as well.

Dedicated Application Pools

Here are some of the most important advantages of having dedicated application pools over shared ones:

Isolating applications that dem& more resources, so they don’t harm the performance of the other applications.Preventing problems with one application bringing the other apps downPreventing an application accessing the data from another one.Having different settings (e.g., different .NET version) for different apps.Isolating low-trust applications in a restrictive sầu, low privileges, environment lớn prsự kiện them from getting unauthorized access to lớn other apps.

The disadvantage of dedicated application pools boil down to resource usage: since each pool is its own process, more resources are required.

Which One Should You Pick?

Which type of pool should you use? It’s impossible to give a one-size-fits-all answer. Each case will be different & needs khổng lồ be analyzed individually. However, we’ll give you a rule-of-thumb you can follow lớn identify certain scenartiện ích ios for a dedicated pool. Here it goes: prefer a dedicated application pool if your application matches at least one of the following criteria:

It’s a critical application for some reason.It’s an application you don’t fully trust (e.g., it’s a third-tiệc ngọt app).It consumes too many resources.

Xem thêm: Jobs Nhân Viên Nhập Liệu Tiếng Anh Là Gì ? Jobs Nhân Viên Nhập Liệu Tiếng Anh

IIS Application Pool: Learn How to lớn Use It & Profit

Was that all there is khổng lồ know about IIS và its application pools? On the contrary: all that you’ve read is nothing but the tip of the iceberg. Now it’s up khổng lồ you to lớn consider studying & learning more. An interesting next step would be learning how to lớn monitor IIS performance: it sort of acts as a sequence lớn the topic of this post.If you want to lớn go a step further, you should start checking out tools at your disposal. For instance, take a look at Retrace, which is an application performance management system by