52 |
conf.load( new FileReader(confFile) ); |
conf.load( new FileReader(confFile) ); |
53 |
|
|
54 |
max_workers = Integer.parseInt( conf.getSafeProperty("MAX_WORKERS") ); |
max_workers = Integer.parseInt( conf.getSafeProperty("MAX_WORKERS") ); |
55 |
|
if (max_workers <= 0) { |
56 |
|
logger.info("!!! AUTO-DETECT MAX_WORKERS !!!"); |
57 |
|
int cores = Runtime.getRuntime().availableProcessors(); |
58 |
|
|
59 |
|
max_workers = cores - 1; //Efterlad 1 core/cpu i reserve til systemet |
60 |
|
|
61 |
|
} |
62 |
logger.info("Starting with MAX_WORKERS:" + max_workers); |
logger.info("Starting with MAX_WORKERS:" + max_workers); |
63 |
|
|
64 |
|
|
65 |
verbose = Boolean.parseBoolean( conf.getSafeProperty("VERBOSE") ); |
verbose = Boolean.parseBoolean( conf.getSafeProperty("VERBOSE") ); |
66 |
logger.info("Starting with VERBOSE:" + verbose); |
logger.info("Starting with VERBOSE:" + verbose); |
67 |
|
|