<?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>Can I generate an alarm related to the Garbage Collector?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120569144" />
  <subtitle>Can I generate an alarm related to the Garbage Collector?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120569144</id>
  <updated>2026-04-06T02:04:09Z</updated>
  <dc:date>2026-04-06T02:04:09Z</dc:date>
  <entry>
    <title>RE: Can I generate an alarm related to the Garbage Collector?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120583653" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120583653</id>
    <updated>2021-02-01T10:17:57Z</updated>
    <published>2021-02-01T10:16:45Z</published>
    <summary type="html">&lt;p&gt;Sounds like an x-y problem - if this is an option, then it's a
  feature of the underlying JVM and you should check which exact JVM
  you're using (vendor+version) and check the configuration options of
  the GCs available.&lt;/p&gt;
&lt;p&gt;I don't expect notification &amp;quot;during&amp;quot; stop-the-world events.
  But GC is typically well configurable and you should look into those
  options. From ancient past I remember the recommendation for the
  dimension of the heap size to be &amp;quot;as small as possible with
  reasonable margin&amp;quot;, so that a full GC doesn't take awfully long.
  I'm not sure if that still applies to current GCs, or to which of them.&lt;/p&gt;
&lt;p&gt;If you have not configured anything for your GC, then this is where
  you should start: Configure the algorithm, default sizes of the
  different generations of memory. But in general it should be something
  that your JVM documentation reveals, rather than Liferay.&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2021-02-01T10:16:45Z</dc:date>
  </entry>
  <entry>
    <title>Can I generate an alarm related to the Garbage Collector?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120569143" />
    <author>
      <name>Pedro Llanten</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120569143</id>
    <updated>2021-01-28T17:39:34Z</updated>
    <published>2021-01-28T15:10:04Z</published>
    <summary type="html">&lt;p&gt;The other day we showed the Visualvm to our IT manager so that he
  could monitor the Liferay server and he told us that he did not want
  to be looking at that screen, but wanted that if the Garbage Collector
  took more than a certain time, an alarm would be generated and he
  waited for a message or mail to reach him.&lt;/p&gt;
&lt;p&gt;I have been searching the internet and I have not found anything that
  does that, only plugins like the Visual GC that are detailed but do
  not warn. Our manager's idea is not to have one person watching.&lt;/p&gt;
&lt;p&gt;Is there a process that I can monitor and realize how long the
  Garbage Collector is taking?&lt;/p&gt;
&lt;p&gt;Yesterday it occurred to me that maybe I could monitor
  &amp;quot;Stop-the-World&amp;quot;, is it possible? How do I recognize it?&lt;/p&gt;
&lt;p&gt;Do you have any ideas or have you implemented something that can help me?&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;</summary>
    <dc:creator>Pedro Llanten</dc:creator>
    <dc:date>2021-01-28T15:10:04Z</dc:date>
  </entry>
</feed>
