Solved

JVM arguments for intellij project

Posted on 2013-06-17
5
997 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
  • 2
  • 2
5 Comments
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 166 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
mergeTwo  challenge 13 70
countHi2 challenge 7 43
backtracking recursion  code 19 39
Java Timer (static) 9 5
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now