iNikkz
iNikkz

Reputation: 3829

Solr ate all Memory and throws -bash: cannot create temp file for here-document: No space left on device on Server

I have been started solr for long time approx 2 weeks then I saw that Solr ate around 22 GB from 28 GB RAM of my Server.

While checking status of Solr, using bin/solr -i it throws -bash: cannot create temp file for here-document: No space left on device

I stopped the Solr, and restarted the solr. It is working fine.

What's the problem actually. Didn't get?

And what is the solution for that?

I never want that Solr gets stop/halt while running.

Upvotes: 1

Views: 2088

Answers (1)

The Bndr
The Bndr

Reputation: 13394

First you should check the space on your file system. For example using df -h. Post the output here.

Is there any mount-point without free space?

2nd: find out the reason, why there is no space left. Your question handles two different thing: no space left on file system an a big usage of RAM.

Solr stores two different kind of data: the search index an the data himself. Storing the data is only needed, if you like to output the documents after finding them in index. For example if you like to use highlighting. So take a look at your schema.xml an decide for every singe field, if it must be stored or if "indexing" the field is enough for your needs. Use the stored=true parameter for that.

Next: if you rebuild the index: keep in mind, that you need double space on disc during index rebuild.

You also could think about to move your index/data files to an other disk.

If you have solved you "free space" problem on disc, so you probably don't have an RAM issue any more.

If there is still a RAM problem, please post you java start parameter. There you can define, how much RAM is available for Solr. Solr needs a lot of virtual RAM, but an moderate size of physical RAM.

And: you could post the output of your logfile.

Upvotes: 3

Related Questions