Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8286030 Avoid JVM crash when containers share the same /tmp dir
  3. JDK-8307467

Release Note: Avoid JVM crash when containers share the same /tmp dir

XMLWordPrintable

      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.

            iklam Ioi Lam
            ibereziuk Ivan Bereziuk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: