Page 1 of 1

Scripting in PowerSwitch suffers from memory leaks

Posted: Mon Dec 30, 2013 8:01 am
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!

Scripting in PowerSwitch suffers from memory leaks

Posted: Tue Jan 07, 2014 9:43 am
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