RFR: 8270801: Print VM arguments with java -Xlog:arguments
Thomas Stuefe
stuefe at openjdk.java.net
Sat Jul 17 04:10:53 UTC 2021
On Fri, 16 Jul 2021 20:16:06 GMT, Ioi Lam <iklam 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.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4801
More information about the hotspot-runtime-dev
mailing list