<?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>Slowly liferay instance</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111275295" />
  <subtitle>Slowly liferay instance</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111275295</id>
  <updated>2026-04-04T12:44:07Z</updated>
  <dc:date>2026-04-04T12:44:07Z</dc:date>
  <entry>
    <title>RE: Slowly liferay instance</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111323717" />
    <author>
      <name>Kyle Joseph Stiemann</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111323717</id>
    <updated>2018-10-25T13:39:51Z</updated>
    <published>2018-10-25T13:39:51Z</published>
    <summary type="html">Glad it&amp;#39;s working for you, Luk! Thanks for posting the solution and for using Liferay and Liferay Faces!&lt;br /&gt;&lt;br /&gt;- Kyle</summary>
    <dc:creator>Kyle Joseph Stiemann</dc:creator>
    <dc:date>2018-10-25T13:39:51Z</dc:date>
  </entry>
  <entry>
    <title>RE: Slowly liferay instance</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111317398" />
    <author>
      <name>Lukas Wilbrand</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111317398</id>
    <updated>2018-10-25T09:31:19Z</updated>
    <published>2018-10-25T09:31:19Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Thank you all for the answers! I&amp;nbsp;appreciate it!&lt;br&gt;&lt;br&gt;It was the MaxMetaspaceSize which was set to the standard 512mb...&lt;br&gt;As soon as I deployed only one war-file, it came to overhead.&lt;br&gt;&lt;br&gt;I've removed the MaxMetaspaceSize and now and it works perfectly!&amp;nbsp;&lt;br&gt;&lt;br&gt;For the sake of completeness:&lt;br&gt;&lt;pre&gt;&lt;code&gt;set "CATALINA_OPTS=%CATALINA_OPTS% -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -XX:NewRatio=3 -Xms1560m -Xmx3072m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=20 -XX:ParallelGCThreads=8"
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Best regards&lt;br&gt;- Luk&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Lukas Wilbrand</dc:creator>
    <dc:date>2018-10-25T09:31:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: Slowly liferay instance</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111313632" />
    <author>
      <name>Kyle Joseph Stiemann</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111313632</id>
    <updated>2018-10-24T19:02:22Z</updated>
    <published>2018-10-24T19:02:22Z</published>
    <summary type="html">Hi Luk,&lt;br /&gt;How many portlets/WARs do you have deployed? Have you set the &lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace"&gt;MaxMetaspaceSize&lt;/span&gt;? Can you list all your JVM memory settings?&lt;br /&gt;&lt;br /&gt;- Kyle</summary>
    <dc:creator>Kyle Joseph Stiemann</dc:creator>
    <dc:date>2018-10-24T19:02:22Z</dc:date>
  </entry>
  <entry>
    <title>RE: Slowly liferay instance</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111311206" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111311206</id>
    <updated>2018-10-24T14:41:13Z</updated>
    <published>2018-10-24T14:41:13Z</published>
    <summary type="html">&lt;blockquote&gt;Luk WlbrI tried to deinstall elasticsearch in Liferay, because I saw that every garbage collection came from elasticseach,&lt;br /&gt;but now i cannot even deploy my portlets.&lt;br /&gt;&lt;/blockquote&gt;You may want to run Elasticsearch in a separate JVM (the only production-supported way to operate it in Liferay DXP). Read about the setup in &lt;a href="https://dev.liferay.com/ca_ES/discover/deployment/-/knowledge_base/7-1/installing-a-search-engine"&gt;these (sub-)chapters&lt;/a&gt;. This way you can set explicit parameters just for Elasticsearch. Liferay requires some search engine to run, and the embedded Elasticsearch is good for demo and test, but not for productive use.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2018-10-24T14:41:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: Slowly liferay instance</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111285533" />
    <author>
      <name>Lukas Wilbrand</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111285533</id>
    <updated>2018-10-23T09:31:13Z</updated>
    <published>2018-10-23T09:31:13Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;I tried to deinstall elasticsearch in Liferay, because I saw that every garbage collection came from elasticseach,&lt;br&gt;but now i cannot even deploy my portlets.&lt;br&gt;&lt;br&gt;I'm getting an IndexOutOfBounds:&lt;pre&gt;&lt;code&gt;Oct 23 11:12:21 sdacims01t catalina.sh[9046]: 2018-10-23 09:12:21.960 ERROR [http-nio-8080-exec-6][PortletRequestDispatcherImpl:299] Unable to dispatch request: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
