RFR: 8151526: Print -Xlog configuration in the hs_err_pid file
Max Ockner
max.ockner at oracle.com
Fri Apr 8 18:00:20 UTC 2016
If there are no further objections, I would like to commit this.
Thanks,
Max
On 4/7/2016 4:56 PM, Max Ockner wrote:
> OK I tested with jcmd and I needed to add one line above the log
> configuration to make both sets of code match.
> webrev: http://cr.openjdk.java.net/~mockner/8151526.03/
>
> Thanks,
> Max
>
> On 4/5/2016 3:45 PM, Coleen Phillimore wrote:
>>
>> This change looks good. You found the duplicated code for jcmd.
>>
>> To test this before you check this in to verify, start a JVM running
>> some java program in an infinite loop, and do jcmd <pid> VM.info
>>
>> Thanks,
>> Coleen
>>
>> On 3/29/16 3:00 PM, Max Ockner wrote:
>>> Hello,
>>> Please review another Unified Logging change. They are almost done,
>>> and we are serious this time.
>>>
>>> bug: https://bugs.openjdk.java.net/browse/JDK-8151526
>>> webrev: http://cr.openjdk.java.net/~mockner/8151526.01/
>>>
>>> The logging configuration is now printed in each hs_err file. The
>>> output is the same as you would see from -Xlog:logging=trace and it
>>> is obtained from LogConfiguration::describe().
>>>
>>> Below is a sample of the hs_err contents. The Logging info is
>>> printed after VM Arguments and Whitebox, and before Environment
>>> Variables.
>>>
>>> VM Arguments:
>>> java_command: Kaboom
>>> java_class_path (initial): .
>>> Launcher Type: SUN_STANDARD
>>>
>>> Logging:
>>> Available log levels: off, trace, debug, info, warning, error
>>> Available log decorators: time (t), uptime (u), timemillis (tm),
>>> uptimemillis (um), timenanos (tn), uptimenanos (un), hostname (hn),
>>> pid (p), tid (ti), level (l), tags (tg)
>>> Available log tags: alloc, age, barrier, biasedlocking, bot, census,
>>> classhisto, classresolve, classinit, classload, classloaderdata,
>>> classunload, classpath, compaction, cpu, cset, defaultmethods, ergo,
>>> exceptions, exit, freelist, gc, heap, humongous, ihop, itables, jni,
>>> liveness, logging, marking, metaspace, modules, monitorinflation,
>>> os, phases, plab, promotion, preorder, protectiondomain, ref,
>>> refine, region, remset, safepoint, safepointcleanup, scavenge,
>>> scrub, stacktrace, start, startuptime, state, stats, stringdedup,
>>> stringtable, survivor, sweep, task, thread, tlab, time,
>>> verboseverification, verify, vmoperation, vtables
>>> Log output configuration:
>>> #0: stdout all=off uptime,level,tags,
>>> #1: stderr all=warning uptime,level,tags,
>>>
>>> Environment Variables:
>>> JAVA_HOME=/scratch/mockner/UL/8151526/build/linux-x86_64-normal-server-fastdebug/images/jdk
>>>
>>> PATH=/home/mockner/tools/webrev:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/home/mockner/bin:/home/mockner/linux/bin
>>>
>>> SHELL=/bin/bash
>>> OS=Linux
>>>
>>
>
More information about the hotspot-runtime-dev
mailing list