So many times, you may have faced the issue of SOLR where it does not provide you with proper results due to its high usage. It gives you results sometimes and sometimes it does not.
Let us discuss why this happens:
Whenever you install SOLR, it has the default memory setup which has a space usage permission of 512MB
So basically, it is all based on your project and its number of requests and how big those requests are. If your system has good enough space for free storage and the RAM is above 8 GB then you will easily be able to set the 2GB JVM memory for SOLR.
Due to less requests for production in those servers, this will not at all hamper the local environment or the staging area. It is advisable to have special SOLR server which is configured for using SOLR only. All the related work will then be managed by that including the increasing traffic.
Talking about JVM memory for production, we would suggest that if the server has 16 GB of RAM, you can assign 12 GB easily.
In this file, search for SOLR_JAVA_MEM. You will get the result as below:
“REM set SOLR_JAVA_MEM=-Xms512m -Xmx512m”