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

Martin Doerr mdoerr at openjdk.org
Sat Jan 10 15:34:00 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).

I think this makes sense.

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

Marked as reviewed by mdoerr (Reviewer).

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


More information about the hotspot-runtime-dev mailing list