RFR: 8270801: Print VM arguments with java -Xlog:arguments

Ioi Lam iklam at openjdk.java.net
Sat Jul 17 04:55:51 UTC 2021


On Sat, 17 Jul 2021 04:08:03 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> > > Side note, I wish we had a similar option to print the pid (and not much else). In our proprietary port, we have a -XshowPid, which I use surprisingly often, even in scripts.
> > 
> > 
> > We have a few choices:
> > 
> > * `-Xlog:pid` : but this seems too limited to introduce a new log tag
> > * `-Xlog:identifyprocess`: print all relevant info that helps identifying the process. This would include both the arguments, the pid, and perhaps some other info as well (owner id, etc??).
> > 
> > If the second makes sense, we should think of a good tag name :-) I will hold the integration of the current PR for now.
> 
> After thinking about this, I think either a new "-Xlog:process", or we could just log it under "-Xlog:os". The latter could maybe benefit from some cleaning up to reduce the noise at info level.

Adding to `-Xlog:os` seems the right place. I tried `-Xlog:os` with Eclipse and it wasn't too verbose -- only about 30 lines are printed.

I filed https://bugs.openjdk.java.net/browse/JDK-8270865

-------------

PR: https://git.openjdk.java.net/jdk/pull/4801


More information about the hotspot-runtime-dev mailing list