Skip to content

Commit

Permalink
Remove default head size from .bat, and added config option GH-5
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBerendsen committed Oct 10, 2020
1 parent 927b10c commit 1ae7f5d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion dvb.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
:: leave JVM_FLAGS empty to let java determine heap size (depends on java version and machine memory).
:: When you get an out of memory error (when parsing PES pids, or with large DSM-CC carrousels) you can use -Xmx to increase maximum heap size.
:: Use -Xms to set initial Java heap size. This can also help performance for large files. Suggestion try something like

java -classpath .;.\lib\jfreechart-1.5.0.jar;.\lib\opencsv-5.1.jar;.\lib\jlayer-1.0.1.4.jar;.\lib\commons-text-1.8.jar;.\lib\commons-logging-1.2.jar;.\lib\commons-lang3-3.9.jar;.\lib\commons-collections4-4.4.jar;.\lib\commons-collections-3.2.2.jar;.\lib\commons-beanutils-1.9.4.jar;.\DVBinspector.jar -Xmx1000m -Djava.util.logging.config.file=src/main/resources/logging.properties nl.digitalekabeltelevisie.main.DVBinspector
set JVM_FLAGS=

:: uncomment next line to set maximum head size to 1000 MByte
::set JVM_FLAGS=-Xmx1000m

:: uncomment next line to set initial and maximum head size to 4 GByte
::set JVM_FLAGS=-Xmx48g -Xms48g

java -classpath .;.\lib\jfreechart-1.5.0.jar;.\lib\opencsv-5.1.jar;.\lib\jlayer-1.0.1.4.jar;.\lib\commons-text-1.8.jar;.\lib\commons-logging-1.2.jar;.\lib\commons-lang3-3.9.jar;.\lib\commons-collections4-4.4.jar;.\lib\commons-collections-3.2.2.jar;.\lib\commons-beanutils-1.9.4.jar;.\DVBinspector.jar %JVM_FLAGS% -Djava.util.logging.config.file=src/main/resources/logging.properties nl.digitalekabeltelevisie.main.DVBinspector

0 comments on commit 1ae7f5d

Please sign in to comment.