Strange queries every 10 seconds to DB

1,241 views
Skip to first unread message

Misha

unread,
Oct 20, 2011, 7:05:37 AM10/20/11
to play-framework
Does anybody know why there are queries SHOW FULL TABLES FROM `ARM`
LIKE 'PROBABLYNOT' in a MySQL general log?
What process sends them?

What I could see in the log of DB is that play keeps 8 connections
with the DB and sends this query every 10 seconds on every connection.
But I couldn't catch any sight at the application side, even with log
level set to TRACE

I have play 1.2.3, MySQL 5.1.58

Brian Nesbitt

unread,
Oct 20, 2011, 1:22:56 PM10/20/11
to play-fr...@googlegroups.com
Are you using a database named ARM?  Are you just using the default Play install otherwise?  Not much in google about this.  Probably something dumb (not by you, I mean just in general).

Misha

unread,
Oct 20, 2011, 10:04:07 PM10/20/11
to play-framework
Hello, Brian!

Yes, the database name is ARM. My application uses this database. So
when I stop the application, MySQL stops receiving query SHOW FULL
TABLES FROM `ARM` LIKE 'PROBABLYNOT'.
Yes, I use default Play installation, no other libraries.

Brian Nesbitt

unread,
Oct 20, 2011, 10:17:49 PM10/20/11
to play-fr...@googlegroups.com
Found it... its the connection pooling checking the connection.

Play uses the popular http://sourceforge.net/projects/c3p0/ for its connection pool.

Take a look at activeCheckConnectionNoQuery() in the DefaultConnectionTester.java:


rs = c.getMetaData().getTables( null, null, "PROBABLYNOT", new String[] {"TABLE"} );
return CONNECTION_IS_OKAY;

Misha

unread,
Oct 21, 2011, 3:10:11 AM10/21/11
to play-framework
Many thanks, Brian! I appreciate your help
Reply all
Reply to author
Forward
0 new messages