<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: MySQL connections not disconnecting</title>
  <link>http://www.activecollab.com/forums/topic/2583/</link>
  <description>Recent posts on topic: MySQL connections not disconnecting</description>
  <dc:language>en-us</dc:language>
  <pubDate>Sat, 30 Aug 2008 15:30:00 UTC</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/12076/#post12076</link>
    <guid>http://www.activecollab.com/forums/post/12076/#post12076</guid>
    <title>Post #3 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>You are talking about v1.0 or v0.7.1?<br />
<br />
activeCollab 1.0 always opens persistent connections. In order to use mysql_connect() instead of mysql_pconnect() open AngieApplication class located in /activecollab/angie/classes/application/AngieApplication.class.php and change this line:<br />
<br />
<pre name="code" class="php">$database_connect = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME, true, DB_CHARSET);</pre><br />
<br />
Into:<br />
<br />
<pre name="code" class="php">$database_connect = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME, false, DB_CHARSET);</pre></p>]]></description>
    <pubDate>Wed, 12 Mar 2008 16:53:53 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/12075/#post12075</link>
    <guid>http://www.activecollab.com/forums/post/12075/#post12075</guid>
    <title>Post #2 by vrillusions</title>
    <dc:creator>vrillusions</dc:creator>
    <description><![CDATA[<p>After doing more searching I found the options to fix it on the mysql end (<a href="http://mysqldatabaseadministration.blogspot.com/2005/11/mysql-5-optimization-and-tuning-guide.html" target="_blank" rel="nofollow">source</a>).  Important lines from that are wait_timeout=60 and interactive_timeout=120.  Both default to 28800 seconds, or 8 hours... yeah.  I kept the wait timeout at 60 but set interactive to 300 seconds since I'll be on there to debug queries every so often.</p>]]></description>
    <pubDate>Wed, 12 Mar 2008 16:39:26 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/12074/#post12074</link>
    <guid>http://www.activecollab.com/forums/post/12074/#post12074</guid>
    <title>Post #1 by vrillusions</title>
    <dc:creator>vrillusions</dc:creator>
    <description><![CDATA[<p>Someone reported this issue in 0.7.1 at http://www.activecollab.com/forums/topic/1413/ but thought I'd reopen it here as it's still occurring.<br />
<br />
My configuration:<br />
Debian 4.0<br />
Apache 2.2.3<br />
PHP 5.2.0<br />
MySQL 5.0.32<br />
<br />
Problem is config/config.php doesn't have a DB_PERSIST option.  When I add it and set it to false, it makes no difference.  I am pretty sure I just used the my-large.cnf sample config file and tweaked a couple settings as needed.  Is there any other way to disable DB_PERSIST and/or just fix mysql so it doesn't hold open connections?</p>]]></description>
    <pubDate>Wed, 12 Mar 2008 16:20:42 UTC</pubDate>
  </item>
</channel>
</rss>