I use solr in my application, there is just hundreds of documents. the memory usage is about 80M, how to reduce it?
If your OS, Solr's Java heap, and all other running programs require 4GB of memory, then an ideal memory size for that server is at least 12GB. You might be able to make it work with 8GB total memory (leaving 4GB for disk cache), but that also might NOT be enough.
Solr uses direct memory to cache data read from disks, mostly index, to improve performance. Direct memory doesn't cause any JVM GC overhead. Direct memory size can be set using CM (Cloudera Manager->Solr configuration->direct memory).
80M is not much, in fact it's pretty much the mininum, you won't go much lower than that.
Some factors that affect memory usage:
References:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With