Return to Jive Software

This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
1,675 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)

To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.