18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

high RAM memory consumption

zawistolzawistol Members
edited November -1 in Sahi - Open Source
hi!
I am using sahi quite extensively, 10 scripts at time, 10 hrs sessions etc.
When I start sahi proxy, the java process starts with 10 MB consumption, after 2 hrs goes to 100 MB and peak at 300 MB
after 10 hrs.
It wouldnt be a problem alone, but I have 8 sessions at the same time.
So it takes alltogether 2,4 GB of memory, which is > 2GB available.
The java process size doesnt decrease, when tests stop, so it looks like memory leak.
The only thing I can do at that time is to restart sahi proxy, so I am doing it periodically, with a task scheduler at 8 am every day.
It would be a problem either, but sometimes it stops some sripts in the middle.
Another way would be sahi restart, before each test suite run, but it may also stop other scripts in the middle of execution.

TO SUMMARIZE:
Is there a way to clean java sahi memory periodically, so that it will not require sahi proxy restart ?
I am using IE 6.0 and I am not talking about IE memory consumption, which may be also high.
Moreover I am starting sahi following way java -Xms256m -Xmx512m -jar ../lib/sahi.jar,
otherwise I am getting Java Heap Out Of Memory after 10hrs of execution.
Sign In or Register to comment.