-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to configure memory allocation for UTBot #2664
Comments
Where is the settings file located? |
Should be here: |
Hi, @tosha63
|
Good day, could you verify that the option takes effect? |
Could you substitute -Xms10g with -Xmx25g (not -Xms25g) now and check if the analysis eats up the memory? I just want to be sure that Soot indeed consumes all the memory and it is not constrained by other options. |
If you cannot provide your example, you can try to simplify the method under test. Looks like in your particular situation there is some specific logic under the hood. Another solution is to try UTMock assumes (docs/AssumptionsMechanism.md). Finally, you can try to use only the fuzzing engine. |
I tried to run generation even on simple methods in our project, but an error occurs. I used the fuzzing engine, everything is the same |
I meant that you could try to decompose the method under test. What did you do to enable fuzzing only analysis? |
In that case the issue is in Soot without doubts. It is difficult to do anything about it without a reproducer. |
Description
Sometimes during test generation UTBot fails with
OutOfMemoryError
exception (see comment ). Currently UTBot subprocess starts with default memory settings and user cannot change it to resolve such problem.Expected behavior
There is setting
.utbot\settings.properties
file to change memory allocation settings. For now it seems to be a rare problem, so I think we should not expose it to IDEA settings UI.Potential alternatives
Dynamically decide how much memory to use based on available memory. But that seems more error-prone solution and may not resolve such problem.
The text was updated successfully, but these errors were encountered: