<?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>topic Re: [Viya 3.5 Administration] • How to manage idle/runaway sessions automatically ? in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Viya-3-5-Administration-How-to-manage-idle-runaway-sessions/m-p/885965#M26990</link>
    <description>&lt;P&gt;Interesting challenge. We had a similar issue in our SAS 9.4 installation. We found that stopping and restarting server services every day was the best solution for us. As well as getting rid of orphan SAS processes it also enables the CLEANWORK utility to work successfully to delete SAS WORK folders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We also do a monthly server reboot and that also helps minimise orphan server processes.&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jul 2023 00:43:38 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2023-07-23T00:43:38Z</dc:date>
    <item>
      <title>[Viya 3.5 Administration] • How to manage idle/runaway sessions automatically ?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Viya-3-5-Administration-How-to-manage-idle-runaway-sessions/m-p/884669#M26975</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This video is nice&amp;nbsp;&lt;A href="https://video.sas.com/detail/video/5280999085001/session-management-in-sas%C2%AE-viya%E2%84%A2:-detecting-idle-or-runaway-sessions" target="_blank" rel="noopener"&gt;Session Management in SAS® Viya™: Detecting Idle or Runaway Sessions - SAS Video Portal&lt;/A&gt;&amp;nbsp;but it's all manual&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And in my opinion, it's better to achive this with some automations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to do it with sas-admin CLI or with some REST API endpoint ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reading&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 13:52:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Viya-3-5-Administration-How-to-manage-idle-runaway-sessions/m-p/884669#M26975</guid>
      <dc:creator>k4minou</dc:creator>
      <dc:date>2023-07-13T13:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: [Viya 3.5 Administration] • How to manage idle/runaway sessions automatically ?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Viya-3-5-Administration-How-to-manage-idle-runaway-sessions/m-p/885753#M26976</link>
      <description>&lt;P&gt;Moved post here for better visibility.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 05:20:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Viya-3-5-Administration-How-to-manage-idle-runaway-sessions/m-p/885753#M26976</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-07-21T05:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: [Viya 3.5 Administration] • How to manage idle/runaway sessions automatically ?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Viya-3-5-Administration-How-to-manage-idle-runaway-sessions/m-p/885823#M26984</link>
      <description>You could probably identify and terminate idle sessions with the CAS REST API, detailed here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developer.sas.com/apis/cas/rest/current/apidoc.html" target="_blank"&gt;https://developer.sas.com/apis/cas/rest/current/apidoc.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I'm not sure if you'd be able to look at resource consumption using the API though.</description>
      <pubDate>Fri, 21 Jul 2023 14:02:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Viya-3-5-Administration-How-to-manage-idle-runaway-sessions/m-p/885823#M26984</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-07-21T14:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: [Viya 3.5 Administration] • How to manage idle/runaway sessions automatically ?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Viya-3-5-Administration-How-to-manage-idle-runaway-sessions/m-p/885929#M26989</link>
      <description>&lt;P&gt;Thank you for your time ^^&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I already check the apidoc, there is nothing relevant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;About the CLI, there is a possibility to list the iddle/active sessions. And by saying that, I realise that I was not clear&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In gridmon, I see a lot of orphans process that last for severals days. This is mainly due to lost connexions (I believe that dev bugs lead also to that but the users/dev just dont want to wait and time to time, they just leave their web application viya...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is I want to kill those listed process in gridmon (automatically, not manually).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I should take a look at the OS process, maybe... The question is if there is a way by OS side, how to be sure that I hit the good process listed by gridmon ? =}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gridmon is nice but too limited, there is no way to search a process of a specific user, or list all the process by conditions etc etc... It just list and we have to parse stuff manually... My source :&lt;A href="https://documentation.sas.com/doc/en/calcdc/3.4/calserverscas/n03061viyaservers000000admin.htm" target="_blank"&gt;&amp;nbsp;SAS Help Center: SAS Cloud Analytic Services: How To (gridmon.sh),&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even the record function is kinda useless...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For now the best alternatives to flush all those trashy process listed in gridmon is a clean/restart of viya but it's still a frustration to me...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thx for reading ^^&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2023 10:48:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Viya-3-5-Administration-How-to-manage-idle-runaway-sessions/m-p/885929#M26989</guid>
      <dc:creator>k4minou</dc:creator>
      <dc:date>2023-07-22T10:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: [Viya 3.5 Administration] • How to manage idle/runaway sessions automatically ?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Viya-3-5-Administration-How-to-manage-idle-runaway-sessions/m-p/885965#M26990</link>
      <description>&lt;P&gt;Interesting challenge. We had a similar issue in our SAS 9.4 installation. We found that stopping and restarting server services every day was the best solution for us. As well as getting rid of orphan SAS processes it also enables the CLEANWORK utility to work successfully to delete SAS WORK folders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We also do a monthly server reboot and that also helps minimise orphan server processes.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2023 00:43:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Viya-3-5-Administration-How-to-manage-idle-runaway-sessions/m-p/885965#M26990</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-07-23T00:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: [Viya 3.5 Administration] • How to manage idle/runaway sessions automatically ?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Viya-3-5-Administration-How-to-manage-idle-runaway-sessions/m-p/886091#M26994</link>
      <description>The REST API can do these things.&lt;BR /&gt;The endpoint /cas/sessions can be queried to list sessions. This response includes idle time for each session.&lt;BR /&gt;You can use /cas/sessions/session_id with the DELETE method to terminate the session.</description>
      <pubDate>Mon, 24 Jul 2023 13:45:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Viya-3-5-Administration-How-to-manage-idle-runaway-sessions/m-p/886091#M26994</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-07-24T13:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: [Viya 3.5 Administration] • How to manage idle/runaway sessions automatically ?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Viya-3-5-Administration-How-to-manage-idle-runaway-sessions/m-p/886657#M27026</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/250586"&gt;@k4minou&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Have you been able to try the two APIs suggested by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 15:38:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Viya-3-5-Administration-How-to-manage-idle-runaway-sessions/m-p/886657#M27026</guid>
      <dc:creator>joeFurbee</dc:creator>
      <dc:date>2023-07-27T15:38:19Z</dc:date>
    </item>
  </channel>
</rss>

