I\'m playing around with the JVM (Oracle 1.7 64 bit) on a Linux box (AMD 6 Core, 16 GB RAM) to see how the number of threads in an application affects performance. I\'m hoping
Here some of the points/ways, I would have followed:
Take a look at the data used in context switches. Instead of boolean or string try to use some big List or Map.
Instead of trying to created fixed pool right at starting time try with cached pool.
Instead of letting threads dying out after doing some small work, let them be alive and come back to do small chunks of work again and again.
Try to keep processing time of thread higher.