• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Does anybody else experience slower Java performance on Mac OSX?

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I wrote a game in Java that runs okay to moderately choppy on my Mac, yet flies on a Windows machine. Seems like the Mac JVM doesn't preform as well as others (Or something along those lines, I may not be using the right terminology)? In case you're wondering, I just upgraded my Mac's Java to 8 with no noticeable difference.

Edward.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are the systems equivalent with respect to CPU and RAM? Can you check which is the resource constraint on the Mac?
 
Edward Nunez
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jeane, Mac is more powerful in all hardware respects. I'm not sure about these resource constraints though. Can you tell me where I can check that out?
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Edward Nunez wrote:Jeane, Mac is more powerful in all hardware respects.


Sounds like an advertising slogan to me.

And don't forget that, by their nature, bytecode and (to a lesser extent) the JVM are generic, and so may not be able to use all the bells and whistles available to a targeted Mac executable.

I'm not sure about these resource constraints though. Can you tell me where I can check that out?


Well, most OS's have some sort of system monitor where you can check out things like available memory, CPU and disk usage in real time. Not sure what it's called on the Mac, but if you fire it up and then run your game you might be able to see what's going on and whether there are any nasty spikes in any of them.

For more sophisticated stuff you may need to get a proper profiler. Not sure which is best for the Mac, but I'm sure somebody here might know.

HIH

Winston
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Winston Gutkowski wrote:Well, most OS's have some sort of system monitor where you can check out things like available memory, CPU and disk usage in real time. Not sure what it's called on the Mac, but if you fire it up and then run your game you might be able to see what's going on and whether there are any nasty spikes in any of them.


Mac has "Activity Monitor". And since it is UNIX, it also has all the regular commands like "top"
 
Edward Nunez
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Winston, I meant to say MY mac ;).

Here's what I see through the top command when I start up my program:


It definitely seems to be using up a lot of resources. When I try to run the game more than once simultaneously, the games all slow down quite a bit and the cpu fan starts going mad.

The game is basically Breakout with moving targets, nothing very fancy. Regardless, the Windows machine handles it so much better. I can't quite figure it out.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic