<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">We are running into the issue that whenever we restart our IdP on windows (or reboot the server), it creates a new directory full of lib jars in a jetty-base/tmp/jetty-0.0.0.0-8443-idp.war-_idp-any-<random number>.dir directory.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When stopped, it will clean up the start_<different random number>.properties file and the empty jsp and webinf/WEB-INF/classes directories. But it leaves the jars in webinf/WEB-INF/lib. This consumes ~42 MBs per restart.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I reproduced on a fresh install so it doesn’t look like anything to do with our configuration. All I did was install java (8u144, server jre) and fill out the windows installation wizard.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jetty warns about such a result at the bottom of this[1] page in their documentation. The solution, setting the javax.servlet.context.tempdir seems to work, as it doesn’t create new directories and lib jars every restart. I did it by adding
the below to the jetty-base/webapps/idp.xml:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> <Call name="setAttribute"><o:p></o:p></p>
<p class="MsoNormal"> <Arg>javax.servlet.context.tempdir</Arg><o:p></o:p></p>
<p class="MsoNormal"> <Arg><Property name="jetty.base" />\tmp\<Property name="jetty.tmp.path" /></Arg><o:p></o:p></p>
<p class="MsoNormal"> </Call><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The only ticket I found on this is IDP-923[2], and the solution they mention (setting persistTempDirectory = false) doesn’t fix it. The jetty documentation lists it being true as a condition for this issue, but I don’t know why setting
it to false didn’t help.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Anyone else get this issue? Are we supposed to regularly clear out jetty-base/tmp directory?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">1 - <a href="https://www.eclipse.org/jetty/documentation/9.3.x/ref-temporary-directories.html">
https://www.eclipse.org/jetty/documentation/9.3.x/ref-temporary-directories.html</a><o:p></o:p></p>
<p class="MsoNormal">2 - <a href="https://issues.shibboleth.net/jira/browse/IDP-923">
https://issues.shibboleth.net/jira/browse/IDP-923</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jason Brady * Web Developer * San Bernardino Community College District *
<o:p></o:p></p>
<p class="MsoNormal">1289 Bryn Mawr Ave, Suite B, Redlands, CA 92374 *<o:p></o:p></p>
<p class="MsoNormal">Tel 909-384-8691 * Mobile 951-295-9515 * Fax 909-796-6579 *<span style="color:#1F497D">
<a href="mailto:jbrady@sbccd.cc.ca.us"><span style="color:#0563C1">jbrady@sbccd.cc.ca.us</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>