Scripting in PowerSwitch suffers from memory leaks

Post Reply
marbledaemon
Newbie
Posts: 7
Joined: Mon Sep 24, 2012 12:28 pm

Scripting in PowerSwitch suffers from memory leaks

Post by marbledaemon »

Hello guys,



Have you guys ever noticed that the ScriptExecutor suffers from memory leaks if we run a same script periodically after some time?



It can be reproduced by writing a script which contains a long function and set it run by an interval of 10 secs. We can observe that the memory reserved by the ScriptExecutor that runs the above script will get bigger and bigger quickly. After about 1 day or more, The system of 8GB memory would run out of memory. Things might get worse if the script involves in parsing large XML files.



The strangest thing is that we get memory leak even if the script only defines long functions without even running them.



Please tell me if you guys have the same problem.



Regards!
freddyp
Advanced member
Posts: 413
Joined: Thu Feb 09, 2012 3:53 pm

Scripting in PowerSwitch suffers from memory leaks

Post by freddyp »

I have never seen this problem myself, so there is nothing I can point to straight away. I would advise you to send the script and the smallest possible flow in which it can be used to support@enfocus.com so we can see if this problem is reproducible. Please also specify the Switch and OS versions that you are using.



Freddy
Post Reply