LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with memory usage and CPU usage

Hello,
 
i have a problem with the memory usage and cpu usage in my project!
My application must run for more than 24 hrs. The problem is that the longer it runs the bigger is the memory and cpu usage!
It starts with ~15% CPU usage and ~70 MBytes memory usage. After ~ 24hrs the CPU usage is ~60% and the memory usage is ~170 MBytes!
After  3 days the CPU usage is almost about 70% and the memory usage is about 360 MBytes!
 
What can I do to reduce this huge recource usage?
 
Thank you!
0 Kudos
Message 1 of 2
(2,660 Views)
Hi Pahe,
   I think the issue is memory usage, since CPU usage can increase due to greater memory requirements.

   Anyway, it's difficult to debug without seeing your code, can you post it (possibly for LV 7.1 compatibility)?  Or just post a JPEG of the piece of code that can give problems...

   I guess you're appending data to an array instead of replace data elements, but I can't be sure...

   Have a nice day!

graziano
0 Kudos
Message 2 of 2
(2,656 Views)