Open Yuri05 opened 3 years ago
@msevestre @abdelr @georgeDaskalakis @TWendl FYI
One possibility would be to set the handle quotas to maximum with the OSP Suite Setup. However this would then always require computer restart. Also not sure if such an action would not be recognized as "suspicios" by e.g. virus scanners or other protection software...
This must be related to https://github.com/Open-Systems-Pharmacology/MoBi/issues/469
Maybe we could also somehow use "Resource-Exhaustion-Detector" on Windows? Recently we had a crash, and in the event logs we found messages like below (during PI MoBi consumed both physical and virtual memory to the very limit - almost 80GB). In Windows Error logs we found some messages like below, which were written shortly before the crash.
80BG....what are we doing wrong
what are we doing wrong
Maybe nothing... it was a multisimulation (9 simulations) multiple start values (80 start values) optimization on 15 or 16 cores. So 5 GB per core with 9 running simulations. MAybe we have some memory leaks indeed, but hard to say.
Sometimes it happens that PK-Sim (or MoBi) exceeds default windows limits. E.g. with a project (which I cannot attach in public): when opening a PI (which refers to 19 Simulations and 320 observed data sets), PK-Sim crashes without any error message (just disappears after some time). In the task manager you can see that the user object handles reaches 10000 (Windows default for the user objects quota). After that PK-Sim stops working. In windows error reporting you can find the info that handle cannot be created:
The solution for this is: increase max. number of Windows handles
After that it was possible to open the PI (which used almost 14000 User Handles then)
Two question I have: 1) (How) can we investigate and maybe reduce the number of used handles? 2) More important: how can we provide an information for the user that application is going to crash due to reaching the maximum of ... ? At the moment the user has absolutely no clue what happens (and I was only able to understand what happens because the project was available)