Tag: application

Generate Random String

randomstring

 

Imports System.Text
 
Public Class Form1
 
  Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    Dim s As String = “ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz”
    Dim r As New Random
    Dim sb As New StringBuilder
 
    For i As Integer = 1 To 8
      Dim idx As Integer = r.Next(0, 61)
      sb.Append(s.Substring(idx, 1))
    Next
 
    TextBox1.Text = sb.ToString
  End Sub
End Class

How Application Pools Work IIS 6.0

When you run IIS 6.0 in worker process isolation mode, you can separate different Web applications and Web sites into groups known as application pools. An application pool is a group of one or more URLs that are served by a worker process or set of worker processes. Any Web directory or virtual directory can be assigned to an application pool.

Every application within an application pool shares the same worker process. Because each worker process operates as a separate instance of the worker process executable, W3wp.exe, the worker process that services one application pool is separated from the worker process that services another. Each separate worker process provides a process boundary so that when an application is assigned to one application pool, problems in other application pools do not affect the application. This ensures that if a worker process fails, it does not affect the applications running in other application pools.

Use multiple application pools when you want to help ensure that applications and Web sites are confidential and secure. For example, an enterprise organization might place its human resources Web site and its finance Web site on the same server, but in different application pools. Likewise, an ISP that hosts Web sites and applications for competing companies might run each companys Web services on the same server, but in different application pools. Using different application pools to isolate applications helps prevent one customer from accessing, changing, or using confidential information from another customers site.

In HTTP.sys, an application pool is represented by a request queue, from which the user-mode worker processes that service an application pool collect the requests. Each pool can manage requests for one or more unique Web applications, which you assign to the application pool based on their URLs. Application pools, then, are essentially worker process configurations that service groups of namespaces.

Multiple application pools can operate at the same time. An application, as defined by its URL, can only be served by one application pool at any time. While one application pool is servicing a request, you cannot route the request to another application pool. However, you can assign applications to another application pool while the server is running.

From Microsoft Technet

Configuring IIS Application Pool

IIS Application Pool contains all web applications on domains hosted on your server. Dedicated IIS application pool allows your clients to have a level of isolation between web applications used by their domains. Since each dedicated application pool runs independently, errors in one application pool belonging to one client will not affect the applications running in other application pools belonging to other clients.

By default, Plesk offers a shared application pool for all your clients and their customers. However, clients and domains can use dedicated application pools if administrator and client policy permit this.

IIS application pool can work in three modes:

  • Shared pool is always used for all clients and domains.
  • Dedicated pool is always used for every client and domain.
  • Shared pool is used for clients and domains by default; clients are allowed to assign dedicated pools for their customers.

To change the IIS application pool working mode:

  1. Go to Server > IIS Application Pool.
  2. Select Global Settings tab.
  3. Select the required mode and click OK.

To limit the amount of CPU resources that the IIS application pool can use:

  1. Go to Server > IIS Application Pool.
  2. Select the Switch on CPU monitoring check box and provide a number (in percents) in the Maximum CPU use (%) field.
  3. Click OK.

To stop all applications running in the server application pool:

  1. Go to Server > IIS Application Pool.
  2. Click Stop.

To start all applications in the application pool:

  1. Go to Server > IIS Application Pool.
  2. Click Start.

To restart all applications running in the application pool:

  1. Go to Server > IIS Application Pool.
  2. Click Recycle. This can be handy if some applications are known to have memory leaks or become unstable after working for a long time.

via Configuring IIS Application Pool.