'Redirect jvm warnings to stderr rather than stdout
My application uses stdout for IPC, however it is printing the following jvm warning to stdout rather than to stderr.
[0.002s][warning][os,container] Duplicate cpuset controllers detected. Picking /sys/fs/cgroup/cpuset, skipping /tmp/nix-chroot.NLllBL/sys/fs/cgroup/cpuset.
I am running it currently via java -jar <jar-file> with OpenJDK 17.
What option is required to either quiet this or print any errors to stderr.
Additionally if anyone knows, what the rationale behind printing to stdout rather than stderr here is, I would be very interested to know, because my understanding of the convention is that stdout is for the programs intended output, while stderr is for operator information such as warnings or errors.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
