This message was deleted.
# community-support
s
This message was deleted.
๐Ÿงต 1
m
You need to set in in
gradle.properties
file like this
Copy code
org.gradle.jvmargs=-Xmx4g -Xms4g -XX:MaxMetaspaceSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
It is my configuration, you can use your values here
v
Please do not split topics across several threads. This makes following the conversation in the threads view very hard as the context of the other messages is missing. If you have additional information either edit the original message or post to its thread. Regarding the problem,
JAVA_OPTS
sets the values for the ultra-thin CLI program.
org.gradle.jvmargs
sets the values for the Gradle daemon. Both do not help at all when you get OOM during test execution as this happens in a separate test worker process. Configure the
maxMemory
property (or how it is called) on the respective
Test
task instead.
@Mykola Markov they said they did and it did not help. ๐Ÿ˜‰
m
Yeap, just found that I miss this part ๐Ÿ™‚
n
Thanks Vampire. Increased memory heap size to 4GB but still the same issue
d
I thought that you didn't want to set a max space size for meta as there's also the max/min free space ratio that can cause OOM errrors as well. Max defaults to 70 and min defaults to 30. If you set a max that causes either of these ratios to get misaligned, you can also cause an OOO error as well.
d
sounds like it could be a memory leak, maybe there should be some clean up logic which would deallocate some items, or multiple spring contexts being created for the integration test? im not sure i would immediately look to something on the gradle layer for this issue
n
Thanks David & Daniel.. This issue is only with Windows Machine and Mac users are able to run this tests successfully
๐Ÿ‘ 1
We have checked our memory snapshots and there is no issues with the logs
We are still looking for the solution why the issue happening in Windows machine? Any suggestions on this issue
v
Maybe use the Gradle profiler to get some insights?