Need to reduce Java application's CPU utilization
I wrote a Java application for creating search indexes. When run, this application utilizes almost 100% of CPU until it ends. This application performs lots of IO operations. I need to reduce its CPU usage to about 50-60% sacrificing the speed (i.e., it is fine if it takes an extra 10-15 minutes to finish).
So far, I tried changing different Java HotSpot VM options but still couldn't reduce the CPU usage.
"ps -p PID -o pid,nlwp" shows me that the applications NLWP is 13.
Could any one offer advice regarding reducing CPU usage?[/b]
Thanks for any help,