Java Process to use Multiple Processors

Hi All,

Here is the Issue..

we have an Application that when starts runs fine..but after 2-3 hours the performance of the process wil become very slow..

Initially when we look at the CPU utilization, its very less..but when the process starts running slow..we identified that it is using 100% of CPU of just 1 CPU..

The server is a Linux Box (SMP)..and we have 8 CPU's..which are not being used by the application..

The Application is a single threaded application..

I am trying to figure out, why is the Process not using other CPU's?

Will be there be any Server Configurations on the Linux Box to share the load between all the CPU's.

if we set the CPU Limit for the Process does it help?

Please share your thoughts.

Thanks

You answered yourself.

The process is single threaded. Single threaded applications do not usually switch CPUs. If you want to make use of your multiple CPU machine, rewrite the code to be multi threaded.

...or run multiple separate instances of the same program.