LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV8.5 shared variable memory leaks

hi,

 

It seems that my application have a memory leaks or something like that since we are using shared Variable.

 

My shared variable (unbuffered) is a cluster contening :

  - a string

  - a array of cluster (composed by 5 numeric double)

 

In the programme, one global variable is binding to my shared variable.

About every 5 minutes, central server write in this variable and the 5 clients wait for the global variable to be updated.

 

2 problems occurs :

 - after 72heures, some clients did not receive updates of the shared variable. (but there are stil the green flag in the top rigth corner)

 - the programs memory growths of about 25Mo in 40h.

 

(I allready verify, all references to VI or Notifications are closed)

 

Thus, we have 2 questions :

 - is there someone have an idea of what can happen ?

 - is a PC that have a problem to bind correctly can put our system down ? (a PC seems to have a corrupted RAM memory)

 

I joined a graph of memory usage of our program. Paris and Pologne correspond to the same program, executing the same scenarii. In Paris, there are no problem of binding but in polska, there are...

Polska have a less efficient LAN (multiple switch between central and servers).  In paris, clients and central are on the same switch.

 

thanks for your answers

Aurelien

0 Kudos
Message 1 of 2
(2,795 Views)

Hello.

 

I don't know exactly if the corrupted RAM you have is the responsible of the memory problems you have, but testing your application on another computer with a healthy RAM could be a good test to run.

Another thing I can suggest you, if you write very large strings in your shared variables, is to use a variant type for your shared variables instead of a string variable.

 

Here's a tutorial from NI web site that may give you more precisions about using shared variables.

 

This other link deals with with how you can know the memory allocations that your running VI needs.

 

Best regards

 

Mehdi A

NIF AE

Message 2 of 2
(2,742 Views)