Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

slow getInputStream on URLConnection

843790Oct 8 2008 — edited Oct 12 2008
hi all,

I have a problem with intimitant VERY slow getInputStream method calls on a URLConnection.
The connection is connecting to an HTTPS url and can transmit the data quickly (openConnection, getOutputStream, write, flush then close all complete quickly).
However, when the method call to: con.getInputStream() is attempted, it sits around for about 15 minutes sometimes before returning successfully.

the app is running on a weblogic 9.2 server with java 1.5.0.4.
this slowness only occurs for a particular url, and not any other HTTPS urls. also, the issue seems to only have started occurring alot more (1 in 5+) since moving to java1.5 and weblogic 9.2.

my initial thoughts are SSL handshake delays but i am clueless on how to fix the issue... i have no debugging turned on for ssl either, which might be a start...


anyone have any idea how this is occurring and better yet: how to fix it?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 9 2008
Added on Oct 8 2008
3 comments
1,930 views