|
|||
|
RVic wrote:
> I have a Java socket server that uses MySQL (5.0.27-community) as its > backend. I've noticed if the server sits idle for a lengthy period of > time (I have duplicated the results to generate a stack trace by not > making a socket connection for 48 hours) it faults out with the stack > trace listed below. I believe it is likely a mysql configuration > problem and/or a java ServerSocket or Socket issue. From the practical perspective then I think that: * if you do not use a connection pool, then you should send a SELECT 1 every hour to keep things alive * if you do use a connection pool, then you should use one capable of verifying connections and return a valid to you (and if your connection pool does not provide that, then find one that does) Arne |
|
|
||||
|
||||
|
|
![]() |
| Popular Tags in the Forum |
| mysql, server, socket |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Access 2010 with Sharepoint 2010 | Bob Alston | Newsgroup comp.databases.ms-access | 31 | 11-20-2009 05:52 PM |
| Rebuild data dir? | Mark Smith | Newsgroup comp.databases.mysql | 20 | 09-22-2009 11:23 PM |
| duplicate directory, add users other than mysql usr, mac | JRough | Newsgroup comp.databases.mysql | 1 | 06-25-2009 03:04 AM |
| Re: Enterprise Miner (Client Server) | Johnson, David | Newsgroup comp.soft-sys.sas | 0 | 04-05-2007 08:03 AM |
| Re: Can the same box be both Client and Server? | Peter Crawford | Newsgroup comp.soft-sys.sas | 0 | 04-02-2007 08:00 AM |