Oct 23 11:12:35 sdacims01t catalina.sh[9046]: 2018-10-23 09:12:24.926 ERROR [http-nio-8080-exec-6][PortletServlet:112] javax.portlet.PortletException: org.apache.jasper.JasperException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
Oct 23 11:12:35 sdacims01t catalina.sh[9046]: javax.portlet.PortletException: org.apache.jasper.JasperException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
Oct 23 11:12:35 sdacims01t catalina.sh[9046]: &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; at com.liferay.portlet.internal.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:301)
Oct 23 11:12:35 sdacims01t catalina.sh[9046]: &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; at com.liferay.portlet.internal.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:128)
Oct 23 11:12:35 sdacims01t catalina.sh[9046]: &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:594)
Oct 23 11:12:35 sdacims01t catalina.sh[9046]: &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:610)
Oct 23 11:12:35 sdacims01t catalina.sh[9046]: &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.doView(MVCPortlet.java:160)
Oct 23 11:12:35 sdacims01t catalina.sh[9046]: &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; at com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:305)
Oct 23 11:12:35 sdacims01t catalina.sh[9046]: &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.doDispatch(MVCPortlet.java:497)
Oct 23 11:12:35 sdacims01t catalina.sh[9046]: &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; at com.liferay.marketplace.app.manager.web.internal.portlet.MarketplaceAppManagerPortlet.doDispatch(MarketplaceAppManagerPortlet.java:413)
.
.
.
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Are there any others configurations to optimize performance?&lt;br&gt;&lt;br&gt;I'm helpless...&lt;br&gt;​​​​​​​&lt;br&gt;&lt;br&gt;Thanks in advance.&lt;br&gt;&lt;br&gt;- Luk&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Lukas Wilbrand</dc:creator>
    <dc:date>2018-10-23T09:31:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: Slowly liferay instance</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111281632" />
    <author>
      <name>Lukas Wilbrand</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111281632</id>
    <updated>2018-10-23T07:25:43Z</updated>
    <published>2018-10-23T07:25:43Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;blockquote&gt;Kyle Joseph StiemannHi Luk,&lt;br&gt;Have you tried increasing the &lt;a href="https://stackoverflow.com/questions/5374455/what-does-java-option-xmx-stand-for"&gt;Java heap memory size&lt;/a&gt; for your server? For example, in Tomcat you can increase the memory by increasing the values of &lt;span style="font-family: &amp;quot;Courier New&amp;quot;"&gt;Xmx&lt;/span&gt; and/or &lt;span style="font-family: &amp;quot;Courier New&amp;quot;"&gt;Xms&lt;/span&gt; in &lt;strong&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;"&gt;$LIFERAY_HOME/tomcat/bin/setenv.sh&lt;/span&gt;&lt;/strong&gt; (or &lt;strong&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;"&gt;setenv.bat&lt;/span&gt;&lt;/strong&gt; for Windows):&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;-Xmx3072m -Xms512m&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;- Kyle&lt;/blockquote&gt;Hi Kyle,&lt;br&gt;&lt;br&gt;Thanks for your reply! &lt;br&gt;Yes I tried it, but&amp;nbsp;no matter how high I set the heapsize, I get an overhead.&lt;br&gt;Even if the heapsize isn't&amp;nbsp;even quite reached I get an overhead.&lt;br&gt;&lt;br&gt;- Luk&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Lukas Wilbrand</dc:creator>
    <dc:date>2018-10-23T07:25:43Z</dc:date>
  </entry>
  <entry>
    <title>RE: Slowly liferay instance</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111276658" />
    <author>
      <name>Kyle Joseph Stiemann</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111276658</id>
    <updated>2018-10-22T18:12:32Z</updated>
    <published>2018-10-22T18:12:32Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi Luk,&lt;br&gt;Have you tried increasing the &lt;a href="https://stackoverflow.com/questions/5374455/what-does-java-option-xmx-stand-for"&gt;Java heap memory size&lt;/a&gt; for your server? For example, in Tomcat you can increase the memory by increasing the values of &lt;span style="font-family: &amp;quot;Courier New&amp;quot;"&gt;Xmx&lt;/span&gt; and/or &lt;span style="font-family: &amp;quot;Courier New&amp;quot;"&gt;Xms&lt;/span&gt; in &lt;strong&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;"&gt;$LIFERAY_HOME/tomcat/bin/setenv.sh&lt;/span&gt;&lt;/strong&gt; (or &lt;strong&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;"&gt;setenv.bat&lt;/span&gt;&lt;/strong&gt; for Windows):&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;-Xmx3072m -Xms512m&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;- Kyle&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Kyle Joseph Stiemann</dc:creator>
    <dc:date>2018-10-22T18:12:32Z</dc:date>
  </entry>
  <entry>
    <title>Slowly liferay instance</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111275294" />
    <author>
      <name>Lukas Wilbrand</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111275294</id>
    <updated>2018-10-22T15:13:17Z</updated>
    <published>2018-10-22T15:13:17Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hello everybody,&lt;br&gt;&lt;br&gt;my liferay 7.1.0 CE GA1&amp;nbsp;is totally slow... As soon as I deploy a portlet I'm getting a bunch of overheads.&lt;br&gt;&lt;br&gt; &lt;pre&gt;&lt;code&gt;[2018-10-22T14:54:43,400][INFO ][o.e.m.j.JvmGcMonitorService] [3npzYkq] [gc][84] overhead, spent [1.4s] collecting in the last [1.8s]
