i run my program using maven with the following command:
mvn exec:java -Dexec.mainClass="some.path.to.my.class"
on a Linux multi-cpu server. when i check the CPU usage, i see that java eats only 1 CPU core.
i read somewhere that setting the -server
parameter could help.
what parameters do i have to set and how can i pass them using the mvn exec:java
command?