Professional OPC
Development Tools

logos

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.

Memory consumption

More
08 Jul 2016 07:59 #4216 by support
Replied by support on topic Memory consumption
OK that's good to know. The programmer was just about to start working on that, so many thanks for letting me know in time.

It is weird that an antivirus could be responsible for something like that, but one never knows...

Regards

Please Log in or Create an account to join the conversation.

More
08 Jul 2016 07:51 #4215 by chrisachern
Replied by chrisachern on topic Memory consumption
Hi,

i think i found the error. It was not an opc fault. There was a trend Micro Client antivirus installed. One of the trend Micro Services seemed to block the garbage Collection. The Service also needed 2 gb of ram. so i restarted the Service and after that my opc Service is performing normal.

Sorry for the Trouble.

Best Regard,
Chris

Please Log in or Create an account to join the conversation.

More
07 Jul 2016 07:34 - 07 Jul 2016 07:38 #4206 by chrisachern
Replied by chrisachern on topic Memory consumption
I read only 3 opc items. they all have the "item canonical data type" smallint.


I added a pic with some opc Server Details.
Attachments:
Last edit: 07 Jul 2016 07:38 by chrisachern.

Please Log in or Create an account to join the conversation.

More
07 Jul 2016 07:00 #4205 by support
Replied by support on topic Memory consumption
Thank you. We will attempt to reproduce the issue here.

One more question: What data type are your items? Are they integers, floats, or also strings and other more complex types?

Best regards
The following user(s) said Thank You: chrisachern

Please Log in or Create an account to join the conversation.

More
07 Jul 2016 06:54 #4204 by chrisachern
Replied by chrisachern on topic Memory consumption
Hi. Here are my assemblies included in the Project. They have all Version 5.40.251.1

OpcLabs.BaseLib.dll
App_Web_OpcLabs.EasyOpcClassicRaw.x86.dll
App_Web_OpcLabs.EasyOpcClassicRaw.amd64.dll
OpcLabs.EasyOpcClassic.dll
OpcLabs.EasyOpcClassicInternal.dll


Best Regards,
Chris

Please Log in or Create an account to join the conversation.

More
06 Jul 2016 18:15 #4203 by support
Replied by support on topic Memory consumption
OK, thank you. This means that the GC is being called regularly.

Which version and build of QuickOPC are you using? Hint: In File Explorer, right-click on one of the "OpcLabs.*" assemblies, select Properties, and take the info from the Details tab.

Thank you

Please Log in or Create an account to join the conversation.

More
06 Jul 2016 13:21 #4200 by chrisachern
Replied by chrisachern on topic Memory consumption
Hi,

i started perfmon with these 3 Counters.

Gen 0 Collections: Average increases approximately 0.03 per second -> last increases approximately 1 per 30 seconds

Gen 1 Collections: increases 1 every 3-4 minutes

Gen 2 Collections: no changes

Please Log in or Create an account to join the conversation.

More
06 Jul 2016 12:02 #4199 by support
Replied by support on topic Memory consumption
I had a quick look at your code and I do not see anything wrong.

There is a possibility, however, that there is nothing wrong with the increasing memory consumption either. Running this service requires continuous creation of objects, and .NET only disposes of the memory when it runs the garbage collector. It would be OK for the memory to grow if the garbage collector has not run. I agree it would be somewhat strange that it did not run for 2 days or so, but it is something that needs to be clear first.

Please run PERFMON together with your process, and add following Counters for the instance of your process:

.NET CLR Memory -> # Gen 0 Collections
.NET CLR Memory -> # Gen 1 Collections
.NET CLR Memory -> # Gen 2 Collections

Let it run, and observe whether the counters increase and how often.
The following user(s) said Thank You: chrisachern

Please Log in or Create an account to join the conversation.

More
06 Jul 2016 10:46 #4197 by chrisachern
Hi,

i have a very simple Service, which writes values of opc items to a database. My Problem is, that the Memory consumption is slowly increasing. When i start the Service, it uses about 20mb, after 2 days it's already at 180mb Memory consumption. I attached the Project. Perhaps someone can take a look at the Project.

Best Regards,
Chris
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.056 seconds