Skip to main content
Inspiring
June 4, 2024
Answered

Multiple app pools in IIS

  • June 4, 2024
  • 2 replies
  • 2734 views

Hi All,

We have CF2021 in windows  IIS 10 (windows server 2019).

We have 4 sites all in IIS using one application Pool. 

Can we assigned one site to their own application pool for better performance?

I know it was a tomcat limitation before:

Multiple application pools for ColdFusion possible... - Adobe Community - 6246482

Thanks,

Johnny

    This topic has been closed for replies.
    Correct answer Charlie Arehart

    I want to try you 1b solution creating separates INSTANCES since we have CF enterprise.

    Is there an article in how to setup multiple instances in the same server?

    how can I connect each instance to each site in IIS? 

     

    Good to know that you can help as consulting, I will keep you contact.

    Thanks !


    Good to hear, Johnny. And the feature is both well-documented (including use of the wsconfig tool for the new instances). And the cf multi-instance capability has existed for decades, such that you'll find many folks or resources that can help you should you stumble.

     

    To be clear, it's simple enough that for those familiar with it (or we together) could have it all configured in less than 15 minutes. But I realize you'll likely prefer to dig in on your own first.

     

    I'll add that it's indeed simple to create the separate cf instances and to run the cf wsconfig tool, to point to separate sites in iis. It's also easy to create sites in iis, once you have the domains or  subdomains you want to use. 

     

    That said, there can be challenges with the setup of dns (if using new domains or subdomains), as well as ensuring your app/code works well with that new domain/subdomain. For some apps, it's trivial to accommodate, while for others it can be a larger challenge, depending on the level of hard-coded use of domain names in links, etc.

     

    Again z I can help with finding and resolving such problems, sometimes more quickly/efficiently than how some devs on their own would try to solve such problems. There's no easy way to estimate that effort up front, but it shouldn't be a monumental effort, and again for some it's truly trivial. 

    2 replies

    Charlie Arehart
    Braniac
    June 6, 2024

    I've tweaked on of my replies above to offer a bit more clarification on why it is that we can't have IIS "applications" (folders within a site) be configured to use a different IIS "application pool" than that of the site they are in. This is what was discussed in the 2014 thread that Johnny originally pointed to, but the point I make above wasn't made there: that the issue is about the /jakarta/isapi_redirect.dll call (which CF makes on each cfm page call), and that that can't be in a different app pool than the folder serving the CF page.

     

    But since Johnny's considering the alternative approach I posed (creating new sites, and perhaps even separate CF instances), I offer this elaboration more for others who may find this thread in the future. (But I'm adding this note as a comment separately, to help any folks who'd already read this thread in recent days, who wouldn't otherwise know I'd revised that answer.)

    /Charlie (troubleshooter, carehart. org)
    Charlie Arehart
    Braniac
    June 4, 2024

    Yes, Johnny, you can do what you ask. I've had many times where more than one site (running cf) shared a given app pool. There's usually not much advantage to doing that, but yes it's possible. 

     

    As for that post you point to, it's about a different use case: they were wanting to have iis "applications" WITHIN a given iis site use a different app pool than the site they were within. You're not referring (above) to doing that, so that discussion does not apply. 

    /Charlie (troubleshooter, carehart. org)
    jfb00Author
    Inspiring
    June 4, 2024

    Thanks for your reply and help Charlie.

    We are trying to isolate each site, if one have performance issue the other three are not affected.

    Do you have a article that shows how to config each CF site in IIS with their own application pool?

    --+ website root [pool_root]

      |- appl_one [pool_one]

      |- appl_two [pool_two]

      |- appl_three [pool_three]

    Thanks,

    Johnny

     

     

    Charlie Arehart
    Charlie ArehartCorrect answer
    Braniac
    June 5, 2024

    I want to try you 1b solution creating separates INSTANCES since we have CF enterprise.

    Is there an article in how to setup multiple instances in the same server?

    how can I connect each instance to each site in IIS? 

     

    Good to know that you can help as consulting, I will keep you contact.

    Thanks !


    Good to hear, Johnny. And the feature is both well-documented (including use of the wsconfig tool for the new instances). And the cf multi-instance capability has existed for decades, such that you'll find many folks or resources that can help you should you stumble.

     

    To be clear, it's simple enough that for those familiar with it (or we together) could have it all configured in less than 15 minutes. But I realize you'll likely prefer to dig in on your own first.

     

    I'll add that it's indeed simple to create the separate cf instances and to run the cf wsconfig tool, to point to separate sites in iis. It's also easy to create sites in iis, once you have the domains or  subdomains you want to use. 

     

    That said, there can be challenges with the setup of dns (if using new domains or subdomains), as well as ensuring your app/code works well with that new domain/subdomain. For some apps, it's trivial to accommodate, while for others it can be a larger challenge, depending on the level of hard-coded use of domain names in links, etc.

     

    Again z I can help with finding and resolving such problems, sometimes more quickly/efficiently than how some devs on their own would try to solve such problems. There's no easy way to estimate that effort up front, but it shouldn't be a monumental effort, and again for some it's truly trivial. 

    /Charlie (troubleshooter, carehart. org)