Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPC Wrapper goes into a bad state(BadTooManyOperations) when left running for long. #592

Open
1 of 5 tasks
vinaybr opened this issue Feb 12, 2024 · 1 comment
Open
1 of 5 tasks

Comments

@vinaybr
Copy link

vinaybr commented Feb 12, 2024

Type of issue

  • Bug
  • Enhancement
  • Compliance
  • Question
  • Help wanted

Current Behavior

OPC Wrapper goes into a bad state(BadTooManyOperations) when left running for long.

Steps To Reproduce

We are running the wrapper sample with a HDA server. We are reading about 20 nodes at regular intervals and when left to run over for long goes into a bad state. The History Read starts failing with BadTooManyOperations. Once this happens the server fails with the same error when another client tries to connect to the server. Disconnecting the HDA client also does not help. The only way to recover is to restart the Wrapper.

Environment

- OS: Windows 10
- Environment: 64bit
- Runtime: .Net6
- Nuget Version:1.4.370.12
- Component:Wrapper
- Server:
- Client:
@vinaybr vinaybr changed the title <title> OPC Wrapper goes into a bad state(BadTooManyOperations) when left running for long. Feb 13, 2024
@mregen
Copy link
Contributor

mregen commented Feb 21, 2024

@vinaybr this error (BadTooManyOperations) is hit when the server local thread pool which processes the service requests runs out of threads, which means there might be threads consumed and waiting which never return, or too few threads are configured. How long does it take until it goes to a bad state?
Please check also the latest Nuget bits, this error was changed to return BadServerTooBusy.

To change the max number of threads in use, here are the settings:

    <MinRequestThreadCount>5</MinRequestThreadCount>
    <MaxRequestThreadCount>100</MaxRequestThreadCount>
    <MaxQueuedRequestCount>2000</MaxQueuedRequestCount>

Please provide also some log output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants