compiled method info

Krystal Mok rednaxelafx at gmail.com
Thu May 3 17:09:59 PDT 2012


On 2012-5-4, at 7:54, Xin Tong <xerox.time.tech at gmail.com> wrote:

> On Thu, May 3, 2012 at 6:07 PM, Krystal Mok <rednaxelafx at gmail.com> wrote:
>> In runtime/globals.hpp, you can find the flags LogVMOutput and LogFile that should meet your needs. Use them like this (if you're using a product build):
>> -XX:+UnlockDiagnosticVMOptions -XX:+LogVMOutput -XX:LogFile=<file_path>
>> 
>> The default path for the log is ./hotspot.log.
>> 
> 
> The debugging output gets printed to the file i specified. However the
> same thing is printed to the stdout. How can i get it just print to
> the file, not stdout.

Use -XX:-DisplayVMOutput anywhere after -XX:+UnlockDiagnosticVMOptions.

> also, i have been looking at this document and
> can not find the LogFile option in there.
> 
> http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html
> 
> Maybe this doc is out of date ? or the JVM version is old ?
>>>>> 
>>>>> 
>>>> 

That page is not an exhaustive list of all VM options. Besides, there are lots of flags in the VM not meant to be used by application users/developers, so I'm okay with that page.

-Kris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20120504/911002ef/attachment-0001.html 


More information about the hotspot-compiler-dev mailing list