Don't know if this directly affects what you're trying to do. But I have an 8GB server and when I run "solr status" I can see what % of the automatic memory allocation is being used. As it turned out, solr would occasionally exceed that (and crashed).
I then began starting solr with the additional parameter: "-m 1g" Now the solr consumption is almost always 50% or less, and have had no further problems. On 10/11/2018 12:08 AM, Sourav Moitra wrote: > Hello, > > We have a Solr server with 8gb of memory. We are using solr in cloud > mode, solr version is 7.5, Java version is Oracle Java 9 and settings > for Xmx and Xms value is 2g but we are observing that the RAM getting > used to 98% when doing indexing. > > How can I ensure that SolrCloud doesn't use more than N GB of memory ? > > Sourav Moitra > https://souravmoitra.com >