Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.java.* > Newsgroup comp.lang.java.programmer

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-28-2009, 01:01 AM
Arne Vajhøj
Guest
 
Posts: n/a
Default Re: Socket Server with MySQL

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
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

Reply

Popular Tags in the Forum
mysql, server, socket

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


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



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


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.