<?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[Very slow API requests]]></title>
<link>http://kb.parallels.com/en/6448</link>
<description><![CDATA[<div id="article">
	




	<div id="kb" class="kb">
		<div class="article-container">
			<h2 class="title">Very slow API requests</h2>
			<div class="ab-frame"><div class="bl"><div class="br"><div class="tl"><div class="tr"><!-- frame -->
				<div class="articleProperty">
					<div>Article ID: 6448&nbsp;</div>
					<div>Last Review: Jun,18 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>Parallels Plesk Panel for Linux/Unix</li>
							<li>Parallels Plesk Panel for Windows</li>
							<li>Expand 2.x</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>
					I am sending API request to Parallels Plesk Panel. It hangs and then fails due to time out. For example:<br /><br /><span style='font-family: courier new,courier;font-size: 12px;'>---8&lt;---<br />Host: localhost:8443<br />Accept: */*<br />HTTP_AUTH_LOGIN: admin<br />HTTP_AUTH_PASSWD: ********<br />HTTP_PRETTY_PRINT: TRUE<br />Content-Type: text/xml<br />Content-Length: 315<br /><br />&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot; ?&gt;<br />&lt;packet version=&quot;1.5.1.0&quot;&gt;<br />&lt;domain&gt;<br />&nbsp;&lt;set&gt;<br />&nbsp;&nbsp; &lt;filter&gt;&lt;id&gt;244&lt;/id&gt;&lt;/filter&gt;<br />&nbsp;&nbsp; &lt;values&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp; &lt;gen_setup&gt;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;status&gt;0&lt;/status&gt;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;name&gt;newdomain.name&lt;/name&gt;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;client_id&gt;157&lt;/client_id&gt;<br />&nbsp;&nbsp;&nbsp; &nbsp;&lt;/gen_setup&gt;<br />&nbsp;&nbsp; &lt;/values&gt;<br />&nbsp;&lt;/set&gt;<br />&lt;/domain&gt;<br />&lt;/packet&gt;<br /><br />* Empty reply from server<br />* Connection #0 to host localhost left intact<br />-------------------------<br /><br />cURL error number:52<br /><br />cURL error:Empty reply from server* Closing connection #0<br />---&gt;8---</span><br /><br />What causes the problem and how to resolve it?<br />
				</div>
				<div class="article-part">
					<h2>Cause</h2>
					MySQL queries are very slow. This may be caused by small amount of memory on the server or MySQL limits.<br />
				</div>
				<div class="article-part">
					<h2>Resolution</h2>
					If you are sure that there is enough memory on the server it is recommended to reconfigure MySQL settings.<br /><br />Find example MySQL configuration file for very large systems (<strong>my-huge.cnf</strong> Linux/Unix or <strong>my-huge.ini</strong> for Windows) and copy the following parameters to main MySQL configuration file (<strong>my.cnf</strong> for Linu/Unix or <strong>my.ini</strong> for Windows):<br /><br /><span style='font-family: courier new,courier;font-size: 12px;'><strong>key_buffer<br />table_cache<br />sort_buffer_size<br />read_buffer_size<br />read_rnd_buffer_size<br />query_cache_size<br />innodb_buffer_pool_size<br />innodb_additional_mem_pool_size</strong></span><br /><br />For example you may use the following command to find file <strong>my-huge.cnf</strong> on RedHat-like operating system:<br /><br /><div class="commandline"><code>~# rpm -ql mysql-server | grep my-huge.cnf<br />/usr/share/mysql/my-huge.cnf<br />~#</code></div><br />After the parameters were added it is needed to restart MySQL service:<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 />
				</div>
				<div class="article-part">
					<h2>Additional information</h2>
					The problem may affect management of Panel server through Parallels Plesk Expand.<br /><br />Parallels Plesk Expand works with Panel servers via API requests. Actions may fail with error &quot;Plesk server is unreachable now&quot; when API requests hung. For example:<br /><br /><span style='font-family: courier new,courier;font-size: 12px;'>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot; ?&gt;<br />&lt;packet action_id=&quot;5103188&quot; version=&quot;2.3.2.17&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;set&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;result&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;status&gt;error&lt;/status&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;errcode&gt;2002&lt;/errcode&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;errtext&gt;[Transport] Temporary error occurred while processing request. Plesk server is unreachable now: (52) Empty reply from server<br />Connection log</span><br /><br />or<br /><br /><span style='font-family: courier new,courier;font-size: 12px;'>&lt;reloadObjects&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;system&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;status&gt;error&lt;/status&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;errcode&gt;4000&lt;/errcode&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;errtext&gt;[Transport] Temporary error occurred while processing request. Plesk server is unreachable now: (28) Operation timed out with 0 out of -1 bytes received<br />Connection log</span><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=6448&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=6448&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' : '6448',
													'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">10030 LastUpdated: 2009-06-18 10:44:23</guid>
<pubDate>2009-06-18 10:29:18</pubDate>
</item>
</channel>
</rss>



