<?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 Re: Solr 4 to Solr6, Java heap space problem after upgrading to search service version 1.3 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/solr-4-to-solr6-java-heap-space-problem-after-upgrading-to/m-p/135984#M36537</link>
    <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/62492"&gt;@statira&lt;/A&gt;&amp;nbsp;Ideally setting "SOLR_JAVA_MEM" should work. I tried on windows and centos7 environment and it works.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like you already tried setting "SOLR_JAVA_MEM="-Xms4g -Xmx4g" in 'solr.in.sh' file. This should have been sufficient to increase the heap memory.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you open the solr admin console (&lt;A href="http://127.0.0.1:8983/solr/#/" target="_blank" rel="noopener nofollow noreferrer"&gt;http://127.0.0.1:8983/solr/#/&lt;/A&gt;) and validate what you see there in JVM section. e.g.:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Solradmin-jvm-details.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/961i4B2FC11C6B382862/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="solron-centos7.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/962i7ED6FC5D72622707/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If you see the values correctly in the admin console, that means environment variable is working correctly. And you would have to determine the required memory based on your index size etc.&lt;/P&gt;
&lt;P&gt;I don't think java version could be an issue because minimum java-8 is needed for ass v1.3 if i remember correctly, not sure .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Check this issue as well:&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/SearchServices/issues/233" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/SearchServices/issues/233&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/SearchServices/issues/233#issuecomment-626145052" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/SearchServices/issues/233#issuecomment-626145052&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/SearchServices/issues/234" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/SearchServices/issues/234&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/SearchServices/issues/234#issuecomment-699843033" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/SearchServices/issues/234#issuecomment-699843033&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;As per above issue and discussions seems these properties could be also a reason for heap issues... you may give it a try:&lt;/P&gt;
&lt;P&gt;SOLR 6 can be configured to work as SOLR 4 was working in previous Alfresco versions by uncommenting&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;alfresco.cross.locale.datatype.N&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;properties in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;/opt/solr6/solrhome/conf/shared.properties&lt;/CODE&gt;.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;alfresco.cross.locale.datatype.0={http://www.alfresco.org/model/dictionary/1.0}text
alfresco.cross.locale.datatype.1={http://www.alfresco.org/model/dictionary/1.0}content
alfresco.cross.locale.datatype.2={http://www.alfresco.org/model/dictionary/1.0}mltext&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;U&gt;These blog posts will also be helpful:&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.ziaconsulting.com/developer-help/alfresco-solr-memory/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://www.ziaconsulting.com/developer-help/alfresco-solr-memory/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://clouderatemp.wpengine.com/blog/2017/06/solr-memory-tuning-for-production-part-2/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://clouderatemp.wpengine.com/blog/2017/06/solr-memory-tuning-for-production-part-2/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jan 2021 19:15:24 GMT</pubDate>
    <dc:creator>abhinavmishra14</dc:creator>
    <dc:date>2021-01-22T19:15:24Z</dc:date>
    <item>
      <title>Solr 4 to Solr6, Java heap space problem after upgrading to search service version 1.3</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/solr-4-to-solr6-java-heap-space-problem-after-upgrading-to/m-p/135983#M36536</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/76783"&gt;@EddieMay&lt;/A&gt;&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/74498"&gt;@abhinavmishra14&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately another problem arised, solr gets killed after running for some time with&lt;/P&gt;
&lt;P&gt;# java.lang.OutOfMemoryError: Java heap space&lt;BR /&gt;# -XX&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;nOutOfMemoryError="/opt/alfresco-community/alfresco-search-services/solr/bin/oom_solr.sh 8983 ../../logs"&lt;BR /&gt;# Executing /bin/sh -c "/opt/alfresco-community/alfresco-search-services/solr/bin/oom_solr.sh 8983 ../../logs"...&lt;BR /&gt;Running OOM killer script for process 14226 for Solr on port 8983&lt;BR /&gt;Killed process 14226&lt;/P&gt;
&lt;P&gt;tried to modify solr.in.sh with no luck&lt;/P&gt;
&lt;P&gt;SOLR_JAVA_MEM="-Xms4g -Xmx4g"&lt;/P&gt;
&lt;P&gt;Never had this problem with Solr4 so I'm confused, does it really need so much memory?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could it be the java version problem? I'm running&amp;nbsp;openjdk 13.0.4, is it supported by Alfresco and Solr?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 06:21:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/solr-4-to-solr6-java-heap-space-problem-after-upgrading-to/m-p/135983#M36536</guid>
      <dc:creator>statira</dc:creator>
      <dc:date>2021-01-22T06:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Solr 4 to Solr6, Java heap space problem after upgrading to search service version 1.3</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/solr-4-to-solr6-java-heap-space-problem-after-upgrading-to/m-p/135984#M36537</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/62492"&gt;@statira&lt;/A&gt;&amp;nbsp;Ideally setting "SOLR_JAVA_MEM" should work. I tried on windows and centos7 environment and it works.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like you already tried setting "SOLR_JAVA_MEM="-Xms4g -Xmx4g" in 'solr.in.sh' file. This should have been sufficient to increase the heap memory.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you open the solr admin console (&lt;A href="http://127.0.0.1:8983/solr/#/" target="_blank" rel="noopener nofollow noreferrer"&gt;http://127.0.0.1:8983/solr/#/&lt;/A&gt;) and validate what you see there in JVM section. e.g.:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Solradmin-jvm-details.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/961i4B2FC11C6B382862/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="solron-centos7.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/962i7ED6FC5D72622707/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If you see the values correctly in the admin console, that means environment variable is working correctly. And you would have to determine the required memory based on your index size etc.&lt;/P&gt;
&lt;P&gt;I don't think java version could be an issue because minimum java-8 is needed for ass v1.3 if i remember correctly, not sure .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Check this issue as well:&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/SearchServices/issues/233" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/SearchServices/issues/233&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/SearchServices/issues/233#issuecomment-626145052" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/SearchServices/issues/233#issuecomment-626145052&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/SearchServices/issues/234" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/SearchServices/issues/234&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/SearchServices/issues/234#issuecomment-699843033" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/SearchServices/issues/234#issuecomment-699843033&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;As per above issue and discussions seems these properties could be also a reason for heap issues... you may give it a try:&lt;/P&gt;
&lt;P&gt;SOLR 6 can be configured to work as SOLR 4 was working in previous Alfresco versions by uncommenting&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;alfresco.cross.locale.datatype.N&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;properties in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;/opt/solr6/solrhome/conf/shared.properties&lt;/CODE&gt;.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;alfresco.cross.locale.datatype.0={http://www.alfresco.org/model/dictionary/1.0}text
alfresco.cross.locale.datatype.1={http://www.alfresco.org/model/dictionary/1.0}content
alfresco.cross.locale.datatype.2={http://www.alfresco.org/model/dictionary/1.0}mltext&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;U&gt;These blog posts will also be helpful:&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.ziaconsulting.com/developer-help/alfresco-solr-memory/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://www.ziaconsulting.com/developer-help/alfresco-solr-memory/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://clouderatemp.wpengine.com/blog/2017/06/solr-memory-tuning-for-production-part-2/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://clouderatemp.wpengine.com/blog/2017/06/solr-memory-tuning-for-production-part-2/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 19:15:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/solr-4-to-solr6-java-heap-space-problem-after-upgrading-to/m-p/135984#M36537</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-01-22T19:15:24Z</dc:date>
    </item>
  </channel>
</rss>

