You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@plc4x.apache.org by "Christofer Dutz (Jira)" <ji...@apache.org> on 2020/02/04 14:37:00 UTC

[jira] [Commented] (PLC4X-172) ADS driver does not shutdown all threads (hangs) after closing connection

    [ https://issues.apache.org/jira/browse/PLC4X-172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17029904#comment-17029904 ] 

Christofer Dutz commented on PLC4X-172:
---------------------------------------

Are you using the new drivers? We recently did a huge refactoring to the drivers in the last two months. As far as I know we aren't completely finished with the ads driver and the new version is still in the sandbox. 

> ADS driver does not shutdown all threads (hangs) after closing connection
> -------------------------------------------------------------------------
>
>                 Key: PLC4X-172
>                 URL: https://issues.apache.org/jira/browse/PLC4X-172
>             Project: Apache PLC4X
>          Issue Type: Bug
>          Components: Driver-ADS
>    Affects Versions: 0.7.0
>         Environment: Windows 10
> OpenJDK 11
> Eclipse 2019-12
> Remote PLC running TwinCat 2
>            Reporter: Jens Vagts
>            Priority: Major
>         Attachments: Plc4xAdsTestInitial.java, image-2020-02-04-11-58-40-364.png, trace.log
>
>
> I'm starting to use the ADS protocol support of the PLC4X project. I succeeded to read out single values but always struggle with a hanging application process due to remaning threads of {{nioEventLoopGroup}} and {{pool-1:}}
> !image-2020-02-04-11-58-40-364.png!
> Attached are the simple java test method and the trace log.
> I built the library version {{0.7.0-SNAPSHOT}} from source.
> After 30 seconds warnings get logged regarding timeouts but the thread keep running:
> {noformat}
> 11:52:03.492 [pool-1-thread-1] WARN  o.a.p.j.b.p.SingleItemToSingleRequestProtocol - container PlcRequestContainer{request=org.apache.plc4x.java.base.messages.DefaultPlcProprietaryRequest@c1b47e3} timed out:HashedWheelTimer$HashedWheelTimeout(deadline: 101966500 ns ago, task: org.apache.plc4x.java.base.protocol.SingleItemToSingleRequestProtocol$$Lambda$99/0x0000000800237440@353dfda9)
> 11:52:08.791 [pool-1-thread-1] WARN  o.a.p.j.b.p.SingleItemToSingleRequestProtocol - container PlcRequestContainer{request=org.apache.plc4x.java.base.messages.DefaultPlcProprietaryRequest@3220d517} timed out:HashedWheelTimer$HashedWheelTimeout(deadline: 9469900 ns ago, task: org.apache.plc4x.java.base.protocol.SingleItemToSingleRequestProtocol$$Lambda$99/0x0000000800237440@3fc596d9)
>  {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)