<?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>RMI Tcp connection</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114259248" />
  <subtitle>RMI Tcp connection</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114259248</id>
  <updated>2026-04-06T20:14:28Z</updated>
  <dc:date>2026-04-06T20:14:28Z</dc:date>
  <entry>
    <title>RE: RMI Tcp connection</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114298218" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114298218</id>
    <updated>2019-07-15T14:01:07Z</updated>
    <published>2019-07-15T14:01:07Z</published>
    <summary type="html">Screenshots show only a small fraction of the available data.&lt;br /&gt;Further up, I&amp;#39;ve pointed to a dzone article. Did you follow it - particularly the part that I&amp;#39;ve quoted (what to do when &amp;#34;ulimit -u&amp;#34; is way ahead but you still run into issues)? You might not be able to stick more memory into the server, but you can lower the JVM&amp;#39;s assigned memory and through this make more memory available to the OS. Continue through that list and let us know what you&amp;#39;ve tried, and what the results were.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-07-15T14:01:07Z</dc:date>
  </entry>
  <entry>
    <title>RE: RMI Tcp connection</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114296892" />
    <author>
      <name>sabri ben salem</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114296892</id>
    <updated>2019-07-15T09:58:58Z</updated>
    <published>2019-07-15T09:58:58Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;Yes we are running Liferay as a user, the values in the &amp;#34; 2019-07-12_1330_001.png image are for the liferay user.&lt;br /&gt;You can see in attached screen the result of the command for Liferay user.&lt;br /&gt;I also attached the dump analyze from &lt;a href="https://fastthread.io/"&gt;https://fastthread.io/&lt;/a&gt;</summary>
    <dc:creator>sabri ben salem</dc:creator>
    <dc:date>2019-07-15T09:58:58Z</dc:date>
  </entry>
  <entry>
    <title>RE: RMI Tcp connection</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114295424" />
    <author>
      <name>Arun Das</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114295424</id>
    <updated>2019-07-15T07:42:27Z</updated>
    <published>2019-07-15T07:42:27Z</published>
    <summary type="html">From the attachments, noticed that you are running liferay using liferay user. Have you set the ulimit for that user or the results are for root ? As suggested by Olaf, this might be due to ulimit. We have previously encountered similar error and setting the ulimit values solved the issue. Not sure how to set on SUSE, here is the link for RHEL &lt;a href="https://access.redhat.com/solutions/61334"&gt;https://access.redhat.com/solutions/61334&lt;/a&gt;Sample belowliferay soft nofile 4096&lt;br /&gt;liferay hard nofile 16384&lt;br /&gt;liferay soft nproc 4096&lt;br /&gt;liferay hard nproc 16384</summary>
    <dc:creator>Arun Das</dc:creator>
    <dc:date>2019-07-15T07:42:27Z</dc:date>
  </entry>
  <entry>
    <title>RE: RMI Tcp connection</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114291272" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114291272</id>
    <updated>2019-07-14T08:52:58Z</updated>
    <published>2019-07-14T08:52:58Z</published>
    <summary type="html">One of the first google hits on this error message is &lt;a href="https://dzone.com/articles/troubleshoot-outofmemoryerror-unable-to-create-new"&gt;https://dzone.com/articles/troubleshoot-outofmemoryerror-unable-to-create-new. &lt;/a&gt;It says in the paragraph after the &amp;#34;ulimit&amp;#34; suggestion:&lt;br /&gt;If you don’t see a high number of threads created and “ulimit &amp;#8211;u” value is well ahead then it’s indicative that your application has grown organically and needs more memory to create threads. In such circumstance, allocate more memory to the machine. It should solve the problem.&lt;br /&gt;Followed by more paragraphs. Let us know the answer to those.&lt;br /&gt;Another option is to check for the creators of the threads: Are your custom components creating these threads to process something in the background? Or are those &amp;#34;legitimate&amp;#34; (e.g. caused by load) threads for http processing? Take thread dumps to figure out who creates the threads.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-07-14T08:52:58Z</dc:date>
  </entry>
  <entry>
    <title>RE: RMI Tcp connection</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114270199" />
    <author>
      <name>sabri ben salem</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114270199</id>
    <updated>2019-07-12T17:31:37Z</updated>
    <published>2019-07-12T17:31:37Z</published>
    <summary type="html">Attached images contains the result of the command ulimit -u&lt;br /&gt;The OS we are using is SUSE Linux Enterprise Server 12 SP3.&lt;br /&gt;Which we only have 2 services Liferay and Apache.&lt;br /&gt;Apache &amp;#34;2.4&amp;#34; connecting to Liferay using mod_jk.</summary>
    <dc:creator>sabri ben salem</dc:creator>
    <dc:date>2019-07-12T17:31:37Z</dc:date>
  </entry>
  <entry>
    <title>RE: RMI Tcp connection</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114267737" />
    <author>
      <name>sabri ben salem</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114267737</id>
    <updated>2019-07-12T14:23:15Z</updated>
    <published>2019-07-12T14:23:15Z</published>
    <summary type="html">Attached images contains the result of the command ulimit -u&lt;br /&gt;The OS we are using is SUSE Linux Enterprise Server 12 SP3.&lt;br /&gt;Which we only have 2 services Liferay and Apache.&lt;br /&gt;Apache &amp;#34;2.4&amp;#34; connecting to Liferay using mod_jk.</summary>
    <dc:creator>sabri ben salem</dc:creator>
    <dc:date>2019-07-12T14:23:15Z</dc:date>
  </entry>
  <entry>
    <title>RE: RMI Tcp connection</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114267416" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114267416</id>
    <updated>2019-07-12T14:10:19Z</updated>
    <published>2019-07-12T14:10:19Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;sabri ben salem:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;The memory in the server it&amp;#39;s ok. we have &lt;strong&gt;16GB&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;This is the JVM configuration in the &lt;strong&gt;setenv.sh&lt;/strong&gt; file :  &lt;br /&gt;&lt;br /&gt;CATALINA_OPTS=&amp;#34;$CATALINA_OPTS ... -Xmx8144m ...&lt;/blockquote&gt;&lt;br /&gt;I&amp;#39;m not really sure you know what you have, but settings for memory do not guarantee that you have memory available at runtime...</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-07-12T14:10:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: RMI Tcp connection</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114265826" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114265826</id>
    <updated>2019-07-12T11:34:28Z</updated>
    <published>2019-07-12T11:34:28Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;sabri ben salem:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;div class="quote-title"&gt;Olaf Kock:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;div class="quote-title"&gt;sabri ben salem:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;The memory in the server it&amp;#39;s ok. we have &lt;strong&gt;16GB&lt;/strong&gt;.&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/blockquote&gt;Have you seen &lt;a href="http://lmgtfy.com/?q=%22java.lang.OutOfMemoryError%3A%20unable%20to%20create%20new%20native%20thread%22&amp;amp;s=g"&gt;what&amp;#39;s available&lt;/a&gt; on that error message? It&amp;#39;s pretty straightforward.&lt;br /&gt;No pun intended, but a good opportunity to use lmgtfy again ;)&lt;/blockquote&gt;It&amp;#39;s pretty straightforward. &amp;#34;We have been modifying the JVM values as seen above.  But we always get the same outcome. Then node goes down once we start to do anything i.e add/edit pages or view any control panel tab. The &amp;#34;java.lang.OutOfMemoryError: unable to create new native thread&amp;#34; is didplayed in the logs&lt;/blockquote&gt;Indeed, it&amp;#39;s pretty straightforward. Try the &amp;#34;ulimit -u&amp;#34; suggestions. You have some limitations on your underlying operating system (either the ulimit, or another) which the JVM runs in, thus runs into this issue.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-07-12T11:34:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: RMI Tcp connection</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114264686" />
    <author>
      <name>sabri ben salem</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114264686</id>
    <updated>2019-07-12T09:34:12Z</updated>
    <published>2019-07-12T09:34:12Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Olaf Kock:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;div class="quote-title"&gt;sabri ben salem:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;The memory in the server it&amp;#39;s ok. we have &lt;strong&gt;16GB&lt;/strong&gt;.&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/blockquote&gt;Have you seen &lt;a href="http://lmgtfy.com/?q=%22java.lang.OutOfMemoryError%3A%20unable%20to%20create%20new%20native%20thread%22&amp;amp;s=g"&gt;what&amp;#39;s available&lt;/a&gt; on that error message? It&amp;#39;s pretty straightforward.&lt;br /&gt;No pun intended, but a good opportunity to use lmgtfy again ;)&lt;/blockquote&gt;It&amp;#39;s pretty straightforward. &amp;#34;We have been modifying the JVM values as seen above.  But we always get the same outcome. Then node goes down once we start to do anything i.e add/edit pages or view any control panel tab. The &amp;#34;java.lang.OutOfMemoryError: unable to create new native thread&amp;#34; is didplayed in the logs</summary>
    <dc:creator>sabri ben salem</dc:creator>
    <dc:date>2019-07-12T09:34:12Z</dc:date>
  </entry>
  <entry>
    <title>RE: RMI Tcp connection</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114264336" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114264336</id>
    <updated>2019-07-12T08:43:25Z</updated>
    <published>2019-07-12T08:43:25Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;sabri ben salem:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;The memory in the server it&amp;#39;s ok. we have &lt;strong&gt;16GB&lt;/strong&gt;.&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/blockquote&gt;Have you seen &lt;a href="http://lmgtfy.com/?q=%22java.lang.OutOfMemoryError%3A%20unable%20to%20create%20new%20native%20thread%22&amp;amp;s=g"&gt;what&amp;#39;s available&lt;/a&gt; on that error message? It&amp;#39;s pretty straightforward.&lt;br /&gt;No pun intended, but a good opportunity to use lmgtfy again ;)</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-07-12T08:43:25Z</dc:date>
  </entry>
  <entry>
    <title>RE: RMI Tcp connection</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114263999" />
    <author>
      <name>sabri ben salem</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114263999</id>
    <updated>2019-07-12T08:22:18Z</updated>
    <published>2019-07-12T08:22:18Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;The memory in the server it&amp;#39;s ok. we have &lt;strong&gt;16GB&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;This is the JVM configuration in the &lt;strong&gt;setenv.sh&lt;/strong&gt; file :  &lt;br /&gt;&lt;br /&gt;CATALINA_OPTS=&amp;#34;$CATALINA_OPTS -Dfile.encoding=UTF8 -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -XX:NewSize=2048m -XX:MaxNewSize=2048m -Xms8144m -Xmx8144m -XX:permSize=200m -XX:MaxPermSize=512m -XX:SurvivorRatio=20 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:parallelGCThreads=8 -XX:ReservedCodeCacheSize=512m -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+CMSCompactWhenClearAllSoftRefs -XX:CMSInitiatingOccupancyFraction=85 -XX:+CMSScavengeBeforeRemark -XX:+CMSConcurrentMTEnabled -XX:parallelCMSThreads=2 -XX:+UseCompressedOops -XX:+DisableExplicitGC -XX:-UseBiasedLocking -XX:+BindGCTaskThreadsToCPUs -XX:+UseFastAccessorMethods -Djava.net.preferIPv4Stack=true&amp;#34;CATALINA_OPTS=&amp;#34;$CATALINA_OPTS -Dcom.sun.management.jmxremote&amp;#34;&lt;br /&gt;CATALINA_OPTS=&amp;#34;$CATALINA_OPTS -Dcom.sun.management.jmxremote.port=8100&amp;#34;&lt;br /&gt;CATALINA_OPTS=&amp;#34;$CATALINA_OPTS -Dcom.sun.management.jmxremote.ssl=false&amp;#34;&lt;br /&gt;CATALINA_OPTS=&amp;#34;$CATALINA_OPTS -Dcom.sun.management.jmxremote.authenticate=false&amp;#34;&lt;br /&gt;CATALINA_OPTS=&amp;#34;$CATALINA_OPTS -Dcom.sun.management.jmxremote.local.only=false&amp;#34;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Note : when the server reaches around 500 threads the node hangs&lt;/strong&gt;</summary>
    <dc:creator>sabri ben salem</dc:creator>
    <dc:date>2019-07-12T08:22:18Z</dc:date>
  </entry>
  <entry>
    <title>RE: RMI Tcp connection</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114259589" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114259589</id>
    <updated>2019-07-11T18:40:44Z</updated>
    <published>2019-07-11T18:40:44Z</published>
    <summary type="html">Um, it says &amp;#34;OutOfMemoryError&amp;#34;. That should be more than enough to tell you what you should be changing...</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-07-11T18:40:44Z</dc:date>
  </entry>
  <entry>
    <title>RMI Tcp connection</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114259247" />
    <author>
      <name>sabri ben salem</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114259247</id>
    <updated>2019-07-11T18:16:36Z</updated>
    <published>2019-07-11T18:16:36Z</published>
    <summary type="html">Hi everyone,&lt;br /&gt;&lt;br /&gt;Having a really strange issue here - We configured liferay clustering in aws linux machine, we using Tcp Unicast connection but we got this message  WARNING [RMI TCP Accept-0] sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop RMI TCP Accept-0: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=41775] throws&lt;br /&gt; java.lang.OutOfMemoryError: unable to create new native thread&lt;br /&gt;        at java.lang.Thread.start0(Native Method)&lt;br /&gt;        at java.lang.Thread.start(Thread.java:717)&lt;br /&gt;        at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:957)&lt;br /&gt;        at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1378)&lt;br /&gt;        at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:420)&lt;br /&gt;        at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:377)&lt;br /&gt;        at java.lang.Thread.run(Thread.java:748)&lt;br /&gt;The node went down. &lt;br /&gt;Note : We used RDS for the database. The max Threads configured in the connector 8009 in server.xml file is 2000</summary>
    <dc:creator>sabri ben salem</dc:creator>
    <dc:date>2019-07-11T18:16:36Z</dc:date>
  </entry>
</feed>
