Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1204
  • Last Modified:

JVM arguments for intellij project

Hi,

In my JVM args when running a project in intellij, all jvm args are recognized (set heap and so fourth), but when i start adding XX args such as
-XX:+UseCompressedOops
-XX:-PrintGCDetails

it gives me errors:
Could not create the Java virtual machine.
Unrecognized VM option '+UseCompressedOops'

Any ideas?

Thanks,
Alex
0
Squadless
Asked:
Squadless
  • 2
  • 2
3 Solutions
 
CEHJCommented:
You need to check which XX arguments are available for the particular vm the IDE is using
0
 
ValeriCommented:
probably your JVM is 32 bit or your heap size specified by -Xmx parameter is more than 32GB. each one of this reasons will cause "Could not create the Java virtual machine".
0
 
SquadlessAuthor Commented:
I've set every parameter to no more then 1GB.  I believe the reason its failing is because its not recognizing the VM option via -XX parameter
0
 
CEHJCommented:
Unrecognized VM option '+UseCompressedOops'
is the reason it's failing. See my comment above and print the XX options for the vm you're using
0
 
ValeriCommented:
are you using SUN java?
what is the output of this?
System.out.println("JVM type: " + System.getProperty("sun.arch.data.model"));
System.out.println("JVM type: " + System.getProperty("os.arch"));

and this: java -version from dos prompt
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now