<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: MySQL: Avoiding the Mysql:Too many connections error</title>
	<atom:link href="http://albertech.net/2009/07/mysql-avoiding-the-mysqltoo-many-connections-error/feed/" rel="self" type="application/rss+xml" />
	<link>http://albertech.net/2009/07/mysql-avoiding-the-mysqltoo-many-connections-error/</link>
	<description>Tips, Tricks, and Reviews in Linux, Apache, MySQL, PHP</description>
	<lastBuildDate>Fri, 27 Aug 2010 19:12:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: admin</title>
		<link>http://albertech.net/2009/07/mysql-avoiding-the-mysqltoo-many-connections-error/comment-page-1/#comment-297</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 03 Sep 2009 23:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://albertech.net/?p=208#comment-297</guid>
		<description>Thanks for the feedback on the tomcat connection to mySQL. Whats your max_connections setting in mySQL? Connection pooling uses tons of connections.</description>
		<content:encoded><![CDATA[<p>Thanks for the feedback on the tomcat connection to mySQL. Whats your max_connections setting in mySQL? Connection pooling uses tons of connections.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jamescway</title>
		<link>http://albertech.net/2009/07/mysql-avoiding-the-mysqltoo-many-connections-error/comment-page-1/#comment-296</link>
		<dc:creator>jamescway</dc:creator>
		<pubDate>Mon, 31 Aug 2009 22:09:48 +0000</pubDate>
		<guid isPermaLink="false">http://albertech.net/?p=208#comment-296</guid>
		<description>following up...seems like tomcat doesn&#039;t like the 120sec wait_timeout, because it throws a broken pipe exception.  Seems like it wants a more persistent connection, and I saw some people mention they put wait_timeout&#039;s of 9999999999 etc.  Another solution was to put a validationQuery=&quot;/* ping */&quot; in the resource of your server.xml file.  That seemed to fix it for me.  I still don&#039;t quite understand why it wants persistent, long lived connections.  It would make sense to me for tomcat to automatically check to see if the connection was open before throwing exceptions.</description>
		<content:encoded><![CDATA[<p>following up&#8230;seems like tomcat doesn&#8217;t like the 120sec wait_timeout, because it throws a broken pipe exception.  Seems like it wants a more persistent connection, and I saw some people mention they put wait_timeout&#8217;s of 9999999999 etc.  Another solution was to put a validationQuery=&#8221;/* ping */&#8221; in the resource of your server.xml file.  That seemed to fix it for me.  I still don&#8217;t quite understand why it wants persistent, long lived connections.  It would make sense to me for tomcat to automatically check to see if the connection was open before throwing exceptions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jamescway</title>
		<link>http://albertech.net/2009/07/mysql-avoiding-the-mysqltoo-many-connections-error/comment-page-1/#comment-295</link>
		<dc:creator>jamescway</dc:creator>
		<pubDate>Mon, 31 Aug 2009 20:57:16 +0000</pubDate>
		<guid isPermaLink="false">http://albertech.net/?p=208#comment-295</guid>
		<description>I didn&#039;t set my wait_timeout (in my.cnf) and it defaulted to 8hrs 28800 sec.  Found out from select @@global.wait_timeout;
So if my connections get used up within the 8 hrs, then when someone else connects then I won&#039;t have any connections to assign and the user will see server error.  I will try to tune to 120sec and let you know how it goes.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t set my wait_timeout (in my.cnf) and it defaulted to 8hrs 28800 sec.  Found out from select @@global.wait_timeout;<br />
So if my connections get used up within the 8 hrs, then when someone else connects then I won&#8217;t have any connections to assign and the user will see server error.  I will try to tune to 120sec and let you know how it goes.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
