DmitriiMukhin opened a new issue, #801:
URL: https://github.com/apache/plc4x/issues/801

   ### What happened?
   
   When s7 driver can't establish connection with controller it creates threads 
that being falling into park state TIMED_WAITING. While application keep trying 
to connect via PlcDriverManger.getConnection(url) such threads count 
continuously growing. In the end we have java.lang.OutOfMemoryError: unable to 
create native thread.
   
   We are using s7 driver to communicate with different controllers from single 
app.
   
   Screenshots just to demonstrate an issue. Driver creates thousands of such 
threads.
   
   ![Screenshot from 2023-02-13 
16-06-18](https://user-images.githubusercontent.com/88187872/218466285-04277e1c-c9cb-490a-aaeb-227bcc9ee71f.png)
   ![Screenshot from 2023-02-13 
16-06-30](https://user-images.githubusercontent.com/88187872/218466306-a9a3a71b-1c5e-4c7a-bfa3-e66b761faade.png)
   ![Screenshot from 2023-02-13 
16-06-39](https://user-images.githubusercontent.com/88187872/218466322-12cda2c2-28a2-478d-b282-fb44079787d9.png)
   ![Screenshot from 2023-02-13 
16-10-05](https://user-images.githubusercontent.com/88187872/218467095-a7f7e4a5-c
   ![Screenshot from 2023-02-13 
16-10-44](https://user-images.githubusercontent.com/88187872/218467111-0bcf2e24-7b3c-47c1-aa40-77673803595d.png)
   d5d-4777-8305-2b8dcaa51a98.png)
   
   
   ### Version
   
   v0.10.0
   
   ### Programming Languages
   
   - [X] plc4j
   - [ ] plc4go
   - [ ] plc4c
   - [ ] plc4net
   
   ### Protocols
   
   - [ ] AB-Ethernet
   - [ ] ADS /AMS
   - [ ] BACnet/IP
   - [ ] CANopen
   - [ ] DeltaV
   - [ ] DF1
   - [ ] EtherNet/IP
   - [ ] Firmata
   - [ ] KNXnet/IP
   - [ ] Modbus
   - [ ] OPC-UA
   - [X] S7


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to