<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title>Parallels knowledgebase (KB)</title>
<link>http://kb.parallels.com/</link>
<description>Parallels knowledgebase (KB)</description>
<language>en</language>
<copyright>Copyright 2008 Parallels</copyright>
<pubDate>Wed, 10 Sep 2008 00:00:00 +0600</pubDate>
<lastBuildDate>Wed, 10 Sep 2008 00:00:00 +0600</lastBuildDate>
<webMaster>rt-team@parallels.com</webMaster>

<item>
<title><![CDATA[Domain level limits notifications and suspending does not work in Parallels Plesk Panel.]]></title>
<link>http://kb.parallels.com/en/6371</link>
<description><![CDATA[<div id="article">
	




	<div id="kb" class="kb">
		<div class="article-container">
			<h2 class="title">Domain level limits notifications and suspending does not work in Parallels Plesk Panel.</h2>
			<div class="ab-frame"><div class="bl"><div class="br"><div class="tl"><div class="tr"><!-- frame -->
				<div class="articleProperty">
					<div>Article ID: 6371&nbsp;</div>
					<div>Last Review: Jun,23 2009</div>
					<tr>
						<td>Author: </td>
						<td>Bezborodova Anastasiya</td>
					</tr>
					<br/>
					<tr>
						<td>Last updated by: </td>
						<td>Bezborodova Anastasiya</td>
					</tr>
					<strong>APPLIES TO:</strong>
					<div class="articleApplies">
						<ul>
							<li>Plesk 9.0 for Linux/Unix</li>
							<li>Plesk 9.2 for Linux/Unix </li>
						</ul>
					</div>
				</div><!-- articleProperty -->
			</div></div></div></div></div><!-- frame -->

			<div class="article-internal-flag"></div>

			<div id="article-content">
				<div class="article-part">
					<h2>Symptoms</h2>
					<a href="http://kb.parallels.comhttp://download1.parallels.com/Plesk/PPP9/Doc/en-US/plesk-9.2-administrators-guide/59249.htm">Resource Usage</a> is configured for domains and clients, however the configuration does not take effect. Domain limits may be exceeded however notifications are not sent to the owner  and the domain is not suspended.<br /><br />What causes the problem?<br />
				</div>
				<div class="article-part">
					<h2>Cause</h2>
					In Parallels Plesk Panel 9 statistics is processed with script DailyMaintainance/script.php that is executed from daily cron job:<br /><br /><div class="commandline"><code>~# cat /etc/cron.daily/50plesk-daily<br />...<br /># install_statistics<br />/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php &gt;/dev/null 2&gt;&amp;1<br />...<br />~#</code></div><br />Purpose of the script is the following: <br /><br /><ol><li>The script starts utility &quot;<strong>statistics</strong>&quot; that processes Apache logs for each domain.&nbsp; The utility counts the inbound and outbound traffic, counts the disk space occupied by Web content,&nbsp; log files, databases, mailboxes, Web applications, mailing list archives, and backup files.</li><li>After the &quot;<strong>statistics</strong>&quot; utility has finished the script processes resource usage for Plesk domains/clients/resellers. According to resource usage settings limits notifications are sent and objects are suspended.</li></ol><br />The problem is that the scripts fail due to <strong>MySQL execution timeout</strong> while utility &quot;<strong>statistics</strong>&quot; is executed. As a result no notifications are sent and domains/clients with exceeded limits are not suspended.
				</div>
				<div class="article-part">
					<h2>Resolution</h2>
					To resolve the problem it is recommended to increase MySQL execution time. By default, the server closes the connection after eight hours if nothing has happened. You can change the time limit by setting the &quot;<strong>wait_timeout</strong>&quot; variable when you start mysqld.<br /><br />Open MySQL configuration file my.cnf and find variable &quot;<strong>wait_timeout</strong>&quot; in section <strong>[mysqld]</strong>. If the variable is missing and you want to increase it is recommended to add the variable.<br /><br /><span style='font-family: courier new,courier;font-size: 12px;'>/etc/my.cnf<br />---&gt;8---<br /><strong>[mysqld]</strong><br /><br />wait_timeout=36000<br />---8&lt;---</span><br /><br />By default the value is 28800, 8 hours. Do not forget to restart mysqld to apply the changes:<br /><br /><div class="commandline"><code>~# /etc/init.d/mysqld restart<br />Stopping MySQL:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&nbsp; OK&nbsp; ]<br />Starting MySQL:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&nbsp; OK&nbsp; ]<br />~#</code></div><br /> For details about MySQL variables see<a href="http://kb.parallels.comhttp://Parallels Plesk Development team knows about the problem, the fix is scheduled to future update of Parallels Plesk Panel.  To resolve the problem for now it is recommended to increase MySQL execution time. By default, the server closes the connection after eight  hours if nothing has happened. You can change the time limit by setting the &quot;wait_timeout&quot; variable when you start mysqld.  Open MySQL configuration file my.cnf and add the variable to section [mysqld].   my.cnf ---&gt;8--- [mysqld] wait_timeout=57600 ---8&lt;---  By default the value is 28800, 8 hours. Do not forget to restart mysqld to apply the changes.  For details about MySQL variables see http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html."> http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html</a>.<br />
				</div>
			</div>
		</div><!-- article-container -->


			<br/><br/>

			<div id="SubscriptionLink24Article" class="subscriptionLink2">
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=6371&ArticleLanguage=en&Product=&Category="><img src="http://kb.parallels.com/images/mail.png" width="15" height="15" alt="Subscription for changes to this article"></a>
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=6371&ArticleLanguage=en&Product=&Category=">Subscription for changes to this article</a>

<script type="text/javascript">

$(document).ready(function() {
	$('#SubscriptionLink24Article a').each(function(){
		$(this).click(function(event) {
			event.preventDefault();
			MainPageContentHide();
			$('#subscription').html('');
			$.get('/Stuff/Subscription', {
													'Type' : 'Article',
													'ArticleID' : '6371',
													'ArticleLanguage' : 'en',
													'Product' : '',
													'Category' : ''
												}, function(data) {
																	$('#subscription').html(data);
																	$('#subscription').show();
																	SUBbuildsubmenus_product();
																});
		});
	});
});

</script>

</div>





	</div><!-- kb -->

</div><!-- article -->


]]></description>
<author>Bezborodova Anastasiya</author>
<guid isPermaLink="false">9628 LastUpdated: 2009-06-23 08:31:59</guid>
<pubDate>2009-05-25 11:15:59</pubDate>
</item>
</channel>
</rss>



