...
Code Block |
---|
# Debuging -Xdebug -Xrunjdwp:transport=dt_socket,address=7000,server=y,suspend=n |
Socket connection timeout values
Networks and target systems can be unreliable. A significant use of the portal is to consume data from other systems and present it to the user. To guard against network or dependent system (databases, RSS feeds, RESTful services, etc.) issues, socket connections must have a timeout to prevent a portal or portlet worker thread from hanging indefinitely. Though most portal and portlet code defines socket connection timeouts to guard against hanging indefinitely, it is recommended to also define some JVM-wide settings to protect all external connections. For an Oracle JVM you do this with the following. Adjust values to suit your preferences.
Code Block |
---|
-Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=30000 |
Info | ||
---|---|---|
| ||
Additional Resources |
...