How to -not run out of memory- on solr

Events happening in the community are now at Drupal community events on www.drupal.org.
paperplay's picture

Prior to installing Tomcat/solr ,

I was using these settings.
Php - 64mb
APC - 128mb

2 Drupal installations , 1xD5 and 1xD6.

Memory usage always hovered around 200-300 of 512mb.

After i installed Tomcat & solr , I frequently see memory usage going as high as nearly 500 of 512
and my solr keeps crashing .

I am not too sure about the part on solr crashing , cause tomcat is still up but Drupal complains that it can't connect to solr and the localhost:port/solr is dead as well.

I tried limiting memory usage by adding a
setenv.sh inside apache-tomcat-6.0.18/bin
export JAVA_OPTS="-server -Xmx64m"
But it doesnt seem to have any effect

Anyway to limit solr's memory usage ? or .. just prevent it from constantly crashing

*or point me in the right direction if I am horribly wrong here

Comments

I think you basically need

frjo's picture

I think you basically need more RAM to run Tomcat and Solr. I run Apache, PHP, MySQL, APC, Tomcat, Solr etc. on a VPS with 1 GB RAM and I can't se how I could get to run with only 512 MB RAM.

I have added this code to my Tomcat startup script and it seems to work:

export CATALINA_OPTS="-Xms64m -Xmx64m"

Here are the explanations of the parameters:

-Xms[size] set initial Java heap size
-Xmx[size] set maximum Java heap size

I have yet to play with

dalin's picture

I have yet to play with Tomcat, but the general rule of computing is that unused memory is wasted memory. So that may not be related to your crashing problem.

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: