Unix Technical Forum

mysqld connections still open when java thread interrupted

This is a discussion on mysqld connections still open when java thread interrupted within the MySQL General forum forums, part of the MySQL category; --> can't seem to find anything on my problem. hope list can help: thread class creates connection to mysql - ...


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-18-2008, 09:47 AM
Lopez David E
 
Posts: n/a
Default mysqld connections still open when java thread interrupted

can't seem to find anything on my problem. hope list can help:

thread class creates connection to mysql - all is well
if sql takes too long, calling thread interrupts thread, and close
resources:
rs.close(), stmt.close(), conn.close()
however mysqld server connections are not closed
after a while, max number of connections is reached. bad.

how do i force the connection on mysqld to close after thread interrupt?

btw, normal close of connection (without thread interrupt) works fine.

solaris 2.8
mysql v4.0
jdbc v3.14

david
----
David Lopez
org: fsl->tso->dsn tech->tools&meth->t&m interfce->csam
phone: 480-413-6251
email: r9374c@freescale.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:11 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com