# Here you can enter Java Virtual Machine parameters.

# Memory configuration
-Xms128M
-Xmx8G
-XX:MinHeapFreeRatio=10
-XX:MaxHeapFreeRatio=25
# JavaFX GPU texture cache. 2 GB is the installer default; 1 GB is generous
# for diagram rendering while still leaving headroom for 4K / multi-monitor.
-Dprism.maxvram=8G

# Uncomment next lines to DISABLE GRAPHIC ACCELERATION to solve slow painting, flickering tooltips or use Windows Remote Desktop Protocol.
#-Dprism.order=sw
#-Dprism.vsync=false
#-Dprism.verbose=true
#-Djavafx.verbose=true

# Uncomment next line for font scaling on Windows (first) or Linux/Mac (second). For multiple monitors '200%:150%...'
#-Dglass.win.uiScale=200%
#-Dglass.gtk.uiScale=200%

# If you get problems with DbSchema on linux, uncomment this:
#-Djdk.gtk.version=2

# If you get issues with TLS1, enable it using:
#-Djdk.tls.client.protocols="TLSv1.0,TLSv1.1,TLSv1.2"

# Uncommenting this to load certificates from Windows' certificate management system. On Linux or MacOS you can set this to point to the crt file. Sample: /etc/ssl/certs/ca-certificates.crt
#-Djavax.net.ssl.trustStoreType=Windows-ROOT

# Set a custom keystore by uncommenting and editing this:
#-Djavax.net.ssl.trustStore=path_to_custom_keystore.jks
#-Djavax.net.ssl.trustStorePassword=your_keystore_password
#-Djavax.net.ssl.trustStoreType=JKS

# Used by Databricks JDBC driver which got exception 'Could not initialize class com.databricks.internal.apache.arrow.memory.RootAllocator'
--add-opens=java.base/java.nio=ALL-UNNAMED
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
# Also by Floating License Server in DbSchema CLI
--add-opens=jdk.httpserver/sun.net.httpserver=ALL-UNNAMED
