<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Issue with connections availability in Liferay</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122551678" />
  <subtitle>Issue with connections availability in Liferay</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122551678</id>
  <updated>2026-04-04T08:02:13Z</updated>
  <dc:date>2026-04-04T08:02:13Z</dc:date>
  <entry>
    <title>RE: Issue with connections availability in Liferay</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122673735" />
    <author>
      <name>jenny james</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122673735</id>
    <updated>2024-05-24T13:08:32Z</updated>
    <published>2024-05-24T09:13:52Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think you should&amp;nbsp;consider reviewing Liferay's internal processes,
  particularly those related to SchedulerEngine, to see if they're
  inadvertently causing the surge in queries. Additionally, ensure any
  necessary optimizations or configurations are in place for Liferay's
  internal workings to prevent such issues in the future.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</summary>
    <dc:creator>jenny james</dc:creator>
    <dc:date>2024-05-24T09:13:52Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Issue with connections availability in Liferay</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122555344" />
    <author>
      <name>DIMITRIS VARDIS</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122555344</id>
    <updated>2024-04-23T16:09:21Z</updated>
    <published>2024-04-18T09:27:44Z</published>
    <summary type="html">&lt;p&gt;Hi Olaf,&lt;/p&gt;
&lt;p&gt;Thank you for your answer. just to clarify that the issue started
  without any changes to the site trafic just after we upgraded from
  release &amp;quot;7.3.5 GA 6&amp;quot;  to release &amp;quot;7.4.3.GA 85&amp;quot;&lt;/p&gt;</summary>
    <dc:creator>DIMITRIS VARDIS</dc:creator>
    <dc:date>2024-04-18T09:27:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issue with connections availability in Liferay</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122553373" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122553373</id>
    <updated>2024-04-17T12:18:20Z</updated>
    <published>2024-04-17T12:18:19Z</published>
    <summary type="html">&lt;p&gt;to get to the root, I'd recommend looking at log files: Access logs
  (in case of an attack during the night) and - with adapted log
  settings for the scheduler - for its information. You might also want
  to check if you have (legitimately, but accidentally) scheduled &lt;em&gt;a
  lot&lt;/em&gt;​​​​​​​ of tasks at the same time, and spread out their
  execution a bit.&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2024-04-17T12:18:19Z</dc:date>
  </entry>
  <entry>
    <title>Issue with connections availability in Liferay</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122551677" />
    <author>
      <name>DIMITRIS VARDIS</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122551677</id>
    <updated>2024-04-17T12:07:43Z</updated>
    <published>2024-04-16T14:44:44Z</published>
    <summary type="html">&lt;p&gt;
  &lt;span style="font-size: 11.0pt;"&gt;
    &lt;span style="font-family: Calibri , sans-serif;"&gt;We are experiencing
      an issue with connections availability in Liferay that started
      occurring in PROD environment after Liferay upgrade from 7.3 GA1
      into version 7.4.3.85 . The issue appears in Liferay logs with the error:&lt;br&gt;
      &lt;br&gt; 2024-02-19 16:55:33.775 ERROR
      [http-nio-8080-exec-357][SqlExceptionHelper:142] &lt;b&gt;HikariPool-1 -
        Connection is not available, request timed out after 30000ms.&lt;/b&gt;
      &lt;br&gt;
      &lt;br&gt; We have ruled out as root causes through testing and
      inspecting the application and Liferay logs, the depletion of
      connection in the pool (we increased the connection pool) and any
      long running queries (we did not find anything taking more than 30
      sec). &lt;/span&gt;
  &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;span style="font-size: 11.0pt;"&gt;
    &lt;span style="font-family: Calibri , sans-serif;"&gt;We have enabled
      access log on Liferay as well as Postgres logging and by checking
      them at the time of the error occurrences (timestamp is -2h)  we
      identified a &lt;b&gt;specific query in Liferay’s Lock_ table that is
        executed almost 100 times during one second for specific
        parameter lockId&lt;/b&gt;. This sudden increase in active connections
      was observed in dashboard by AM team also in previous occurrences
       of the error.&lt;br&gt;
      &lt;br&gt; 2024-02-19 14:55:02.476 GMT [36248] LOG:  execute
      &amp;lt;unnamed&amp;gt;: select lockimpl0_.lockId as lockid1_0_0_,
      lockimpl0_.mvccVersion as mvccvers2_0_0_, lockimpl0_.uuid_ as
      uuid_3_0_0_, lockimpl0_.companyId as companyi4_0_0_,
      lockimpl0_.userId as userid5_0_0_, lockimpl0_.userName as
      username6_0_0_, lockimpl0_.createDate as createda7_0_0_,
      lockimpl0_.className as classnam8_0_0_, lockimpl0_.key_ as
      key_9_0_0_, lockimpl0_.owner as owner10_0_0_,
      lockimpl0_.inheritable as inherit11_0_0_,
      lockimpl0_.expirationDate as expirat12_0_0_ from Lock_ lockimpl0_
      where lockimpl0_.lockId=$1&lt;br&gt; 2024-02-19 14:55:02.476 GMT [36248]
      DETAIL:  parameters: $1 = '1288145'&lt;br&gt;
      &lt;br&gt; Unfortunately, these records for specific lockIds are not
      present currently in Lock_ table in order to identify what caused
      them but at this point we believe they are not related to our
      application and we would like to prove they are related to Liferay
      internally e.g with. SchedulerEngine.&lt;/span&gt;
  &lt;/span&gt;
  &lt;br&gt;  &lt;/p&gt;</summary>
    <dc:creator>DIMITRIS VARDIS</dc:creator>
    <dc:date>2024-04-16T14:44:44Z</dc:date>
  </entry>
</feed>
