Performance with Lucene/java/php-java-bridge on Gentoo

Author Message

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-r1
Php 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 eZ Publish community here really appreciates this kind of useful information. Welcome here!

</Pascal>

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 15:04:11
Script start
Timing: Jan 18 2025 15:04:11
Module start 'layout'
Timing: Jan 18 2025 15:04:11
Module start 'content'
Timing: Jan 18 2025 15:04:12
Module end 'content'
Timing: Jan 18 2025 15:04:12
Script end

Main resources:

Total runtime1.2072 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 589.2969152.6563
Module start 'layout' 0.00410.0027 741.953139.5234
Module start 'content' 0.00681.1991 781.4766496.4375
Module end 'content' 1.20590.0014 1,277.91418.1094
Script end 1.2072  1,286.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2515160.0002
Check MTime0.00140.1140160.0001
Mysql Total
Database connection0.00050.045410.0005
Mysqli_queries1.162696.3005540.0215
Looping result0.00060.0505520.0000
Template Total1.169996.920.5850
Template load0.00200.164920.0010
Template processing1.167996.741520.5840
Template load and register function0.00020.013210.0002
states
state_id_array0.00160.133110.0016
state_identifier_array0.00250.203020.0012
Override
Cache load0.00170.1375340.0000
Sytem overhead
Fetch class attribute can translate value0.00060.046920.0003
Fetch class attribute name0.00090.075030.0003
XML
Image XML parsing0.00070.054320.0003
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00070.0597160.0000
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs