Share » Forums » Extensions » eZ Find » Ezfind/solr optimization

Ezfind/solr optimization

Ezfind/solr optimization

Wednesday 11 March 2009 8:32:47 am - 5 replies

Modified on Wednesday 11 March 2009 9:03:51 am by Ali Nebi

Author Message

Gaetano Giunta

Thursday 12 March 2009 3:51:10 am

Not sure it will help, but you might try switching to a 32 bit version of Java. IIRC the 64 bit version was not the best choice on redhat os...

Principal Consultant International Business
Member of the Community Project Board

Ali Nebi

Saturday 14 March 2009 2:16:22 am

Thanks for the reply.

I will be happy if someone post other comments too, related with ezsolr/ezfind optimization.

Regards, Ali Nebi!

Iguana Information Technologies, SL - http://www.iguanait.com

Paul Borgermans

Monday 16 March 2009 2:41:43 pm

It is probably the way to start the backend (solr), so try the alternate startup parameters below

If you don't have the 64 bit JVM (and OS)

java -server -Xmx600m -Xms600m -XX:+UseParallelGC -XX:+AggressiveOpts -XX:NewRatio=5 -jar start.jar

Otherwise (enable the 64 bit datamodel)

java -server -d64 -Xmx600m -Xms600m -XX:+UseParallelGC -XX:+AggressiveOpts -XX:NewRatio=5 -jar start.jar

The Xm.... parameters are memory allocation, if you have a lot and large indexes (many objects, many files), then you may even try to increase that

Can you tell me if that helped?

hth
Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Ali Nebi

Sunday 22 March 2009 3:11:55 pm

Hi,

Thanks for the reply and trying to help me to solve this problem.

I still expirience the problem on the second server where solr stop to work after some time. I have set there :

java -server -d64 -Xmx600m -Xms600m -XX:+UseParallelGC -XX:+AggressiveOpts -XX:NewRatio=5 -jar start.jar

When i see that search is not working and try to login to the admin page of solr i get connection refused message. All requests to the solr are with code HTTP 1.1 500 in the logs during this time.

It is probably because the memory, but if i increase the memory then server start to swap more than usual.

Where can i enable the debug mode if necessary? This way i can provide more info for the problem probably.

Iguana Information Technologies, SL - http://www.iguanait.com

Gaetano Giunta

Thursday 28 July 2011 11:29:20 pm

Two more bits of insight:

1. Java 64bit is now the recommended version - problems with the 64 bit version only applied to old versions of rhel (circa 2007)

2. according to the solr wiki (http://lucene.apache.org/solr/ ), using -XX:+AggressiveOpts is dangerous with a version 6 jre

Principal Consultant International Business
Member of the Community Project Board

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu