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

Something slows everything down #2597

Open
1 of 5 tasks
GurcanBicer opened this issue Apr 25, 2024 · 3 comments
Open
1 of 5 tasks

Something slows everything down #2597

GurcanBicer opened this issue Apr 25, 2024 · 3 comments
Assignees
Labels
Pending Feedback Pending on further feedbacks or clarification from person who create the issue.

Comments

@GurcanBicer
Copy link

GurcanBicer commented Apr 25, 2024

Type of issue

  • Bug
  • Enhancement
  • Compliance
  • Question
  • Help wanted

Current Behavior

I need help with a problem.
The application is supposed to run 24/7-365 days.
Now and then, the memory usage increases, and the messages become so slow from OPC.UA.
I just got a memory dump before restarting the application.

subscriptionhigh
image

For some reason, the subscription's IncomingMessages list has become huge. It looks like a circular referencing is happening here.

What would be the reason for this, could you please help me?

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- OS:Windows Server 2022
- Environment:Visual Studio 2022
- Runtime:.NET 4.8
- Nuget Version: 1.4.372.106
- Component: Opc.Ua.Core
- Server: Kepware
- Client: Custom Built

Anything else?

No response

@EthanChangAED EthanChangAED self-assigned this Apr 26, 2024
@EthanChangAED
Copy link

Hello @GurcanBicer, thank you for reporting this. I noticed that you are using an earlier version of the stack. As we recently made several performance improvements, I would suggest you try with the latest release. Or wait for the April release (ETA mid-March) that would also include one more bug fixing.

@EthanChangAED EthanChangAED added the Pending Feedback Pending on further feedbacks or clarification from person who create the issue. label Apr 26, 2024
@mregen
Copy link
Contributor

mregen commented Apr 27, 2024

The incoming message list size can be configured using MaxMessageCount. Could you check the setting?

@GurcanBicer
Copy link
Author

@mregen , I will try that.

The sampling rate is 250ms, and the publishing interval is 250ms.

There is only 20-25 monitored items on that subscription. And those PLC tags doesn't generate that much of a data. But if that list grows even without a value change, it is still possible, if the publishing interrupted for some reason. But I don't see any log messages regarding a publish problem.

I will upgrade the library version next week and monitor for a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pending Feedback Pending on further feedbacks or clarification from person who create the issue.
Projects
None yet
Development

No branches or pull requests

3 participants