RFR: 8308751: Create new switch to print error reporting output to both hs_err_pid file and stdout/stderr [v3]
Masanori Yano
myano at openjdk.org
Thu Jun 22 01:07:05 UTC 2023
On Tue, 6 Jun 2023 17:57:08 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
>> Masanori Yano has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8308751: Create new switch to print error reporting output to both hs_err_pid file and stdout/stderr
>
>> /csr needed
>>
>> I have my doubts about the usefulness of this.
>
> I agree. This is nothing a simple `tee` couldn't solve.
>
> We've long departed from the Unix line of "do one thing and do it well", but there is a limit to how much functionality we should heap onto the JVM.
@tstuefe As you say, there are situations where we can solve with the tee command, but only if java is invoked as a shell command. In the case of an application server, it is difficult to redirect to the tee command because java is started as a subprocess of the administration service.
Another reason is that the tee command does not exist in every environment where java runs. In a windows environment, we cannot use features like the tee command without adding features like wsl or cygwin.
I'm not proposing complex features outside the Unix philosophy, I'm just suggesting a way to enable options that are currently mutually exclusive.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14114#issuecomment-1601876008
More information about the hotspot-dev
mailing list