# Here you can enter Java Virtual Machine parameters.

# Memory configuration
-Xms128M
-Xmx8G
-XX:MinHeapFreeRatio=10
-XX:MaxHeapFreeRatio=25
# JavaFX GPU texture cache, at most this much. Past an eighth of it (-Dprism.targetvram), JavaFX
# frees textures that went unused, and grows the cache only when that frees too little.
# JavaFX's own default is 512M.
-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

# Java refuses TLS 1.0 and TLS 1.1. If the database speaks only these, edit conf/security/java.security
# in the Java folder shown in Help -> About and delete TLSv1 and TLSv1.1 from the jdk.tls.disabledAlgorithms
# line. A protocol listed there stays disabled whatever -Djdk.tls.client.protocols says.

# Which certificates DbSchema trusts is configured in Edit -> Settings -> Network -> SSL Certificates.
# DbSchema sets the javax.net.ssl.trustStore properties from that page when it starts, so setting them here has no effect.

# JavaFX loads its own native libraries, which Java 24 and later count as restricted calls. Without
# this, every start warns, and a future release will block the call outright. Of the JavaFX modules
# the JRE bundles, these three are the ones carrying native libraries.
--enable-native-access=javafx.graphics,javafx.media,javafx.web,ALL-UNNAMED

# 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
