So many times, we face the issue of SOLR where it doesn’t give proper results due to the high usage of SOLR. And due to that only sometimes it gives results and sometimes it doesn’t.
Let me tell you why this happens
Whenever we install SOLR it has default memory setup is 512MB space usage permission.
Basically, it is all up to your project and requests that how many requests you are sending and how big the request is. But if your system has enough space in free storage and RAM is more than 8GB then you can easily set the 2GB JVM memory for solr.
It will not hamper for your local environment or staging environment because those servers have less requests but for the production, I would suggest having special solr server which is configured for using solr only. All the solr related work will be managed by that only so that even if you are having a lot of traffic, it can manage everything.
If we talk about JVM memory for prod I would suggest if the prod solr server has 16 GB RAM you can easily assign 12 GB.
in the solr.in.cmd file search for the SOLR_JAVA_MEM you will get below line.
“REM set SOLR_JAVA_MEM=-Xms512m -Xmx512m”