On Nov 29, 2010, at 6:53 AM, Benson Margulies wrote:
> There's a recommendation on stack overflow to launch Eclipse with,
> amongst other things, the following options.
What's the URL?
> I'm having something of a
> bad day with my machine locking up (as in, the entire MacBook pro
> locks up),
Does it ever come out of this lock up? Is it just the CPU being at 100% all the time? Keep Activity Monitor running to see what happens. Shark traces could also help you.
> is it possible that some of this is a really bad idea?
Maybe. Let me explain what some of these options mean. Blindly adding options is not a good idea.
You are telling hotspot to compile a java method to native after it has been invoked 5 times. This will cause a lot more methods to be compiled to native adding to memory pressure. Also, a small number means HotSpot may not have enough profiling information to generate the most optimized native code.
So you're trying to hint to the garbage collector that it should try to limit application pause times to 10ms. That's awfully low. I am not sure what impact this would have. Try increasing this to 2000 or getting rid of this altogether to see what happens.
That's the default value so there's no point in passing this.
Set to true by default so again, no need to pass it.
You need this simply for using the G1 GC.
You're using the new G1 garbage collector. It's a new garbage collector written by Oracle. Use at your own risk. I am not sure how stable this is at the moment.
This is true by default so there's no point in adding it.
Fyi, there are some new flags available for help/diagnosis with VM options.
This will dump out all the default flag settings before HotSpot processes the passed in flags or does its own ergonomics tweaking.
This will print the value of the flags after HotSpot is done with processing.
Prints the flags passed on command line or set by GC ergonomics.
There's a lot of output here but might give you some insights into the flag values. Documentation on some of these flags can be found at
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden