RFR: 8374875: Improve perfMemory warning about 'Insufficient space for shared memory file'

Lutz Schmidt lucy at openjdk.org
Fri Jan 9 18:37:39 UTC 2026


On Fri, 9 Jan 2026 12:29:14 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> We have a perfMemory warning about 'Insufficient space for shared memory file'; this currently prints misleading info about 'java.io.tmpdir' and misses to print the directory, so we get no clue where exactly insufficient space is.
> 
> 
> Current Example output :
> OpenJDK 64-Bit Server VM warning: Insufficient space for shared memory file:
>    31671
> Try using the -Djava.io.tmpdir= option to select an alternate temp location.
> 
> 
> Just printing '31671' does not really help me much.
> And the suggestion to set  `java.io.tmpdir ` seems to be wrong; it WAS set in the java - execution the output is from, but is not used in the perfMemory coding  (probably intentionally).

This change looks helpful to me.

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

Marked as reviewed by lucy (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/29138#pullrequestreview-3645125033


More information about the hotspot-runtime-dev mailing list