<?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 JSESSIONID and concurrent requests in Management</title>
    <link>https://community.cisco.com/t5/management/jsessionid-and-concurrent-requests/m-p/3455594#M658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an application that is making a lot of executeSqlQuery requests.. and these requests may be sequential, but they may also be concurrent (no way to tell beforehand.. ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given that the doc mentions JSESSIONID in the context of sequential execution I'm wondering if you'd still get any benefit if some request may be concurrent.. would you have to determine which requests are concurrent and which are sequential and remove JSESSIONID from the concurrent ones, or could you keep using the JSESSIONID for every request regardless (the whole thing starts with some initial data extraction that is sequential.. but what happens thereafter is very dynamic).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2016 16:47:38 GMT</pubDate>
    <dc:creator>stephan.steiner</dc:creator>
    <dc:date>2016-10-19T16:47:38Z</dc:date>
    <item>
      <title>JSESSIONID and concurrent requests</title>
      <link>https://community.cisco.com/t5/management/jsessionid-and-concurrent-requests/m-p/3455594#M658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an application that is making a lot of executeSqlQuery requests.. and these requests may be sequential, but they may also be concurrent (no way to tell beforehand.. ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given that the doc mentions JSESSIONID in the context of sequential execution I'm wondering if you'd still get any benefit if some request may be concurrent.. would you have to determine which requests are concurrent and which are sequential and remove JSESSIONID from the concurrent ones, or could you keep using the JSESSIONID for every request regardless (the whole thing starts with some initial data extraction that is sequential.. but what happens thereafter is very dynamic).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 16:47:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/jsessionid-and-concurrent-requests/m-p/3455594#M658</guid>
      <dc:creator>stephan.steiner</dc:creator>
      <dc:date>2016-10-19T16:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: JSESSIONID and concurrent requests</title>
      <link>https://community.cisco.com/t5/management/jsessionid-and-concurrent-requests/m-p/3455595#M659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;This is actually a Tomcat thing, and the way I understand it is that you can't do concurrent requests with the same JSESSIONID.&amp;nbsp;&amp;nbsp; I suspect that even if it "works", it will simply take what you planned as a concurrent request and queue it as the next sequential request.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I searched the Tomcat docs and couldn't find out if Tomcat will queue a duplicate JSESSIONID request while it's working on one, thread it as a concurrent request, or reject the second request or respond that it's busy.&amp;nbsp; My gut tells me the second request will get queued, but the only way to find out is to either find info in the docs that I couldn't find, or test it.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Either way, unless you can find something in the Tomcat docs I can't find, if you want to ensure that you run two requests concurrently, you'd have to start a new session and get a new JSESSIONID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 18:29:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/jsessionid-and-concurrent-requests/m-p/3455595#M659</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2016-10-19T18:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: JSESSIONID and concurrent requests</title>
      <link>https://community.cisco.com/t5/management/jsessionid-and-concurrent-requests/m-p/3455596#M660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I just give it a shot and see where it gets me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 19:25:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/jsessionid-and-concurrent-requests/m-p/3455596#M660</guid>
      <dc:creator>stephan.steiner</dc:creator>
      <dc:date>2016-10-19T19:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: JSESSIONID and concurrent requests</title>
      <link>https://community.cisco.com/t5/management/jsessionid-and-concurrent-requests/m-p/3455597#M661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Request authentication is apparently a quite heavyweight and latency-causing process for AXL, and re-using the session cookie apparently reduces the overhead by a couple of orders of magnitude.&amp;nbsp; Not aware of any impact on processing order, so best practice is to re-use it whenever feasible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 20:41:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/jsessionid-and-concurrent-requests/m-p/3455597#M661</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2016-10-19T20:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: JSESSIONID and concurrent requests</title>
      <link>https://community.cisco.com/t5/management/jsessionid-and-concurrent-requests/m-p/3455598#M662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright.. I've just added support for the cookie into my AXL lib.. first program to use it will go productive tonight in a large installation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 15:20:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/jsessionid-and-concurrent-requests/m-p/3455598#M662</guid>
      <dc:creator>stephan.steiner</dc:creator>
      <dc:date>2016-10-20T15:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: JSESSIONID and concurrent requests</title>
      <link>https://community.cisco.com/t5/management/jsessionid-and-concurrent-requests/m-p/3455599#M663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So far no problems (except maybe the 503 behavior I mentioned yesterday, but that may be unrelated). Can't say I've monitored CPU Usage closely though but at least we don't seem to be generating any new problems by re-using the JSESSIONID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 12:39:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/jsessionid-and-concurrent-requests/m-p/3455599#M663</guid>
      <dc:creator>stephan.steiner</dc:creator>
      <dc:date>2016-10-27T12:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: JSESSIONID and concurrent requests</title>
      <link>https://community.cisco.com/t5/management/jsessionid-and-concurrent-requests/m-p/3455600#M664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to hear, thanks for the trip report &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I would note that re-using the session will not magically reduce the actual AXL/SQL processing overhead, but rather means that the AXL service does not have to spin up, execute and wait for the authentication backend (typically LDAP) to process and respond to the auth request.&amp;nbsp; Apparently that process is pretty heavy and latent, so a clean shortcut right at the Tomcat layer is really beneficial.&lt;/P&gt;&lt;P&gt;I also understand that recent CUCM versions have fairly tight throttle on rapid sequential/concurrent full-stack authentication attempts, which session re-use should avoid.&amp;nbsp; (I suppose that might possibly be related to your other 503 throttle issue...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 15:56:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/jsessionid-and-concurrent-requests/m-p/3455600#M664</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2016-10-27T15:56:29Z</dc:date>
    </item>
  </channel>
</rss>