[2018-10-22T14:54:45,385][INFO ][o.e.m.j.JvmGcMonitorService] [3npzYkq] [gc][85] overhead, spent [1.7s] collecting in the last [1.9s]
[2018-10-22T14:54:47,083][INFO ][o.e.m.j.JvmGcMonitorService] [3npzYkq] [gc][86] overhead, spent [1.3s] collecting in the last [1.6s]
[2018-10-22T14:54:48,926][INFO ][o.e.m.j.JvmGcMonitorService] [3npzYkq] [gc][87] overhead, spent [1.6s] collecting in the last [1.8s]
[2018-10-22T14:54:51,012][INFO ][o.e.m.j.JvmGcMonitorService] [3npzYkq] [gc][88] overhead, spent [1.5s] collecting in the last [2s]
[2018-10-22T14:54:53,237][WARN ][o.e.m.j.JvmGcMonitorService] [3npzYkq] [gc][89] overhead, spent [2s] collecting in the last [2.2s]
[2018-10-22T14:54:54,763][INFO ][o.e.m.j.JvmGcMonitorService] [3npzYkq] [gc][90] overhead, spent [1.2s] collecting in the last [1.5s]
[2018-10-22T14:54:57,302][INFO ][o.e.m.j.JvmGcMonitorService] [3npzYkq] [gc][91] overhead, spent [2.2s] collecting in the last [2.5s]
[2018-10-22T14:54:59,513][INFO ][o.e.m.j.JvmGcMonitorService] [3npzYkq] [gc][92] overhead, spent [1.8s] collecting in the last [2.2s]
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Sometimes when i deploy more than one portlet, I'm getting so many overheads, that i can't even stop liferay.&lt;br&gt;These are standard portlets built just like the Richfaces sample portlet.&lt;br&gt;&lt;br&gt;I've tested the problem on Windows and Ubuntu with the same&amp;nbsp;behavior.&lt;br&gt;&lt;br&gt;Does anyone know why it is so slow?&amp;nbsp;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Lukas Wilbrand</dc:creator>
    <dc:date>2018-10-22T15:13:17Z</dc:date>
  </entry>
</feed>
