본문 바로가기

WAS/WebLogic

weblogic Socket Timeout 관련하여 정리

728x90

지금 정리를 안 해놓으면, 추후에 같은 문의에 또 시간 잡아먹을 거 같으니 찾아둔 거 까지는 정리해보자

 

출처

=====

1-1. Intermittent java.net.SocketTimeoutException: Read timed out Exceptions While Invoking Custom REST Web Service (Doc ID 2615434.1)

1-2. https://docs.oracle.com/javase/8/docs/technotes/guides/net/properties.html

2. https://doyensys.com/blogs/how-to-increase-connection-timeout-in-weblogic/

3. How to Set Connection Timeout for T3 Connection (Doc ID 2665192.1)

=====

 

 

1. java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)

--> 기동 스크립트 상에  -Dsun.net.client.defaultReadTimeout=milliseconds 기입

 

2. connection timeout in weblogic

--> 기동 스크립트 상에  -Dsun.net.client.defaultConnectTimeout=milliseconds 기입

 

그 외에 찾은 socket time out 관련은 다음과 같다

 

3. Below properties could be set to define timeout when creating T3 Connection:

-Dweblogic.t3.ConnectTimeout=seconds

     The amount of time that this server should wait to establish an outbound t3 socket connection before timing out.

     It could be replaced with -Dweblogic.ConnectTimeout=x. 

-Dweblogic.ConnectTimeout=seconds

    The amount of time that this server should wait to establish an outbound socket connection before timing out.

-Dweblogic.jndi.connectTimeout=seconds

    The amount of time a request waits for a connection response

 

전부 JAVA 옵션 단이니, 기동 스크립트 상에 명시하면 될 것으로 보인다.