Am 20.06.13 17:39, schrieb Brian Wolff:
On 6/20/13, Johannes Weberhofer <jweberho...@weberhofer.at> wrote:
Dear all!

After upgrading a server to a complete new system
(apache/php/mysql->mariadb) I have massive performance-problems when a large
page is to be rendered.

I have added a profiling log; I do not think, it is related to the database
upgrade, as the database have a very low CPU usage while rendering, while
Apache's CPU usage is very high for around 16 seconds. This happens
especially with large pages. I have already tried to remove all extensions
which did not make any difference.

Do you have any ideas where to start?

Best regards,
Johannes


For a starting place, I would try editing the output method of
includes/OutputPage.php to add more wfProfileIn( __METHOD__ .
'-someIdentifier' ); wfProfileOut( __METHOD__ . '-someIdentifier' );
around various lines, to try and get a better picture of which line is
taking up so much time.

--bawolff


Thank you for your fast response. It's the ob_end_flush() call which takes a 
very long time to be processed. Does anyone have a hint what to do to improve 
speed?

Name                                                                         
Calls         Total          Each             %       Mem
-total                                                                          
 1      1663.092      1663.092       100.000%  36215816  (     1663.092 -     
1663.092) [0]
MediaWiki::main                                                                 
 1      1517.264      1517.264        91.232%  20015673  (     1517.264 -     
1517.264) [3620]
OutputPage::output                                                              
 1      1223.967      1223.967        73.596%   5831071  (     1223.967 -     
1223.967) [741]
OutputPage::output_OB_END_FLUSH                                                 
 1      1141.097      1141.097        68.613%    -12656  (     1141.097 -     
1141.097) [0]


--
Johannes Weberhofer
Weberhofer GmbH, Austria, Vienna

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to