JavaFX app memory consumption
Davide Perini
perini.davide at dpsoftware.org
Mon Aug 28 09:16:44 UTC 2023
Hi all,
I have a small JavaFX app that consumes up to 250MB of OS memory,
this memory consumption is monitored at the OS level (Windows 11), the
app uses the default G1 garbage collector.
If I use the ZGC the same apps consume 190MB in the same condition.
The very strange thing is that the memory consumption varies if I start
it manually or if I auto start it with Windows.
If I start the app manually it sucks 190MB as said before,
if the app is in the autostart path and it starts with windows
automatically, it sucks only 100MB.
Auto start is done by simply adding the app path in the windows registry
here:
Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
How this is possible?
Any idea on this?
Why autostart makes the app consume less memory?
Thanks
Davide
More information about the openjfx-discuss
mailing list