<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 28, 2016 at 4:13 AM, <a href="mailto:jtuchel@objektfabrik.de">jtuchel@objektfabrik.de</a> <span dir="ltr"><<a href="mailto:jtuchel@objektfabrik.de" target="_blank">jtuchel@objektfabrik.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div class="m_6729047939478226259moz-cite-prefix">Mariano,<br>
      <br>
      I would be interested in your experiences with 5 hours. We went
      for 40 minutes in order to give the server a chance to free RAM.
      Since Seaside by default doesn't clean up sessions when they
      expire, but only when new ones are requested, I'd be worried about
      memory usage with such long session intervals...<br>
      <br></div></div></blockquote><div><br></div><div>Hi Jooachim,</div><div><br></div><div>Indeed, there is usually the tradeoff between larger timeouts and the memory consumption. In my particular case, the UI of the app allows having multiple tabs, multiple workspaces, and there are even settings/preferences and other things that are scoped to session level. In addition, some of the components are quite complex for the user to get there. That's why they really appreciate long during sessions. And finally, because there are not that many users. </div><div><br></div><div>Now, to answer your question, I think the answer is that my RAM does not gets affected much because we are running in GemStone. In GemStone, the Seaside sessions are not transient (temp) but *persistent* objects. In this regard, the main memory to consider in GemStone is the Share Page Cache (the cache of persistent objects on memory). If I got things right, having long sessions does not affect much. Worst scenario if a have an unused session is that if another new sessions comes in and I don't have much free space in the Share Page Cache, then the old "unused" session (at the end this is like any persistent object) will be moved back to disk to make room.  In other words, I think in the worst scenario this would cause some trashing (moving objects between SPC an disk). </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><div class="m_6729047939478226259moz-cite-prefix">
      Another question: what do maximumRelativeAge and
      maximumAbsoluteAge acrually do? Is this some way of tweaking the
      session cleanup policy?<br>
      <br></div></div></blockquote><div><br></div><div><br></div><div>I have no clue what those are.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><div class="m_6729047939478226259moz-cite-prefix">
      <br>
      Joachim<br>
      <br>
      <br>
      <br>
      <br>
      <br>
      Am 28.11.16 um 02:09 schrieb Mariano Martinez Peck:<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">This is the way I do it and it works for me:
        <div><br>
        </div>
        <div>
          <div>app cache expiryPolicy configuration</div>
          <div>        at: #'cacheTimeout'</div>
          <div>        put: 5 hours asSeconds </div>
          <div><br>
          </div>
          <div>That should go in the code you use to register your
            seaside app (likely from a class side #initialize).</div>
          <div><br>
          </div>
          <div>Let me know if that helped.</div>
          <div><br>
          </div>
          <div>Cheers,</div>
          <div><span class="m_6729047939478226259gmail-Apple-tab-span" style="white-space:pre-wrap">    </span></div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Sat, Nov 26, 2016 at 5:22 PM, Petr
          Fischer <span dir="ltr"><<a href="mailto:petr.fischer@me.com" target="_blank">petr.fischer@me.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,
            when starting my image with Seaside app, I have this code in
            startup method:<br>
            <br>
            -----<br>
            WAMySeasideApp>>startUp: resuming<br>
                    WAMySeasideApp waApplication<br>
                            preferenceAt: #maximumRelativeAge<br>
                            put: 18000. "5 hours"<br>
                    WAEFTTasksApp waApplication<br>
                            preferenceAt: #maximumAbsoluteAge<br>
                            put: 86400. "24 hours"<br>
                    ZnZincServerAdaptor startOn: 8080.<br>
            <br>
            WAMySeasideApp>>waApplication<br>
                    ^ WAAdmin defaultDispatcher handlerAt:
            'my-seaside-app'<br>
            -----<br>
            <br>
            This "maximum age" session parameters are correctly showing
            in seaside config web app, but every seaside session is
            still 30 minutes.<br>
            <br>
            What is proper way to configure session timeouts (age),
            dynamically, via code?<br>
            <br>
            Thanks, pf<br>
            ______________________________<wbr>_________________<br>
            seaside mailing list<br>
            <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation<wbr>.org</a><br>
            <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="noreferrer" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/s<wbr>easide</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="m_6729047939478226259gmail_signature" data-smartmail="gmail_signature">Mariano<br>
          <a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.<wbr>com</a><br>
        </div>
      </div>
      <br>
      <fieldset class="m_6729047939478226259mimeAttachmentHeader"></fieldset>
      <br>
      <pre>______________________________<wbr>_________________
seaside mailing list
<a class="m_6729047939478226259moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.<wbr>squeakfoundation.org</a>
<a class="m_6729047939478226259moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a>
</pre>
    </blockquote>
    <br>
    <p><br>
    </p>
    </div></div><span class="HOEnZb"><font color="#888888"><pre class="m_6729047939478226259moz-signature" cols="72">-- 
------------------------------<wbr>------------------------------<wbr>-----------
Objektfabrik Joachim Tuchel          <a class="m_6729047939478226259moz-txt-link-freetext" href="mailto:jtuchel@objektfabrik.de" target="_blank">mailto:jtuchel@objektfabrik.de</a>
Fliederweg 1                         <a class="m_6729047939478226259moz-txt-link-freetext" href="http://www.objektfabrik.de" target="_blank">http://www.objektfabrik.de</a>
D-71640 Ludwigsburg                  <a class="m_6729047939478226259moz-txt-link-freetext" href="http://joachimtuchel.wordpress.com" target="_blank">http://joachimtuchel.<wbr>wordpress.com</a>
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1

</pre>
  </font></span></div>

<br>______________________________<wbr>_________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.<wbr>squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="noreferrer" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br></div>
</div></div>