Operating System - HP-UX
1833777 Members
2032 Online
110063 Solutions
New Discussion

Can JVM take advantage of multiple processers?

 
SOLVED
Go to solution
Sean OB_1
Honored Contributor

Can JVM take advantage of multiple processers?

Hello,

We are running 11.00 and have:

Java-Runtime1-1 C.01.18.01 Virtual Machine for Java

Can this take advantage of multiple processers in an L2000?

TIA

Sean
4 REPLIES 4
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Can JVM take advantage of multiple processers?

Hi Sean,

Kernel takes care of developing the context and cpu switching for each process|thread. If the process is multi-threaded, yes it will be automatically taken care. JVM is not a single threaded application so it should be alright. Are you seeing one processor being heavily utilized while the others are not over an extended period?

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Martin Johnson
Honored Contributor

Re: Can JVM take advantage of multiple processers?

Yes, if the app is multithreaded. You can check in glance. If the process CPU is over 100% then it is multithreaded and using more than one processor.

HTH
Marty
Sean OB_1
Honored Contributor

Re: Can JVM take advantage of multiple processers?

I'm not seeing any particular CPU over utilized, and I wouldn't expect to anyway. Even with a single-threaded app the schedular will dole out cpu time to the next available processor.

I'm trying to nail down why an app is so slow on one of our machines.

I believe it's the unidata database which is single-threaded. I just wanted to verify that JVM was multithreaded, which means the database is the only part that isn't.

Thanks,

Sean
Anil C. Sedha
Trusted Contributor

Re: Can JVM take advantage of multiple processers?

Hi Sean,

You may use Perfview to drill down on the usage of the CPU and processes which are causing this.

That would give you a better idea of things happening in there.

Regards,
Anil
If you need to learn, now is the best opportunity