Jetty 11 is producing excessive number of threads
Emilio Recio
emrecio at udel.edu
Wed Sep 4 14:07:40 UTC 2024
You need to have a sister file to the idp.xml (called idp.properties) then
tell it to use a different environment depending on the version of Shib
you're running. We used Jetty12 as a nice go between old shib and new shib.
Jetty12 was able to accommodate both... key was idp.properties in same
webapps dir using "environment=ee8" for shib4 or "environment=ee9" for
shib5 etc. Of course, you have to install the appropriate environment in
your jetty base using standard install commands for jetty (using the jetty
user java -jar $JETTY_HOME/start.jar
--add-modules=ee8-deploy,ee9-deploy,ee8-jstl,ee9-jstl)
There might be more, i forget... but if this is what you are asking...
$ pwd
/usr/local/jetty-base/webapps
$ ls -ltr idp*
-rw-rw-r-- 1 jetty jetty 16 May 16 11:38 idp.properties
-rw-r--r-- 1 jetty jetty 1098 May 22 08:21 idp.xml
*$ cat idp.properties *
environment=ee9
*$ cat idp.xml *
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "
https://eclipse.dev/jetty/configure_10_0.dtd">
<Configure class="org.eclipse.jetty.ee9.webapp.WebAppContext">
<Set name="war"><SystemProperty name="idp.home"/>/war/idp.war</Set>
<Set name="contextPath">/idp</Set>
<!-- 20240327 EMR - Changing the recommended below to work around 12.0.7
bug -->
<!-- Set name="extractWAR">false</Set -->
<Set name="extractWAR">true</Set>
<!-- Set name="copyWebInf">true</Set -->
<Set name="copyWebInf">false</Set>
<Set name="copyWebDir">false</Set>
<Set name="errorHandler">
<New class="org.eclipse.jetty.ee9.servlet.ErrorPageErrorHandler">
<Call name="addErrorPage">
<Arg type="int">400</Arg>
<Arg type="int">499</Arg>
<Arg type="String">/profile/RaiseError?eventId=AccessDenied</Arg>
</Call>
<Call name="addErrorPage">
<Arg type="int">500</Arg>
<Arg type="int">599</Arg>
<Arg type="String">/profile/RaiseError</Arg>
</Call>
</New>
</Set>
</Configure>
Thanks,
Emilio
On Wed, Sep 4, 2024 at 9:46 AM David Stava via users <users at shibboleth.net>
wrote:
> Which wiki do you mean? I'm afraid I haven't found the examples here.
> https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3516104706/Jetty12
>
> Thanks!
>
>
> *David Stava*
> IT system administrator
>
> Institute of Science and Technology Austria (ISTA)
> David.Stava at ist.ac.at <Anastasiia.heurteur at ist.ac.at>
> Phone +43-(0)2243 9000-1316
> Am Campus 1, 3400 Klosterneuburg, Austria
>
> [image: 1706190125526]
>
>
> ------------------------------
> *From:* Cantor, Scott <cantor.2 at osu.edu>
> *Sent:* Wednesday, September 4, 2024 3:34:49 PM
> *To:* David Stava; Shib Users
> *Subject:* Re: Jetty 11 is producing excessive number of threads
>
> [EXTERNAL EMAIL - USE CAUTION when clicking links or attachments]
>
>
> Our examples for Jetty 12 are in the wiki.
>
> -- Scott
>
>
>
>
>
>
>
> --
> For Consortium Member technical support, see
> https://shibboleth.atlassian.net/wiki/x/ZYEpPw
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20240904/db493f92/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OutlookEmoji-17061901255268203374d-2d64-4bbe-938d-6f465f10009e.png
Type: image/png
Size: 15156 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/users/attachments/20240904/db493f92/attachment.png>
More information about the users
mailing list