Skip to content

Commit

Permalink
Add options to py embedded server
Browse files Browse the repository at this point in the history
  • Loading branch information
devinrsmith committed Nov 4, 2022
1 parent b49866c commit 0b7d06d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions py/embedded-server/deephaven_server/start_jvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ def _jars_path():
def _compiler_directives():
return _jars_path() / 'dh-compiler-directives.txt'

def _default_vmoptions():
return _jars_path() / 'dh-default.vmoptions'

def _jars():
return _jars_path().glob('*.jar')

Expand All @@ -42,6 +45,7 @@ def _jars():
f"-XX:CompilerDirectivesFile={_compiler_directives()}",
# (deephaven-core#2500): Remove DisableIntrinsic for currentThread
'-XX:DisableIntrinsic=_currentThread',
f"-XX:VMOptionsFile={_default_vmoptions()}",
]

# Provide a util func to start the JVM, will use its own defaults if none are offered
Expand Down
1 change: 1 addition & 0 deletions py/embedded-server/java-runtime/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def serverClasspath = tasks.register('serverClasspath', Sync) {
from configurations.runtimeClasspath
from jar
from tasks.named('createCompilerDirectives')
from tasks.named('createVmOptions')
into layout.buildDirectory.dir('classpath')
}

Expand Down

0 comments on commit 0b7d06d

Please sign in to comment.