- Posts: 152
- Thank you received: 0
Online Forums
Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.
Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.
Do not use the Contact page for technical issues.
High CPU usage peaks
I have build app with more 600 tags and works on Atom 4gb and i don t have speed problem. Are u using Firemonkey or vcl
Please Log in or Create an account to join the conversation.
In theory, it might be possible to improve the behavior using the GC latency mode setting:
- docs.microsoft.com/en-us/dotnet/api/system.runtime.gcsetting...encymode?view=netframework-4.7
- docs.microsoft.com/en-us/dotnet/api/system.runtime.gclatencymode?view=netframework-4.7
There are, however, two issues with it:
1) Currently it is not accessible to you, because it is in a global .NET object which neither Microsoft nor us are exposing to COM .
2) The proper setting would probably be LowLatency or SustainedLowLatency, BUT none of these is meant to be set permanently - they should be constrained to specific periods where the performance is important. You will therefore have to identify such pieces of code and control the GC in such a way that it gets a chance to return to its normal operations from time to time.
Regards
Please Log in or Create an account to join the conversation.
Regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I am a colleague of RH.
There is in part to system utilization of up to 100% over several seconds.
Regards
Please Log in or Create an account to join the conversation.
- “% Time in GC”
- “# Gen 0 Collections”
- “# Gen 1 Collections”
- “# Gen 2 Collections”
Please Log in or Create an account to join the conversation.
we are using QuickOPC in COM from Delphi with subscriptions and about 100 variables. Recently we observed that we get high peaks of the CPU usage for about 2-5 seconds every few minutes. This even causes the main thread of our software to hang and cause problems when performing rather time-critical actions.
With process explorer, we tracked the CPU usage per thread and it seems to be one QuickOPC .NET thread. I actually don't know why it has such a big influence on the main thread. Could this be caused by some synchronizing mechanism in .NET? From Delphi I know that using the command Synchronize from threads causes all threads to synchronize, even those which are not involved. This can leed to bad performance depending on the code running synchronized.
Any suggestions, what we can do to minimize that behaviour?
Regards
Please Log in or Create an account to join the conversation.