Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 87861 invoked from network); 15 Jun 2009 15:10:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jun 2009 15:10:37 -0000 Received: (qmail 51254 invoked by uid 500); 15 Jun 2009 15:10:48 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 51235 invoked by uid 500); 15 Jun 2009 15:10:48 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 51221 invoked by uid 99); 15 Jun 2009 15:10:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jun 2009 15:10:47 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [212.227.17.10] (HELO moutng.kundenserver.de) (212.227.17.10) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jun 2009 15:10:35 +0000 Received: from [172.20.41.160] (p5B207FBB.dip.t-dialin.net [91.32.127.187]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MKsym-1MGDp91Lov-000dah; Mon, 15 Jun 2009 17:10:15 +0200 Message-ID: <4A366456.70205@intland.com> Date: Mon, 15 Jun 2009 17:10:14 +0200 From: Zsolt Koppany User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: user-java@ibatis.apache.org Subject: Re: Does ping really work? References: <4A3616ED.20103@intland.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1+n9jihv09h8Rab0I8INXEzP6gUFNWMbnJlJ6N GioDL8imxg6zPF5hQIT0edsnGSARIBgeee2d363oDc9mfBIX4R v0tYMMKNj82R8LogWAzcnu1LVdNovk4 X-Virus-Checked: Checked by ClamAV on apache.org Thank you Larry, I also found that at startup we get a connection from the pool that is not closed. But as far as I understand "Pool.MaximumCheckoutTime" should guarantee that a connection cannot be used longer that 20 seconds (in our case). Do I miss something? Zsolt Larry Meadors wrote: > Google is your friend: > > http://forums.mysql.com/read.php?39,199085,204628#msg-204628 > > Larry > > On Mon, Jun 15, 2009 at 3:39 AM, Zsolt Koppany wrote: >> Hi, >> >> I get an exception attached at the end. Here are the ibatis pool properties: >> >> Pool.MaximumActiveConnections=20 >> Pool.MaximumIdleConnections=5 >> Pool.MaximumCheckoutTime=20000 >> Pool.TimeToWait=20000 >> Pool.PingEnabled=true >> Pool.PingQuery=SELECT 1 FROM always_one_row >> Pool.PingConnectionsOlderThan=0 >> Pool.PingConnectionsNotUsedFor=5000 >> >> How is it possible getting this exception? "Pool.PingConnectionsNotUsedFor" >> is set to 5 seconds and mysql complains that last packet was sent 758278 >> seconds ago. As far as I understand for connections older than 5 seconds the >> ping command should be executed and if not successful a new connection >> created. >> >> I use ibatis-2.3.4.726. Does anybody have an idea? >> >> Zsolt >> >> 2009-06-14 14:31:19,167 ERROR dao.impl.ProjectDaoImpl - iBATIS exception >> [TP-Processor489] >> com.ibatis.common.jdbc.exception.NestedSQLException: >> --- The error occurred while applying a parameter map. >> --- Check the findProject-InlineParameterMap. >> --- Check the statement (query failed). >> --- Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last >> packet successfully received from the server was758278 seconds ago.The last >> packet sent successfully to the server was 758278 seconds ago, which is >> longer than the server configured value of 'wait_timeout'. You should >> consider either expiring and/or testing connection validity before use in >> your application, increasing the server configured values for client >> timeouts, or using the Connector/J connection property 'autoReconnect=true' >> to avoid this problem. >> at >> com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:201) >> at >> com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139) >> at >> com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:567) >> at >> com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:126) >> at >> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:102) >> at >> com.intland.codebeamer.persistence.util.SqlMapClientWrapper.queryForList(SqlMapClientWrapper.java:345) >> >> >