<?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: How to allocate dedicated memory to solr in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-allocate-dedicated-memory-to-solr/m-p/113427#M31542</link>
    <description>&lt;OL class="X5LH0c"&gt;&lt;LI&gt;Open&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;solr&lt;/STRONG&gt;. in. cmd in any text editor (path: bin/&lt;STRONG&gt;solr&lt;/STRONG&gt;. ...&lt;/LI&gt;&lt;LI&gt;Add the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;set&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SOLR_JAVA_MEM=-Xms1g -Xmx1g ( it will&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;set&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;the minimum and maximum Java heap&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;memory&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;by 1 GB. however you will only able the see 981.38 MB in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;solr&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;dashboard)&lt;/LI&gt;&lt;LI&gt;save the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;solr&lt;/STRONG&gt;. in.&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Sat, 19 Dec 2020 07:21:08 GMT</pubDate>
    <dc:creator>Claudie</dc:creator>
    <dc:date>2020-12-19T07:21:08Z</dc:date>
    <item>
      <title>How to allocate dedicated memory to solr</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-allocate-dedicated-memory-to-solr/m-p/113424#M31539</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I have 32 GB RAM available on server(alfresco and solr on same instance) and i have allotted dedicated 24 GB in java opts in tomcat/bin/setenv.sh and tomcat/scripts/ctl.sh file.&lt;/P&gt;&lt;P&gt;Due to insufficient memory solr stops working, when stopping server it has generated hs_err_pid1-3-9.log file.&lt;/P&gt;&lt;P&gt;Error file contains below logs:&lt;/P&gt;&lt;PRE&gt;# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 24984682496 bytes for committing reserved memory.
# Possible reasons:
#   The system is out of physical RAM or swap space
#   In 32 bit mode, the process size limit was hit
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Use 64 bit Java on a 64 bit OS
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (os_linux.cpp:2640), pid=10309, tid=0x00007f541a1b8700
#
# JRE version:  (8.0_131-b11) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.131-b11 mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again&lt;/PRE&gt;&lt;P&gt;Can we allocate dedicated memory to solr? If yes, where to configure the same?&lt;/P&gt;&lt;P&gt;I had gone through &lt;A href="https://docs.alfresco.com/5.1/concepts/solrnodes-memory.html" target="_self" rel="nofollow noopener noreferrer"&gt;solrnodes memory&lt;/A&gt;&amp;nbsp;&amp;nbsp;ducumentation, as per calculation only solr requires 27 GB memory.&lt;/P&gt;&lt;P&gt;I have 1 million&amp;nbsp;documents in repository.&lt;/P&gt;&lt;P&gt;After every server restart, solr starts working and memory utilization continues more than 90% and after sometimes due to insufficient memory solr stops working.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Hardik&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 11:29:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-allocate-dedicated-memory-to-solr/m-p/113424#M31539</guid>
      <dc:creator>hardik_thakkar</dc:creator>
      <dc:date>2020-11-27T11:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to allocate dedicated memory to solr</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-allocate-dedicated-memory-to-solr/m-p/113425#M31540</link>
      <description>&lt;P&gt;&lt;A href="https://docs.alfresco.com/5.1/concepts/solrnodes-memory.html" target="_self" rel="nofollow noopener noreferrer"&gt;Solrnodes-memory-calculation&lt;/A&gt;&amp;nbsp; would provide how much memory is needed to solr depending on various aspects. As you have already gone through this doc, 27GB is required memory that you have calculated. If calculation is correct then you would require that much memory.&lt;/P&gt;
&lt;P&gt;It would be wise to separate the solr and alfresco on different nodes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Chekcout these posts:&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/java-heap-space-issue-on-solr4/td-p/57355" target="_blank" rel="noopener nofollow noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/java-heap-space-issue-on-solr4/td-p/57355&lt;/A&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;U&gt;Docs:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/5.2/concepts/jvm-tuning.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/5.2/concepts/jvm-tuning.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/5.2/concepts/jvm-settings.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/5.2/concepts/jvm-settings.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Also see if these are an option for you:&lt;/P&gt;
&lt;H2 class="title topictitle2" id="toc-hId-1673303583"&gt;&lt;A href="https://docs.alfresco.com/5.1/concepts/solrnodes-memory.html" target="_self" rel="nofollow noopener noreferrer"&gt;Minimize the memory requirements for Solr nodes&lt;/A&gt;&lt;/H2&gt;
&lt;DIV class="body conbody"&gt;
&lt;UL id="min-memory__ul_qzq_fzx_mj" class="ul"&gt;
&lt;LI class="li"&gt;Reduce the cache sizes and check the cache hit rate.&lt;/LI&gt;
&lt;LI class="li"&gt;Disable ACL checks using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SAMP class="ph codeph"&gt;alfresco.doPermissionChecks=false&lt;/SAMP&gt;&lt;/LI&gt;
&lt;LI class="li"&gt;Disable archive indexing, if you are not using it.&lt;/LI&gt;
&lt;LI class="li"&gt;Check the number of empty transactions. If there are many empty transactions, purge the transactions from Alfresco using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SAMP class="ph codeph"&gt;action=FIX&lt;/SAMP&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;action.&lt;/LI&gt;
&lt;LI class="li"&gt;Find the exact number of nodes in the store (N), exact number of transactions in the repository (T), number of ACLs (A) and related ACL transactions in the repository (X).&lt;/LI&gt;
&lt;LI class="li"&gt;Since everything scales to the number of documents in the index, add the Index control aspect to the documents you do not want in the index.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Nov 2020 15:39:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-allocate-dedicated-memory-to-solr/m-p/113425#M31540</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-11-27T15:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to allocate dedicated memory to solr</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-allocate-dedicated-memory-to-solr/m-p/113426#M31541</link>
      <description>&lt;P&gt;Hi&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;I have allocated 40 GB to JAVA_OPTS, but still solr stops working after sometime.&lt;/P&gt;&lt;P&gt;I have gone through links shared by you, but didn't find any configuration to allocate dedicated memory to solr.&lt;/P&gt;&lt;P&gt;I have enabled metadata indexing only and that solves my issue.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hardik&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 13:05:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-allocate-dedicated-memory-to-solr/m-p/113426#M31541</guid>
      <dc:creator>hardik_thakkar</dc:creator>
      <dc:date>2020-12-14T13:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to allocate dedicated memory to solr</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-allocate-dedicated-memory-to-solr/m-p/113427#M31542</link>
      <description>&lt;OL class="X5LH0c"&gt;&lt;LI&gt;Open&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;solr&lt;/STRONG&gt;. in. cmd in any text editor (path: bin/&lt;STRONG&gt;solr&lt;/STRONG&gt;. ...&lt;/LI&gt;&lt;LI&gt;Add the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;set&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SOLR_JAVA_MEM=-Xms1g -Xmx1g ( it will&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;set&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;the minimum and maximum Java heap&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;memory&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;by 1 GB. however you will only able the see 981.38 MB in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;solr&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;dashboard)&lt;/LI&gt;&lt;LI&gt;save the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;solr&lt;/STRONG&gt;. in.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Sat, 19 Dec 2020 07:21:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-allocate-dedicated-memory-to-solr/m-p/113427#M31542</guid>
      <dc:creator>Claudie</dc:creator>
      <dc:date>2020-12-19T07:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to allocate dedicated memory to solr</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-allocate-dedicated-memory-to-solr/m-p/113428#M31543</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/83973"&gt;@Claudie&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Solr.in.cmd file is available for solr6, right?&lt;/P&gt;&lt;P&gt;I'm using solr4 integrated with alfresco community version 5.2.&lt;BR /&gt;&lt;BR /&gt;Is there any configuration available for solr4 and alfresco 5.2 version?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hardik&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 07:12:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-allocate-dedicated-memory-to-solr/m-p/113428#M31543</guid>
      <dc:creator>hardik_thakkar</dc:creator>
      <dc:date>2020-12-21T07:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to allocate dedicated memory to solr</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-allocate-dedicated-memory-to-solr/m-p/113429#M31544</link>
      <description>&lt;P&gt;Hello, Hardik were you able to fix this issue I have been facing the same issue with my solr. XMS-1g XMX-12Gb it goes up till 90%, we are not able locate root cause, If you can point us how you fixed for your architecture, we are using solr6&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 18:59:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-allocate-dedicated-memory-to-solr/m-p/113429#M31544</guid>
      <dc:creator>shriyam_gupta</dc:creator>
      <dc:date>2023-11-29T18:59:59Z</dc:date>
    </item>
  </channel>
</rss>

