-
Sub-task
-
Resolution: Withdrawn
-
P4
-
8u381
Previous JDK releases assumed process IDs to be unique and used them for file naming that stores run-time generated data in /tmp folder. This may cause conflicts when multiple Java apps run in the container share /tmp directory on the host machine and try to create files with the same name.
Starting from this JDK release, the JVMs become aware of possible conflicts over the files in /tmp folder and allow only one of the competing JVMs (the winner) to write to the file.
The general advice then would be to not share /tmp folder across containers running JVMs.
The `-XX:-UsePerfData` command-line option can be used to prevent JVM from writing performance data to `/tmp/hsperfdata_$USER/<pid>` file.
Starting from this JDK release, the JVMs become aware of possible conflicts over the files in /tmp folder and allow only one of the competing JVMs (the winner) to write to the file.
The general advice then would be to not share /tmp folder across containers running JVMs.
The `-XX:-UsePerfData` command-line option can be used to prevent JVM from writing performance data to `/tmp/hsperfdata_$USER/<pid>` file.