|
1 | | -#******************************************************************** |
| 1 | +#************************************************************************** |
2 | 2 | # Service Wrapper Properties |
3 | | -#******************************************************************** |
| 3 | +# |
| 4 | +# NOTE: It is important to know that the Ghidra Server consists of both |
| 5 | +# a controlling wrapper process and its wrapped child process. The |
| 6 | +# properties within this file may affect each differently - specifically |
| 7 | +# JVM options and how they are specified. The service wrapper relies on |
| 8 | +# wrapper.ntservice.additional.N properties within this file, while the |
| 9 | +# wrapped Ghidra Server child process relies on wrapper.java.additional.N |
| 10 | +# properties. Any changes to ntservice properties require reinstallation |
| 11 | +# of the service for them to have any affect. |
| 12 | +#************************************************************************** |
4 | 13 |
|
5 | 14 | # Initial Working Directory (i.e., absolute installation directory path) |
6 | 15 | wrapper.working.dir=${ghidra_home} |
@@ -107,11 +116,13 @@ wrapper.java.monitor.deadlock = true |
107 | 116 | # Main server application class |
108 | 117 | wrapper.java.app.mainclass=ghidra.server.remote.GhidraServer |
109 | 118 |
|
110 | | -# Initial Java Heap Size (in MB) |
| 119 | +# Initial Java Heap Size (in MB) - this has the same affect as JVM option -Xms |
| 120 | +# NOTE: See ntservice options at bottom of this file for installed service wrapper control |
111 | 121 | wrapper.java.initmemory=396 |
112 | 122 |
|
113 | | -# Maximum Java Heap Size (in MB) |
| 123 | +# Maximum Java Heap Size (in MB) - this has the same affect as JVM option -Xmx |
114 | 124 | # See svrREADME.txt file for advice (Server Memory Considerations) |
| 125 | +# NOTE: See ntservice options at bottom of this file for installed service wrapper control |
115 | 126 | wrapper.java.maxmemory=768 |
116 | 127 |
|
117 | 128 | # Specify the directory used to store repositories. This directory must be dedicated to this |
@@ -259,3 +270,16 @@ wrapper.ntservice.interactive=false |
259 | 270 | # Restart failed service after 1 minute delay |
260 | 271 | wrapper.ntservice.failure_actions.actions=RESTART |
261 | 272 | wrapper.ntservice.failure_actions.actions_delay=60000 |
| 273 | + |
| 274 | +# Specify JVM arguments to be used by installed service wrapper process. |
| 275 | + |
| 276 | +# Maximum Java Heap Size (in MB) for installed service wrapper. |
| 277 | +# NOTE: See also -Xmx option specification with ghidraSvr script which relates to other |
| 278 | +# uses of the YAJSW wrapper (e.g., console mode). |
| 279 | +wrapper.ntservice.additional.1=-Xmx1G |
| 280 | + |
| 281 | +# Uncomment to enable detailed memory tracking capability for the installed service wrapper process. |
| 282 | +# This will allow command such as the following to dump memory use information: |
| 283 | +# jcmd <PID> VM.native_memory summary |
| 284 | +# jcmd <PID> VM.native_memory detail |
| 285 | +#wrapper.ntservice.additional.2=-XX:NativeMemoryTracking=detail |
0 commit comments