Connectionはタイムアウトになり、その開発者はアイデアのリストの一番下にあります。
ログにはわかりやすいものがあります。
[6/24/10 6:32:34:032 EDT] 0000000d ThreadMonitor W WSVR0605W: Thread "WebContainer : 136" (0000c53e) has been active for 719542 milliseconds and may be hung. There is/are 45 thread(s) in total in the server that may be hung.
そして、コードは次のようになります。
try {
final URLConnection connection = url.openConnection();
connection.setConnectTimeout(CONNECT_TIME_SECONDS * 1000);
connection.setReadTimeout(READ_TIME_SECONDS * 1000);
is = connection.getInputStream();
document = builder.parse(is);
} catch (SAXException e) {
log.error(e);
throw new PageContentException(e);
} finally {
if (is != null) {
is.close();
}
}
私の推測では、接続タイムアウトが妥当な値に下がる前にurl.openConnection ()が接続を開こうとしていると思いますが、APIには、これをどのように変更するかが示されていません。
何を試すべきかについての提案?