<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>In Search of a Good Title &#187; PHP memory</title>
	<atom:link href="http://curtis.humphreyonline.us/tag/php-memory/feed" rel="self" type="application/rss+xml" />
	<link>http://curtis.humphreyonline.us</link>
	<description>Curtis M. Humphrey's Website</description>
	<lastBuildDate>Wed, 02 Jun 2010 17:04:44 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wordpress, PHP Memory, and 1and1.com</title>
		<link>http://curtis.humphreyonline.us/code/wordpress/wordpress-php-memory-and-1and1com</link>
		<comments>http://curtis.humphreyonline.us/code/wordpress/wordpress-php-memory-and-1and1com#comments</comments>
		<pubDate>Wed, 04 Mar 2009 17:37:08 +0000</pubDate>
		<dc:creator>Curtis M. Humphrey</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[1and1]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP memory]]></category>
		<category><![CDATA[Wordpress 2.7.1]]></category>

		<guid isPermaLink="false">http://curtis.humphreyonline.us/?p=65</guid>
		<description><![CDATA[After upgrading from Wordpress 2.7 to 2.7.1, I starting having odd issues. At first I thought it was that some of the plugins I was using need to be updated as I posted about here. However, it I think the problem is closer to the one described at: php-memory-and-wordpress. That is PHP is running out [...]


Related posts:<ol><li><a href='http://curtis.humphreyonline.us/code/wordpress/wordpress-php-memory-and-1and1-com-part-2' rel='bookmark' title='Permanent Link: Wordpress, PHP Memory, and 1and1.com part 2'>Wordpress, PHP Memory, and 1and1.com part 2</a></li>
<li><a href='http://curtis.humphreyonline.us/code/wordpress/upgrading-to-wordpress-2-7-1' rel='bookmark' title='Permanent Link: Upgrading Wordpress to 2.7.1'>Upgrading Wordpress to 2.7.1</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>After upgrading from Wordpress 2.7 to 2.7.1, I starting having odd issues. At first I thought it was that some of the plugins I was using need to be updated as I posted about <a title="here" href="http://curtis.humphreyonline.us/wordpress/upgrading-to-wordpress-2-7-1">here</a>. However, it I think the problem is closer to the one described at: <a href="http://www.narfstuff.co.uk/2008/03/14/php-memory-and-wordpress/">php-memory-and-wordpress</a>. That is PHP is running out of memory. I am currently hosting the site at 1and1 on a developer package and according to there <a href="http://faq.1and1.com/scripting_languages_supported/php/16.html">FAQ</a>:</p>
<blockquote><p>Due to resource limits on our Shared Hosting machines, it is not possible to allocate more than 20M of memory to PHP, although <a title="phpinfo()" href="http://www.php.net/phpinfo">phpinfo()</a> may report a higher number.  You will be unable to increase the memory usage limit with a php.ini file.</p></blockquote>
<p>O.k., first off why would they allow your to specify a higher number in PHP if they are going to ignore it? According to PHP if a script runs out of memory it will report with a message like this: &#8220;Fatal error: Out of memory error.&#8221; However, because of 1and1 allow PHP to think it has more memory and then killing it when it exceeds 20M, no error message is reported. I run across this situation on a different project in the past when processing images.</p>
<p>So I decided to test to see if this could be the case. The best page to test I found was the Tools-&gt;Import page. That page seem to be the one most likely to stop loading and blank out. It would load all of the admin menus but would not load the import list when some plugins were activated. So I added a few <a title="memory_get_usage()" href="http://www.php.net/memory_get_usage">memory_get_usage()</a> function calls and sure enough it appears that whenever the memory when above about 15,300,000 bytes of memory it would die. This is lower than 20MB but memory_get_usage does not necessarily report all memory used as seen by the OS.</p>
<p><strong>Therefore</strong>, I must conclude that it is a PHP memory issue and that 1and1.com poor decision to allow PHP to report and indeed set a higher memory limit than 20MB but ignoring that number anyways suppresses the error message resulting in very odd behaviors. Since, Wordpress is a good well used piece of software this is a grave shortfall for 1and1 hosting especially at the developer level. I therefore am in search of a new host as I am not going to continue to pay money to a host with such a poor limit and support of PHP.  Hopefully this post might shed some light on odd problems you might be having with Wordpress on 1and1.</p>


<p>Related posts:<ol><li><a href='http://curtis.humphreyonline.us/code/wordpress/wordpress-php-memory-and-1and1-com-part-2' rel='bookmark' title='Permanent Link: Wordpress, PHP Memory, and 1and1.com part 2'>Wordpress, PHP Memory, and 1and1.com part 2</a></li>
<li><a href='http://curtis.humphreyonline.us/code/wordpress/upgrading-to-wordpress-2-7-1' rel='bookmark' title='Permanent Link: Upgrading Wordpress to 2.7.1'>Upgrading Wordpress to 2.7.1</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://curtis.humphreyonline.us/code/wordpress/wordpress-php-memory-and-1and1com/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
