How to read some property passed from command line like -Dthread.count
I saw it, but I\'m not sure how to read that one in java code
Use System.getProperty("thread.count");
Java has this documented:
http://download.oracle.com/javase/tutorial/essential/environment/sysprop.html
Basically, you're reading in the value of a System Properties. The link above gives you an example.
String value = System.getProperty("thread.count");