Invalid initial heap size: -Xms512m -Xmx512m When running JUnit test in 13.1 EAP
Hi all,
Since my upgrade to 13.1 EAP build 134.1007 , I get the following error when running a Junit test
Could not create the Java virtual machine.
Invalid initial heap size: -Xms512m -Xmx512m
I don't get this error when running the same test in the13.0 CE
I'm using the idea64
Strange thing is all the tests in this project have this issue.
Other projects run fine, so far I've tested
Any hints on whats going wrong ?
Please sign in to leave a comment.
Hello.
> Strange thing is all the tests in this project have this issue. Other projects run fine, so far I've tested.
Can it be that other projects run JUnit with different JRE? What is the project JDK in problematic project, project JDK in other projects, and has you specified alternative JRE for running JUnit?
Regards,
Alexander.
Hi Alexander,
Thanks for the reply.
Both projects use the same JRE, project SDK's are the same, no alternative JRE have been specified.
This can be found in the console (classpath jars have been removed for readablity):
Problematic project :
Normal project :
I've been going through several log files and also several config files but I have not been able to find where the "-Xms512m -Xmx512m" can be found.
Cleaning caches and reimporting the project do not do the trick.
Any hints are still welcome ;-)
It is probably this: http://youtrack.jetbrains.com/issue/IDEA-120823
No, it's http://youtrack.jetbrains.com/issue/IDEA-120642
Looks like it.
When I remove those params from the pom, the tests run again
Fixed
See http://youtrack.jetbrains.com/issue/IDEA-120823#comment=27-677774