Skip to content

Commit 002f425

Browse files
committed
Note about -XX:+UseSerialGC.
1 parent 1775c02 commit 002f425

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,19 @@ The program can be compiled with:
2424

2525
Then to run:
2626

27-
java -Xmx1G Antigen
27+
java -XX:+UseSerialGC -Xmx1G Antigen
2828

2929
A transportable jar file can be created with:
3030

3131
jar cfe antigen.jar Antigen *.class cern/ org/
3232

3333
Then to run from this jar:
3434

35-
java -jar antigen.jar -Xmx1G Antigen
35+
java -jar antigen.jar -XX:+UseSerialGC -Xmx1G Antigen
3636

37-
This requires Java 1.7 to compile and run.
37+
This requires Java 1.7 to compile and run. The `-Xmx1G` option is used to increase memory allocation.
38+
This may need to be increased further with larger host population sizes. The `-XX:+UseSerialGC` option
39+
swaps the default Java garbage collector to something that works much more efficiently for Antigen.
3840

3941
## Parameters
4042

@@ -70,4 +72,4 @@ Memory can be easily profiled by calling `jmap -histo <PID>`.
7072

7173
-------------------------------------------
7274

73-
Copyright Trevor Bedford 2010-2014. Distributed under the GPL v3.
75+
Copyright Trevor Bedford 2010-2014. Distributed under the GPL v3.

0 commit comments

Comments
 (0)