Professional OPC
Development Tools

logos

Memory Leak in Alarm&Event

More
07 May 2014 12:56 #1938 by support
Replied by support on topic Memory Leak in Alarm&Event
I have modified the test to use our simulation server, and I am currently running it with version 5.23.1162.1.

For record, the modified code is as follows:
 
Imports OpcLabs.EasyOpc.AlarmsAndEvents
 
Public Class Form1
 
    Dim EasyAEClient As New EasyAEClient
    Dim AEFilter As New AESubscriptionFilter
    Dim MyHandle As Integer
    Dim State As Object
 
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Dim areas(0) As String
        areas(0) = "Resource"
        AEFilter.Areas = New AENodeDescriptor() {"Simulation"}
        AddHandler EasyAEClient.MultipleNotifications, AddressOf EasyAEClient_MultipleNotifications
        MyHandle = EasyAEClient.SubscribeEvents("", "OPCLabs.KitEventServer.2", 100, State, AEFilter)
    End Sub
 
    Private Sub EasyAEClient_MultipleNotifications(ByVal sender As Object, ByVal ev As EasyAEMultipleNotificationsEventArgs)
        For i As Integer = 0 To ev.ArgsArray.Count - 1
            Dim e = ev.ArgsArray(i)
            If Not e.Event Is Nothing Then
                Label1.Text += 1
            End If
        Next
    End Sub
 
End Class
 
 

I will let you know when I have the results.

BTW, how many events per minute do you have, very roughly?
Thank you

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

More
07 May 2014 08:03 #1933 by Filliolej
This is the trend of Private Bytes used... in one day!
Attachments:

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

More
06 May 2014 11:32 - 06 May 2014 11:40 #1925 by Filliolej
This is the Windows form application that we are using for test
 
Public Class Form1
 
    Dim EasyAEClient As New OpcLabs.EasyOpc.AlarmsAndEvents.EasyAEClient
    Dim AEFilter As New OpcLabs.EasyOpc.AlarmsAndEvents.AESubscriptionFilter
    Dim MyHandle As Integer
    Dim State As Object
 
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Dim areas(0) As String
        areas(0) = "Resource"
        AEFilter.Areas = areas
        AddHandler EasyAEClient.MultipleNotifications, AddressOf EasyAEClient_MultipleNotifications
        MyHandle = EasyAEClient.SubscribeEvents("", "HIMA.TEST-XAE-AE.1", 100, State, AEFilter)
    End Sub
 
    Private Sub EasyAEClient_MultipleNotifications(ByVal sender As Object, ByVal ev As OpcLabs.EasyOpc.AlarmsAndEvents.EasyAEMultipleNotificationsEventArgs)
 
        Try
 
            For i As Integer = 0 To ev.ArgsArray.Count - 1
                Dim e = ev.ArgsArray(i)
                If Not e.Event Is Nothing Then
                    If e.Event.QualifiedSourceName <> "System" Then
                        Label1.Text += 1
                    End If
                End If
            Next
 
        Catch ex As Exception
 
        End Try
 
    End Sub
 
End Class
 

Waiting for your reply

Regards
Last edit: 06 May 2014 11:40 by support. Reason: [code] usage

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

More
06 May 2014 09:21 #1924 by support
Replied by support on topic Memory Leak in Alarm&Event
The 5.12 license won't work with 5.30, and normally you would need to buy an upgrade.

But if you can show that the memory leak is present in 5.12 and not in 5.23 or 5.30, I will get you the upgraded license for free. If it is present in 5.23/5.30 as well, we will fix it there - and in such case you will get it for free as well. Do not expect version 5.12 be fixed.

But the whole thing assumes that there is a reproducible case.

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

More
06 May 2014 09:17 #1923 by Filliolej
Yes I see that there are new versions.
Can I use the 5.30 version with my licence for 5.12?

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

More
06 May 2014 09:05 #1922 by support
Replied by support on topic Memory Leak in Alarm&Event
Hello,
thank you for reporting this.

Do you have a sample code that shows this? Of course we can put it together here, but if we had yours, it would be more likely that we will be able to reproduce it.

Also, 5.12 is a fairly old version. Currently we make bug fixes to versions 5.23 and 5.30.

Best regards,

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

More
06 May 2014 08:56 #1920 by Filliolej
Hi,
we have detected a memory leak when we use the Alarm & Event Notification. In particular, our application is always on and, after a couple of days the memory used by itself become from 20MB to 500MB.
We made all check and it appens only when the we declare a new instance of
"OpcLabs.EasyOpc.AlarmsAndEvents.EasyAEClient" and add a handler
"AddHandler EasyAEClient.MultipleNotifications, AddressOf EasyAEClient_MultipleNotifications".
This appens also if no events arrive.

We are using a QuickOPC-Classic 5.12

Thanks

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

Moderators: support
Time to create page: 0.205 seconds

      

 Recommend this on Google