I have an J2EE server based application running on an Oracle App server cluster with two load balanced nodes. The application is using the HttpsURLConnection class to connect to a remote system and post some data for credit card authorization. When server 1 in the cluster sends the post to the remote host it works fine every time. When server 2 in the cluster sends the post to the remote host about one in every four or five calls blocks.
The code looks like this:
It hangs sometimes at the last line: PrintWriter pw=new PrintWriter(novaHttpsConnection.getOutputStream()), but only on one of the two servers in the cluster.
The systems people tell me that the operating system, JDK and hardware on both servers is identical.
On that version it hangs on the createSocket call.
Anybody have any thoughts on what might make this hang on one server and not another? It's a vexing problem. I'm pretty sure the blocking isn't going on at the other end because one server on this end is working perfectly and the other is hanging and they are both sending requests at the same time.