I develop application run in Websphere work manager. work manager is used to run thread in the webpshere applications erver.
Every 5 minutes my thread try to get some data from MySQL database from the different host from the application server machine.
When the Host of MySql database turned off, The work manager always try to connect to MySQL database and I know my program will always get exception connection failure. this is the exception: com.mysql.jdbc.CommunicationsException:
Communications link failure due to underlying exception
But, over time my program get exception as follows:
java.sql.SQLException: The application requester cannot establish the connection. (Too many open files)
and this exception make my application server crash:
[8/2/10 9:07:21:613 ICT] 00000d54 prefs W Could not lock User prefs. Unix error code 24.
[8/2/10 9:07:21:613 ICT] 00000d54 prefs W Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
I need suggestion how to fix this problem and prevent my application being crash ????
WorkEnvironment:
Operation System AIX
Application Server Webpshere 7.0