We are having a problem with slow connections to DB2 running on Sun/Solaris. Connect times can vary from 2 seconds to 60+ seconds. We have ruled out network issues by running test scripts on the server itself. If we run our test in a loop with no delays, we usually get a decent average connect time, but if we wait 30-60 seconds between connections the results are poor (average 8 to 10 seconds). It seems that the first connection after a wait period takes longer than subsequent connections.

We are running: DB2/SUN 7.1.0

Any suggestions on what might be going on here?