Re: Communications link failure and java.net.ConnectException: Connection timed out: connect
Posted by: Filipe Silva
Date: July 05, 2016 04:11PM

Hi Adriano,

Are you setting some value for the connection properties 'socketTimeout' or 'connectTimeout' anywhere in your code? Eventually, setting DriverManager.setLoginTimeout() too low could cause it too.

If you are running on defaults and I have to guess, I'd say that you may have network issues between your client(s) and server.

If you didn't find what the issue is then please post here a full stack trace so that we can identify the source of the failure and try to give you some suggestions.

In the meantime did you monitor the active connections count by running 'SHOW PROCESSLIST;' on the MySQL client?

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.