Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Configure timeout in SAP JCo 3

$
0
0

Hi,

 

I am using JCo 3 in standalone mode.

I would like to configure the destination to timeout if a certain period is exceeded, i.e. a socket timeout.

 

The usecase is if I have 2/3 remote functions which start running very slow, and a lot of calls to these, it will eventually exhaust the pool for faster-returning  connections. I would like to kill such connections.

 

Here is a sample stacktrace of the program hanging:

 

com.sap.conn.rfc.driver.CpicDriver.nativeCpic_coxread(Native Method)

  com.sap.conn.rfc.driver.CpicDriver.cpic_coxread(CpicDriver.java:601)

  com.sap.conn.rfc.driver.CpicDriver.coxread(CpicDriver.java:174)

  com.sap.conn.rfc.driver.RfcTypeDirectCpic.read(RfcTypeDirectCpic.java:43)

  com.sap.conn.rfc.engine.RfcIoOpenCntl.ab_rfcread(RfcIoOpenCntl.java:663)

  com.sap.conn.rfc.engine.RfcGetImp.rfc_readData(RfcGetImp.java:263)

  com.sap.conn.rfc.engine.RfcGetImp.rfc_getdata(RfcGetImp.java:210)

  com.sap.conn.rfc.engine.RfcGetImp.ab_rfcvalue(RfcGetImp.java:135)

  com.sap.conn.rfc.engine.RfcGet.ab_rfcget(RfcGet.java:279)

  com.sap.conn.rfc.engine.RfcRcv.ab_rfcreceive(RfcRcv.java:36)

  com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcReceive(RfcIoOpenCntl.java:1983)

  com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.execute(MiddlewareJavaRfc.java:2032)

  com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:1179)

  com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:1008)

  com.sap.conn.jco.rt.RfcDestination.execute(RfcDestination.java:1458)

 

Thanks in advance.

Regards, Dimitar


Viewing all articles
Browse latest Browse all 9091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>