AnsweredAssumed Answered

Thread hangs when trying to close connection with PI.

Question asked by hodneeri on Aug 26, 2016
Latest reply on Aug 26, 2016 by bpayne

When fetching data from PI, sometimes our schedule gets stuck in blocked status. After running a dump of all the threads, we discovered that it is actually hanging on a close call towards PI. This is at a customer site, so i do not at the current time have the exact PI version they are running on, but they are running java 1.7.0_71 (and cannot upgrade to 1.8 due to compatibility reasons with other software).

 

While it runs ok most of the time, this happens some times, and it causes great problems every time it happens. Have anyone encountered this problem before, and know what it might be caused by? Here is the stack trace:

 

"ECDS_Worker-8" daemon prio=6 tid=0x00000000252fd000 nid=0x1704 runnable [0x000000003347d000]
   java.lang.Thread.State: RUNNABLE
     at com.osisoft.rdsa.RDSAChannel.Destroy(Native Method)
     at com.osisoft.rdsa.RDSAChannel.close(RDSAChannel.java:114)
     - locked <0x00000006c04ed640> (a com.osisoft.rdsa.RDSAChannel)
     at com.osisoft.jdbc.ConnectionImpl.close(ConnectionImpl.java:108)
     at com.ec.frmw.is.engine.adapter.pi.jdbc.PiAdapter.finalizeAdapter(PiAdapter.java:109)

Outcomes