This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Java in General and the fly likes Error while starting JVM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Error while starting JVM" Watch "Error while starting JVM" New topic
Author

Error while starting JVM

SivaramaKrishnan Nageswaran
Greenhorn

Joined: Aug 05, 2005
Posts: 7
Hi,

When I try to start a java application with the following JVM options:

-Xms64m
-Xmx1024m
-Xrunhprof:cpu=times
-XX:+UseParNewGC
-XX:+CMSParallelRemarkEnabled
-XX arallelGCThreads=2
-XX:NewRatio=8
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=80
-Xloggc:siva.log
-XX:+PrintGCDetails
-XX:-UseMPSS

the JVM doesn't get started. And when I removed either "-Xrunhprof:cpu=times" or "-XX:+UseConcMarkSweepGC" options, the JVM started without any error.

Is there any dependency between the above mentioned 2 options and I also found that an error message as mentioned below is displayed when both the options are provided:

****************************************************************************
Conflicting collector combinations in option list; please refer to the release notes for the combinations allowed
Unable to create JVM.
****************************************************************************

It would be of great help, if anybody could help me out in this regard.

Note:
1. I wanted the option "-XX:+UseConcMarkSweepGC" to be present while starting the JVM and I would also like to analyse the CPU usage.
2. I also found that after removing "-XX:+UseConcMarkSweepGC" option, the java application became very slower.

Thanks
- Siva
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

Have you checked the release notes for an explanation of the conflict? The message you're receiving seems quite clear: you can't run all the options you wanted at one time.

My guess is the options you want create a scoping conflict with the JVM observability features you've chosen.


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error while starting JVM