<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Adjusting the Qlik Sense Engine TTL in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Adjusting-the-Qlik-Sense-Engine-TTL/ta-p/1713815</link>
    <description>&lt;P&gt;From &lt;A href="https://community.qlik.com/t5/Qlik-Support-Knowledge-Base/QIX-engine-memory-management-and-CPU-utilization/ta-p/1716188" target="_blank" rel="noopener"&gt;QIX engine memory management and CPU utilization&lt;/A&gt;:&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="margin-left: 40px;"&gt;In QlikView, a session ends a configurable amount of time after the user closes the browser tab where the session is running (that is, at "All sessions timed out"). In Qlik Sense, which uses WebSocket, the session ends when the user closes the browser tab (that is, at "User activity ends").&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;In practice, this means that when a browser refresh occurs in Qlik Sense, the user will create a new session. When inspecting the frames of the WebSocket traffic to the Engine, an administrator will see&amp;nbsp;&lt;STRONG&gt;SESSION_CREATED&lt;/STRONG&gt;&amp;nbsp;signalling that the Engine is creating a new session.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Like so (Fig 1):&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fig 1 screenshot from Chrome's Developer Tools which allows inspection of the frames of websocket connections" style="width: 744px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43530iF83CEDF8DF9733F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Chrome Dev Tools Session Created.png" alt="Fig 1 screenshot from Chrome's Developer Tools which allows inspection of the frames of websocket connections" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Fig 1 screenshot from Chrome's Developer Tools which allows inspection of the frames of websocket connections&lt;/span&gt;&lt;/span&gt;
&lt;P&gt; &lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There are scenarios where an administrator would prefer to keep sessions open for extended periods of time due to the response time of the Engine when creating a new session versus using an existing session and this article will outline how to accomplish this. This approach requires adjusting the time to live (TTL) settings for the Qlik Sense Engine.&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;This functionality is &lt;STRONG&gt;only&amp;nbsp;&lt;/STRONG&gt;present in&amp;nbsp;Qlik Sense Enterprise November 2017 or higher.&lt;BR /&gt;&lt;BR /&gt;Confirmed on:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Sense November 2017&lt;/LI&gt;
&lt;LI&gt;Qlik Sense February 2018&lt;/LI&gt;
&lt;LI&gt;Qlik Sense April 2018&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;Use the schema outlined in&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Support-Knowledge-Base/How-to-modify-Qlik-Sense-Engine-s-Settings-ini/ta-p/1714789" target="_blank" rel="noopener"&gt;How to modify Qlik Sense Engine's Settings.ini&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;For this change in behaviour there are two key / value pairs to change:&lt;BR /&gt;&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;EnableTTL=1
SessionTTL=NumberOfSeconds​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Setting (1) enabled TTL in the Engine and Setting (2) defines the period of time the Engine will preserve the session after the WebSocket connection is closed.&lt;BR /&gt;&lt;BR /&gt;An example Settings.ini file with TTL enabled for 30 seconds is:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Settings 7]
EnableTTL=1
SessionTTL=30&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When inspecting Chrome's Dev Tools on a browser refresh, we see this response (Fig 2):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fig 2" style="width: 744px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43531iCD673E609338502C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Chrome Dev Tools Session Attached.png" alt="Fig 2" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Fig 2&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H4&gt; &lt;BR /&gt;&lt;STRONG&gt;Concerns:&lt;/STRONG&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;The key may change slightly between builds
&lt;UL&gt;
&lt;LI&gt;For example, SessionTTL becomes TTLSeconds&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Monitor RAM usage since this will increase the session cache of the Engine process, albeit marginally.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2020 16:14:57 GMT</pubDate>
    <dc:creator>Andre_Sostizzo</dc:creator>
    <dc:date>2020-11-04T16:14:57Z</dc:date>
    <item>
      <title>Adjusting the Qlik Sense Engine TTL</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Adjusting-the-Qlik-Sense-Engine-TTL/ta-p/1713815</link>
      <description>&lt;P&gt;From &lt;A href="https://community.qlik.com/t5/Qlik-Support-Knowledge-Base/QIX-engine-memory-management-and-CPU-utilization/ta-p/1716188" target="_blank" rel="noopener"&gt;QIX engine memory management and CPU utilization&lt;/A&gt;:&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="margin-left: 40px;"&gt;In QlikView, a session ends a configurable amount of time after the user closes the browser tab where the session is running (that is, at "All sessions timed out"). In Qlik Sense, which uses WebSocket, the session ends when the user closes the browser tab (that is, at "User activity ends").&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;In practice, this means that when a browser refresh occurs in Qlik Sense, the user will create a new session. When inspecting the frames of the WebSocket traffic to the Engine, an administrator will see&amp;nbsp;&lt;STRONG&gt;SESSION_CREATED&lt;/STRONG&gt;&amp;nbsp;signalling that the Engine is creating a new session.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Like so (Fig 1):&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fig 1 screenshot from Chrome's Developer Tools which allows inspection of the frames of websocket connections" style="width: 744px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43530iF83CEDF8DF9733F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Chrome Dev Tools Session Created.png" alt="Fig 1 screenshot from Chrome's Developer Tools which allows inspection of the frames of websocket connections" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Fig 1 screenshot from Chrome's Developer Tools which allows inspection of the frames of websocket connections&lt;/span&gt;&lt;/span&gt;
&lt;P&gt; &lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There are scenarios where an administrator would prefer to keep sessions open for extended periods of time due to the response time of the Engine when creating a new session versus using an existing session and this article will outline how to accomplish this. This approach requires adjusting the time to live (TTL) settings for the Qlik Sense Engine.&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;This functionality is &lt;STRONG&gt;only&amp;nbsp;&lt;/STRONG&gt;present in&amp;nbsp;Qlik Sense Enterprise November 2017 or higher.&lt;BR /&gt;&lt;BR /&gt;Confirmed on:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Sense November 2017&lt;/LI&gt;
&lt;LI&gt;Qlik Sense February 2018&lt;/LI&gt;
&lt;LI&gt;Qlik Sense April 2018&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;Use the schema outlined in&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Support-Knowledge-Base/How-to-modify-Qlik-Sense-Engine-s-Settings-ini/ta-p/1714789" target="_blank" rel="noopener"&gt;How to modify Qlik Sense Engine's Settings.ini&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;For this change in behaviour there are two key / value pairs to change:&lt;BR /&gt;&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;EnableTTL=1
SessionTTL=NumberOfSeconds​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Setting (1) enabled TTL in the Engine and Setting (2) defines the period of time the Engine will preserve the session after the WebSocket connection is closed.&lt;BR /&gt;&lt;BR /&gt;An example Settings.ini file with TTL enabled for 30 seconds is:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Settings 7]
EnableTTL=1
SessionTTL=30&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When inspecting Chrome's Dev Tools on a browser refresh, we see this response (Fig 2):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fig 2" style="width: 744px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43531iCD673E609338502C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Chrome Dev Tools Session Attached.png" alt="Fig 2" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Fig 2&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H4&gt; &lt;BR /&gt;&lt;STRONG&gt;Concerns:&lt;/STRONG&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;The key may change slightly between builds
&lt;UL&gt;
&lt;LI&gt;For example, SessionTTL becomes TTLSeconds&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Monitor RAM usage since this will increase the session cache of the Engine process, albeit marginally.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 16:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Adjusting-the-Qlik-Sense-Engine-TTL/ta-p/1713815</guid>
      <dc:creator>Andre_Sostizzo</dc:creator>
      <dc:date>2020-11-04T16:14:57Z</dc:date>
    </item>
  </channel>
</rss>

