the script pcgen.sh, used for running pcgen in Unix-based system has a small problem in Linux:
To check available memory in Linux, it uses /proc/meminfo. More precisely, it extract the "MemFree" value, which is the amount of non allocated memory. Linux uses available memory as cache to speed-up IO, keeping only a small amount of unused memory. Cached memory is available for programs, but is not included in "Free".
Therefore, pcgen.sh should grep "MemAvailable:" instead of "MemFree:" (Line 10).
Thanks for all (Switching to JavaFX is at the same time great and hard work!)
Farawen is totally correct about this. I had a similar issue several years back with my memory calculation scripts also had to switch to this memory value.
the script
pcgen.sh
, used for running pcgen in Unix-based system has a small problem in Linux:To check available memory in Linux, it uses
/proc/meminfo
. More precisely, it extract the "MemFree" value, which is the amount of non allocated memory. Linux uses available memory as cache to speed-up IO, keeping only a small amount of unused memory. Cached memory is available for programs, but is not included in "Free".Therefore,
pcgen.sh
should grep "MemAvailable:" instead of "MemFree:" (Line 10).Thanks for all (Switching to JavaFX is at the same time great and hard work!)