Avoiding swapping

One of the crucial things when running your Solr instances in production is performance. What you want is to give your clients relevant results in the blink of an eye. If your clients have to wait for their results for too long, some of them might choose other vendors or sites that provide similar services. One of the things when running Java application such as Apache Solr is to ensure that the operating system won't write the heap to disk, to ensure that the part of the memory used by Solr won't be swapped at all. This recipe will show you how to achieve this on a Linux operating system.

Getting ready

Note that the following recipe is only valid when you are running Apache Solr on a Linux operating system. In addition to this, ...

Get Solr Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.