mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-30 00:15:53 +08:00
GP-0: Force Java to run in headless mode when Ghidra is launched from
analyzeHeadless script
This commit is contained in:
@@ -15,10 +15,13 @@ LAUNCH_MODE=fg
|
||||
# NOTE: This variable is ignored if not launching in a debugging mode.
|
||||
DEBUG_ADDRESS=127.0.0.1:13002
|
||||
|
||||
# Run Java in headless mode
|
||||
VMARG_LIST="-Djava.awt.headless=true "
|
||||
|
||||
# Limit the # of garbage collection and JIT compiler threads in case many headless
|
||||
# instances are run in parallel. By default, Java will assign one thread per core
|
||||
# which does not scale well on servers with many cores.
|
||||
VMARG_LIST="-XX:ParallelGCThreads=2 "
|
||||
VMARG_LIST+="-XX:ParallelGCThreads=2 "
|
||||
VMARG_LIST+="-XX:CICompilerCount=2 "
|
||||
|
||||
# Resolve symbolic link if present and get the directory this script lives in.
|
||||
|
||||
Reference in New Issue
Block a user