IvanGB wrote:
the PresumableFreeMemory and the TotalMemory showing numbers way bellow which the machine was reporting as available through TaskManager.
Hello,
that is the way how Java machine works, when starting Java checks how much free physical memory(not simulated on hard drive) is available at time of start, then it divides it by 4, also 25% and tells to the system to reserve this amount of memory, but reseving does not mean taking it completely, but just means Windows should try its best to deliver it when requested from physical memory.
Therefore the amount you see is just smaller part of approximatelly 25%. However when reaching this limit Java will fail too.
There is easy way to tell to Java to reserve 50% of memory by default instead 25% with -XX:+AggressiveHeap
If you are interested, let's assume GUI calls the batch file **Tsplus_program_folder***\Clients\webserver\runwebserver.bat
it has following content
------------------------------
*****HTML5service.exe" -Djdk.tls.ephemeralDHKeySize=matched *****the_rest****
---------------------------
now change it as on following example
*****HTML5service.exe" -XX:+AggressiveHeap -Djdk.tls.ephemeralDHKeySize=matched ********etc.**********
after saving open properties of runwebserver.bat file and set by Attributes > Read-Only else this file will be overwritten each time you restart server.
Now restart html5 server in GUI to make this change effective, that will double the amount of available memory to Java machine.
If you use -XX:+UseG1GC then you must disable -XX:-UseParallelGC, so that means, if -XX:+UseG1GC is present in your batch starting line then it will conflict since AggressiveHeap activates UseParallelGC which must be now disabled
*****HTML5service.exe" -XX:+AggressiveHeap -XX:-UseParallelGC -Djdk.tls.ephemeralDHKeySize=matched ***etc.***-XX:+UseG1GC***etc.*****
The problem by you before with Java32 bit on Windows64bit, Java sees there usually only ~1 Gb of free memory and divides it by four = ~250mb total which is to small for 25 parallely running clients.