Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

determining which jvm

 
M. Gagnon
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have noticed that all Java Swing apps run painfully slowly on my machine. Actually, painfully doesn't begin to describe how slowly they run. I believe I read somewhere that this phenomenon is the result of running Microsoft's JVM rather than Sun's. How can I find which JVM my machine is running and change it to Sun's JVM if I have Microsoft's?

Thanks in advance.
 
Pavan Kumar
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


may be?
Cnu
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may also want to query "java.vm.vendor". To show all of the properties, you can run something like this:


[ June 07, 2005: Message edited by: John Smith ]
 
M. Gagnon
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I ran your code and it looks like I am using the Sun JVM. The first few lines of output are:

java.runtime.name: Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path: C:\J2SDK_NB\J2SDK1.4.2\JRE\bin
java.vm.version: 1.4.2-b28
java.vm.vendor: Sun Microsystems Inc.
java.vendor.url: http://java.sun.com/

So, any ideas why Java GUI apps are SOOOOOOOO slow on my machine?
 
Stuart Gray
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the spec of your machine?
 
M. Gagnon
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm running Windows 98 on an AMD K2-6 processor.
 
M Beck
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that's a pretty slow machine, overall. i doubt you'll get much of anything to run quickly on such hardware, i'm afraid.
 
M. Gagnon
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by M Beck:
that's a pretty slow machine, overall. i doubt you'll get much of anything to run quickly on such hardware, i'm afraid.


I really don't think that the processor or OS are causing the kind of delays I'm seeing. Yes, MS Word is very slow on my machine, but Java apps, including Sun's NetBeans IDE, move at a fraction of a snail's pace. Honestly, it's so slow that the apps are rendered useless.
 
Steve McCann
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is very memory hungry. How much RAM do you have?

Steve
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic