While migrating (my tool) to the Stretch job grid I ran into this problem:
I cannot start my Java process on the grid. I have tried every possible combination of arguments I can think of when referring to the (apparently) outdated documentation.
Error occurred during initialization of VM
Could not allocate metaspace: 1073741824 bytes
Error occurred during initialization of VM
Could not reserve enough space for 512000KB object heap
tools.usrd-tools@tools-sgebastion-07:~$ /usr/bin/jsub -once -mem 1024m java -jar my-bot/USRDbot.jar
I have set the Java program to directly run on login, because I have already spent hours on this and cannot throw more hours away trying to figure this out. Next time, please make this obvious in the documentation.