RFR: JDK-8325862: set -XX:+ErrorFileToStderr when executing java in containers for some container related jtreg tests

Severin Gehwolf sgehwolf at openjdk.org
Fri Feb 16 09:26:56 UTC 2024


On Thu, 15 Feb 2024 15:07:38 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> To get easier access to the hserr file content, -XX:+ErrorFileToStderr should be set when executing test parts in a container.
> Examples are the docker/container tests starting (docker) containers with java processes inside the container and not on the host.

This seems OK.

Note that container tests are pretty verbose when it comes to test output. Usually stderr/stdout get capped by jtreg and sent to a file instead. IIUC the use case would be to get hs_err.log files to stderr in case of crashes. However, if the stderr value gets truncated, then you'd be back at square one.

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

PR Review: https://git.openjdk.org/jdk/pull/17874#pullrequestreview-1884657688


More information about the hotspot-runtime-dev mailing list