• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there a way to check how the mac is assigning/utilizing the processors?

 
Adrian Burlington
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a mac pro 8-core, Two 2.26GHz.

My application is a producer-consumer problem; where the producer is a thread fetching heavy data from the db and the consumer is another thread calculating the data from a queue placed by the producer.

Question: How can I ensure (or at least check/view) that the JVM is utilizing the processorS and not only one?
Also, is it the JVM 'problem' to assign the thread the processor 1 or 2 or can I (the developer) intervene.

Thank you!
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No sure if this has it. But you can just try jconsole which comes with all JDKs now. Just open a terminal window and type

jconsole

Look through the tabs and list on the left to see if you can see the CPUs used.

Good Luck

Mark
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic