wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes determining which jvm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "determining which jvm" Watch "determining which jvm" New topic
Author

determining which jvm

M. Gagnon
Ranch Hand

Joined: Feb 18, 2004
Posts: 68
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

Joined: Jan 23, 2004
Posts: 78


may be?
Cnu


formerly known as Cnu
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937
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

Joined: Feb 18, 2004
Posts: 68
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

Joined: Apr 21, 2005
Posts: 410
What is the spec of your machine?
M. Gagnon
Ranch Hand

Joined: Feb 18, 2004
Posts: 68
I'm running Windows 98 on an AMD K2-6 processor.
M Beck
Ranch Hand

Joined: Jan 14, 2005
Posts: 323
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

Joined: Feb 18, 2004
Posts: 68
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

Joined: Oct 20, 2004
Posts: 81
Java is very memory hungry. How much RAM do you have?

Steve
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: determining which jvm
 
Similar Threads
How to write program that uses all memory available?
So what the heck am I supposed to do - evil microsoft
why applet run so slowly when there's a servlet running on same machine
Force to use Sun JVM if available
Controls in applet not refreshing in IE using MS JVM