Solved

JVM arguments for intellij project

Posted on 2013-06-17
5
1,129 Views
Last Modified: 2013-10-10
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
Comment
Question by:Squadless
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 166 total points
ID: 39254822
You need to check which XX arguments are available for the particular vm the IDE is using
0
 
LVL 16

Assisted Solution

by:Valeri
Valeri earned 334 total points
ID: 39255888
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
 
LVL 1

Author Comment

by:Squadless
ID: 39256210
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
 
LVL 86

Expert Comment

by:CEHJ
ID: 39256413
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
 
LVL 16

Accepted Solution

by:
Valeri earned 334 total points
ID: 39256636
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question