- Регистрация
- 02.01.2017
- Сообщения
- 526
- Благодарностей
- 112
- Баллы
- 43
We work with a lot of projects with "resstart instance" every few runs, but we need to optimize more and more. At this time we are looking on memory usage.
Command instance.MinimizeMemory() work but we need to have a litle more control.
Sometimes we loop a lot in certains web pages, and, to do login and all verifications (including hardware verifications with human fingerprints, etc), this process requires a human and in two specific portals, need a lot of time, so skip login give us at least 7 min in each restart instance.
Actualy we set to restart instance after 3000 loops, in this time, if no problems was found, the instance use 1.8GB RAM, but if problems are found like "waiting answer", that 3000 loops can use only 600MB.
After 1.4GB RAM the project run slowly.
We need to see, if current instance beat 1.4GB, restart instance, else, continue running.
Can I monitor how much memory a instance have in own use?
Command instance.MinimizeMemory() work but we need to have a litle more control.
Sometimes we loop a lot in certains web pages, and, to do login and all verifications (including hardware verifications with human fingerprints, etc), this process requires a human and in two specific portals, need a lot of time, so skip login give us at least 7 min in each restart instance.
Actualy we set to restart instance after 3000 loops, in this time, if no problems was found, the instance use 1.8GB RAM, but if problems are found like "waiting answer", that 3000 loops can use only 600MB.
After 1.4GB RAM the project run slowly.
We need to see, if current instance beat 1.4GB, restart instance, else, continue running.
Can I monitor how much memory a instance have in own use?