Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
# Set connection timeout values to insure a poorly performing target system doesn't cause portlet or DB threads to hang
-Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=600000

...