Forums / Install & configuration / Performance with Lucene/java/php-java-bridge on Gentoo
Romaric Defaux
Wednesday 27 August 2008 2:59:53 am
Hi all !
After installing java/php-java-bridge/lucene on a production box, the server was really really very slowed :(
The source of this problem was the java extension in php. In php.ini, when extension=java.so was disabled, the web pages appears instantly.When it was enabled, sometimes we wait many seconds before it appears !
To solve this problem, I changed the default memory for the JVM. In order to do this, I add the following line at the beginning of my /etc/init.d/apache2 file (I don't know if this location is the best way, but it works) : <i> #For java JAVA_OPTS="-Xms256M -Xmx1024M -XX:PermSize=256m -XX:MaxPermSize=256m" export JAVA_OPTS</i>
(adapt these parameters to your configuration)
And now all works fine :) !
My conf : <i>OS : Gentoo Kernel : linux-2.6.24-gentoo-r4 Ez version : Ez 4.0.0 or 4.0.1 Java version : java version "1.6.0_07" Apache Version : Apache/2.2.8 (Unix) Php version : PHP 5.2.6-pl2-gentoo Lucene version : lucene-2.1.0-r1Php java bridge version : php-java-bridge-4.3.0</i>
I hope this help !
Regards
Romaric
Pascal Specht
Wednesday 27 August 2008 8:05:31 am
Hi Romaric,
the Exponential community here really appreciates this kind of useful information. Welcome here!
</Pascal>