-
-
Notifications
You must be signed in to change notification settings - Fork 1
OutOfMemoryError causes jqwik to print "empty" statistics #5
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
Comments
An OutOfMemoryError should get special treatment because one cannot recover from it. So you are right, nothing should be printed. Do you know if the OOME is thrown during setup (e.g. while creating a spring context) or during execution of a property? As for the number of tries: The value in |
I am no expert in spring internals, so here are my assumptions with data I have used. I think that OOM happened during spring application set-up/startup. On normal try run I see log like this:
In OOM case I see last line with normal log message this: PS: I think that in some cases (if not all three), there can be handled OOME correctly and "finish" work just before exit of JVM. I think that pre-allocated structures before |
Have you experimented with a lower number of tries like that: |
Two things:
|
I could reproduce the behaviour with throwing OOME in property method. Has been fixed in jqwik "1.3.0-SNAPSHOT". |
I have run spring integration test with tries set to 100 (in jqwik.propterie), but that was ignored (I think, that running from IDE does cause this. I will investigate). tries was effectively set to 1000 and out of memory has happened (after more than hour). I am a bit curious, why statistics get printed empty. I would expect not to print anything, or print partial data.
Can be something done about this behavior? Other thing is why does OOM happened. I would like to see at least number of successful tries, which can I use to set for particular property test.
The text was updated successfully, but these errors were encountered: