Scripting in PowerSwitch suffers from memory leaks
Posted: Mon Dec 30, 2013 8:01 am
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!
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!