https://wiki.wormbase.org/index.php?title=Optimizing_site_performance&feed=atom&action=historyOptimizing site performance - Revision history2024-03-29T04:43:30ZRevision history for this page on the wikiMediaWiki 1.33.0https://wiki.wormbase.org/index.php?title=Optimizing_site_performance&diff=6054&oldid=prevCgrove at 17:57, 16 August 20102010-08-16T17:57:47Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 17:57, 16 August 2010</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l36" >Line 36:</td>
<td colspan="2" class="diff-lineno">Line 36:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>When the process is considered as 'hanging' it will be killed and the event logged into a log file. The log file is being opened on append, so you can basically defined the same log file that uses Apache.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>When the process is considered as 'hanging' it will be killed and the event logged into a log file. The log file is being opened on append, so you can basically defined the same log file that uses Apache.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Developer documentation]]</ins></div></td></tr>
</table>Cgrovehttps://wiki.wormbase.org/index.php?title=Optimizing_site_performance&diff=232&oldid=prevTharris: New page: Optimizing performance of WormBase 1. Here is a good guide from S. Beckman: [http://perl.apache.org/docs/1.0/guide/performance.html#Measuring_the_Memory_of_the_Process [1]] 2. Turn off K...2007-09-24T15:49:51Z<p>New page: Optimizing performance of WormBase 1. Here is a good guide from S. Beckman: [http://perl.apache.org/docs/1.0/guide/performance.html#Measuring_the_Memory_of_the_Process [1]] 2. Turn off K...</p>
<p><b>New page</b></p><div>Optimizing performance of WormBase<br />
<br />
1. Here is a good guide from S. Beckman: [http://perl.apache.org/docs/1.0/guide/performance.html#Measuring_the_Memory_of_the_Process [1]]<br />
<br />
2. Turn off KeepAliveOn<br />
<br />
3. Enable perl-status<br />
<br />
&lt;Location /perl-status&gt;<br />
<br />
SetHandler perl-script<br />
PerlHandler Apache::Status<br />
order deny,allow<br />
#deny from all<br />
#allow from ...<br />
&lt;/Location&gt;<br />
<br />
(This should be disabled when in production)<br />
<br />
4. Check the memory footprint of apache children:<br />
<br />
ps -o pid,user,rss,vsize,%cpu,%mem,ucomm -C httpd<br />
<br />
<br /> 5. Monitoring / killing runawy processes Apache::SizeLimit - very handy for killing wild processes perl.startup:<br />
<br />
$Apache::SizeLimit::MAX_UNSHARED_SIZE = 300000; # 350 MB<br />
$Apache::SizeLimit::CHECK_EVERY_N_REQUESTS = 2;<br />
<br />
httpd.conf<br />
<br />
PerlFixupHandler Apache::SizeLimit<br />
<br />
[http://search.cpan.org/~stas/Apache-Watchdog-RunAway-1.00/RunAway.pm Apache::Watchdog::Runaway]<br />
<br />
A module that monitors hanging Apache/mod_perl processes. You define the time in seconds after which the process to be counted as hanging. You also control the polling time between check to check.<br />
<br />
When the process is considered as 'hanging' it will be killed and the event logged into a log file. The log file is being opened on append, so you can basically defined the same log file that uses Apache.</div>Tharris