Remote database connection disconnecting after certain amoun

I have a server running Merb connecting to a remote database using
“establish_connection.”

When I call many methods in fast succession, I eventually get this Mysql
error:

Mysql::Error: Lost connection to MySQL server during query.

I have the ruby mysql bindings installed, as well.

Im thinking that its a problem with the database configurations. But its
hard to say its a timeout issue because this error will happen within
the first hour of my Merb app establishing the connection.

Any thoughts?