File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • 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
  • 0
  • 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: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic