Improving the IdP's startup time on tomcat

Peter Schober peter.schober at univie.ac.at
Mon Oct 23 12:56:03 UTC 2023


Max Spicer via users <users at shibboleth.net> [2023-10-23 13:29 CEST]:
> My experimentation shows that putting this in the IDP's context
> file causes the TLD scanning warning and associated delay to be removed on
> startup:
> 
> <Context docBase="/path/to/war/idp.war" privileged="true"
> antiResourceLocking="false" swallowOutput="true">
>   <JarScanner>
>     <JarScanFilter defaultTldScan="false" />
>   </JarScanner>
> </Context>
> 
> This seems a simpler and easier to maintain approach to the one at
> https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3269689345/Tomcat+10.1
> and
> https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3199511039/Troubleshooting#Slow-startup-time

ACK. I have this in my /etc/tomcat<n>/context.xml waiting for things
to break:

  <JarScanner>
    <JarScanFilter tldSkip="*.jar" />
  </JarScanner>

-peter


More information about the users mailing list