Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Apache Solr High Performance

You're reading from  Apache Solr High Performance

Product type Book
Published in Mar 2014
Publisher
ISBN-13 9781782164821
Pages 124 pages
Edition 1st Edition
Languages
Author (1):
Surendra Mohan Surendra Mohan
Profile icon Surendra Mohan

Dealing with out-of-memory issues


You might be aware that every application written in Java is well known for out-of-memory problems. Before we learn how to deal with the out-of-memory problems, let us define out-of-memory in Java terms and briefly understand why such problems occur. It is defined as the state of a Java machine where no additional memory can be allocated to run a process that is in progress. This results in the denial of transferring additional data into the memory, which is essential to run a process appropriately, thereby leading to a cease of the process. We recommend that you refer to the out-of-memory Wiki page at http://en.wikipedia.org/wiki/Out_of_memory if you want to know more about it.

As far as Solr is concerned, these problems are usually associated with a low heap size. We will learn how to avoid and resolve such problems in this section.

You might come across an exception that looks similar to the following one:

SEVERE: java.lang.OutOfMemoryError: Java heap space...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}