that should be fine except that 640M for the metaspace is quite a lot
if you are using java8 then you only need to have this:
wrapper.java.additional.1=-Djava.awt.headless=true
wrapper.java.additional.2=-Duser.dir=“C:\Servoy\application_server”
wrapper.java.additional.3=-Djava.io.tmpdir=“C:\Servoy\application_server\server\work”
wrapper.java.additional.4=-XX:MetaspaceSize=200M
wrapper.java.additional.5=-XX:MaxMetaspaceSize=200M
wrapper.java.additional.6=-XX:MinMetaspaceFreeRatio=0
wrapper.java.additional.7=-XX:MaxMetaspaceFreeRatio=100
wrapper.java.additional.8=-XX:+UseG1GC
I would also suggest not using hard coded memory values, and instead using the percent values. Servoy should really change their default install to use this. In the modern cloud era, with memory easily scalable up and down, you don’t have to have to change your config each time you adjust memory.
# Initial Java Heap Size (in MB)
wrapper.java.initmemory=32
# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=1280
And instead use these. Adjust those based on your usage (if its a dedicated Servoy server, these may be ok, but if you run the DB server on the same box, you’ll want to adjust the max memory down)
# Initial Java Heap Size (in % of physical memory available on the system)
wrapper.java.initmemory.percent=10
# Maximum Java Heap Size (in % of physical memory available on the system)
wrapper.java.maxmemory.percent=70