This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
1,677 Views 1 Replies Last post: Dec 7, 2008 4:22 PM by Vinh RSS
Mohammed King Novice 1 posts since
Nov 21, 2008
Currently Being Moderated

Nov 21, 2008 8:53 PM

JDBC Connection lost every morning.

Hi all,

 

Would anyonw happen to know why a jdbc connection will be dead every moring?  Everything is fine all day but in the morning the server needs to be restarted.

 

Database settings in jive_startup.xml

<database>
    <!-- Uncomment to enable Unicode support when using MySQL -->
    <!-- <mysql><useUnicode>true</useUnicode></mysql> -->
    <!-- Uncomment to enable Statement caching when using Oracle JDBC -->
    <!-- <oracle><useStatementCache>true</useStatementCache></oracle> -->
    <defaultProvider>
      <username>xxxuser</username>
      <maxConnections>75</maxConnections>
      <minConnections>10</minConnections>
      <serverURL>jdbc:mysql://xxxserver:3306//xxxdb?autoConnect=true</serverURL>
      <driver>com.mysql.jdbc.Driver</driver>
      <connectionTimeout>0.3</connectionTimeout>
      <password>xxxpass</password>
      <checkOpenConnections>true</checkOpenConnections>
    </defaultProvider>
  </database>

 

my.cnf on remote mysql server

 

[mysqld]
max_allowed_packet=16M
interactive_timeout=86400

Tags: connection, mysql, jdbc
Vinh Jive Employee 12,343 posts since
Apr 1, 2008
Currently Being Moderated
Dec 7, 2008 4:22 PM in response to: Mohammed King
Re: JDBC Connection lost every morning.

Is anything showing up in your logs in the morning? Can you post them? Also, what version of MySQL and MySQL connector is this?

More Like This

  • Retrieving data ...

Bookmarked By (0)