Previous Next

Thread: Quetion about web garden

Last post 05-13-2008 5:33 PM by saqib_dotnet. 6 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 05-13-2008, 4:47 PM

    Quetion about web garden

    Hello All,

     In my website, after users logged in, i read an xml file to setup the profile of that user for default.aspx page. When i increase my number of worker process to > 1, then i cant go anywhere after login the page. My page doesnt moves to next page...

    Well what i m thinking is , the website has to read values from the file and store them in session varaibles , since in default page , if there is no session set then it wont be processed. So some how that file is not being read when i set the worker process to 2 , 3...

    how to handle this situation or what you guys think?

  • 05-13-2008, 5:06 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Lawrenceville, NJ
    • Posts 3,783
    • IIS MVPs

    Re: Quetion about web garden

    In most cases a web garden will not improve performance and may in fact cause problems such as resource contention. Under normal circumstances they should not be used.  There's probably no reason that you would benefit from a web garden.

    http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/57fd3d02-9b05-4b3f-8c3a-f326ff895ab8.mspx?mfr=true

    As a best practice, create Web gardens only for Web applications that meet the following criteria:

    The application runs multi-instantiated, so that a different instance of the application can be assigned to each worker process.

    The Web application is not CPU-intensive. If the CPU is the bottleneck, then adding worker processes cannot help improve performance.

    The application is subject to synchronous high latency. For example, if an application calls a back-end database and the response is slow, then a Web garden supports other concurrent connections without waiting for the slow connection to complete.

  • 05-13-2008, 5:09 PM In reply to

    • thomad
    • Top 25 Contributor
    • Joined on 08-20-2002, 3:28 PM
    • Redmond
    • Posts 387

    Re: Quetion about web garden

    You have to use out-of-proc session state (Session State Service or SQL) if you use Web Gardens. Why do you use a Web Garden in the first place? There are only a few instances where Web Gardens make sense. See http://blogs.technet.com/mscom/archive/2007/07/10/gardening-on-the-web-server.aspx

     Hope this helps

     

    Thomas Deml
    Senior Program Manager
    Internet Information Services
    Microsoft Corp.
  • 05-13-2008, 5:16 PM In reply to

    Re: Quetion about web garden

    Its one application will be used by 20 + customers in single application pool.

    To increase performance during peak hours; instead of request being waiting for worker process to be available, i thought to make use of garden. Isnt this right approach?

     

    Regards

     

  • 05-13-2008, 5:24 PM In reply to

    • thomad
    • Top 25 Contributor
    • Joined on 08-20-2002, 3:28 PM
    • Redmond
    • Posts 387

    Re: Quetion about web garden

    You should read the link I included in the previous post. Handling 20 customers in a single Application Pool is a piece of cake for IIS. The IIS server on my laptop can handle 3000-4000 requests a second. I doubt that 20 customers can generate this kind of traffic.

     

    Thomas Deml
    Senior Program Manager
    Internet Information Services
    Microsoft Corp.
  • 05-13-2008, 5:25 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Lawrenceville, NJ
    • Posts 3,783
    • IIS MVPs

    Re: Quetion about web garden

    It's not the right approach if your application doesn't meet the criteria and you're not noticing any performance problems.  Read the articles ...

  • 05-13-2008, 5:33 PM In reply to

    Re: Quetion about web garden

     I read articles ; thats what made me to think of doing this; but u right i should read some more.

    Thanks all for your help.

    Regards

     

Page 1 of 1 (7 items)
Page view counter