Why is Java VM on Win32 so slow??

I use Mozilla 1.3b browser. But I switch to IE when I have to use Java apps, because the Microsoft VM is so much better than the Sun VM. Just try it out. Go to www.naperville-lib.org and click on the "Library Catalog/Your Account" link. Check out how slow that app is on the Sun VM. Compare with MS VM. Check out other Java apps.. like www.sodaplay.com. Noticeably faster on MS VM.
This is just unacceptable. Java apps run like molasses on my machine, as if I were running a 300MHz machine (when in fact I'm running at 1GHz). I've heard other complaints about this too, so I know it's not just me.
Can we expect a faster VM any time soon?

Agree!!! MS VM is really better than Sun VM for runing Applet, both concerning performance and stability. It's a bad news that MS VM will be replaced by Sun VM in future. See http://news.com.com/2100-1001-983169.html.

Similar Messages

  • Why is java.io.InputStream.read() so slow???

    Hi everyone,
    I have an applet that reads a file via url. I open the file and read from it using this code:
    URL url = new URL (http://"www.somesite.com/target.txt");
    try {
    InputStream is = url.openStream();
    //reads the raw data from the file
    for(int i = 0; i != -1;) {
    i = is.read();
    //determines dimensions needed for the array
    if(i == '~') {
    dataDimension++;
    rawData += (char) i;
    }catch(IOException ioe) {}
    The code works without errors. (hopefully the above does too, I dont think I introduced any errors when I pasted it over...) The problem is it is unbelieveably slow. When I run it on my file of 85kB in size, the code runs for several minutes on this loop reading in the data in the file. I have no idea why this is...the problem appears to have little or nothing to do with bandwidth as ive tried it on dsl, 56K etc. Ive even writtin a variant that reads the data off my hard drive. No matter where the file resides and how fast of a pipe I give it, it takes just about the same time to complete. My assumption is that either Strings have an increasingly harder time concatenating another string to its end as its size increases or InputStream needs to be layered in another reader object for some strange reason.
    Does anyone have any idea whats happening here? Is there a faster way to get characters from a file into a String?
    I really do appreciate any help I get on this one!
    Thanks in advance for posting.
    Sincerely,
    Nickolas Fellows
    [email protected]

    Haha, Im an idiot...I answered my own question...or at least I think I did.
    Turns out I shoulda been using a StringBuffer and initializing it with a size large enough to hold the file right off the bat. I am assuming making the string recreate its self everytime its size got exceeded was the problem.
    Thx for letting me waste everyones time again :)
    Sincerely,
    Nickolas Fellows
    [email protected]

  • Why is java slow?

    Why is java so slow? I think sun needs to make a big improvement on the speed of loading a java program/applet.!!

    It is slower because it is an interpreted language. There have been many improvements to the language from compilation and through newer JVM's that further optimize the code. It is someting you must work w/ when you use the language.

  • Why learn Java now?

    I'm new to Java programming and have developed some small demo classes.
    I have exp with other Visual languages and I feel like I'm taking a step back in time writing code in Notepad and compiling and running from dos etc.
    I have several classes and lots of code lines to do a simple thing in swing like create a frame and a simple menu panel.
    I thought Java required less code but so far it requires 3 times an much as other languages!
    What visual tools or IDE�s exist for Java development other than Sun ONE Studio?
    Why learn java now? The number of jobs posted online seams to be higher for Java that any other language out there like vb.net, C++ etc.
    Any Comments of the Future of Java Jobs?
    Running Java:
    My apps run slow on XP, 384M ram.
    Do production Java applications suffer from slow execution of the JVM layer?

    Java code is easier to understand and more stable than "faster" languages. There is more flexibility and extensibility than in other languages, and the error-processing system is quite advanced. There are also very powerful tools you can use out-of-the-box, like JOptionPane:
    import javax.swing.*;
    public class Foo
        public static void main(String[] args)
            String pass = JOptionPane.showInputDialog(null, "Please enter your password");
            System.out.println("Password="+pass);
    Also see javax.swing.JColorChooser.
    -Tim                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Is java program meant to be slow?

    I dont know why...
    I have made a simple uploader which can upload 3 files at a time simultaneously...and it's a gui based.
    however, it runs quite slow, and it uses alot of memory.
    Is Java meant to be this slow?
    btw, will using AWT instead of Swing improove the performance?

    I guess the more assumption of memory, the slower the
    program is, right?Wrong. You can improve performance by caching some objects and thus using more memory. Or you could increase locailty by solving the same job with less memory and thus increase performance. Basically you there is no direct relation between memory usage and performance.
    well, i could see how much memory is used simply by
    ctrl+alt+del, the task manager.That gives you only a rough overview of the system, basically because of stuff like shared libraries, shared memory, other resources that appear as allocated memory (mmaped files in UNIX, for example), ...
    However, what is a profiler? http://www.google.com/search?q=profiler
    by slow, I mean, well, the program effects alot on
    other softwares to execute slower, for eg, open a
    browser, open My Computer, etc.That sounds like your program uses an idle loop. You probably implemented it in an un-effective manner. You could have made that mistake in any other language as well (I even think it's easier to fix in Java).
    btw, I hypothesize that I could follow the suggestion
    of uploading sequentially, because it can also reduce
    the amount of objects used to reduce memory usage.since your assumption before is not necessarily true, neither is this one.
    Or, if you people are kind enough, maybe you could
    check my whole source code? well, it is about 9 pages
    long.Probably not, but post the loop that does the file reading and uploading, as my guess would be that that is the bottleneck. Otherwise use aforementioned profiler to find out which part is slowest.

  • Why does my iPhoto open and run slow since upgrading to OSX 10.8.5

    Why does my iPhoto open and run slow since upgrading to OSX 10.8.5?  I have an Imac - Intel 2.5 GHz quad core I5 - with 20 GB of memory. Before the upgrade it was much faster.

    Why does my iPhoto open and run slow since upgrading to OSX 10.8.5?  I have an Imac - Intel 2.5 GHz quad core I5 - with 20 GB of memory. Before the upgrade it was much faster.

  • Why is my mid 2007 iMac so slow now that I've loaded 10.9.4

    Why is my mid 2007 iMac so slow now that I've loaded 10.9.4? Everything seems to be slow. It was quick enough on 10.4. I now have wireless connection issues, and wired keyboard connection issues?
    2.4 GHz Intel Core2 Duo, 4GB 667 Mhz DDR2 SDRAM

    Hi there - thanks. No, I haven't run anything like Clean My Mac - what would you suggest?
    EtreCheck version: 1.9.15 (52)
    Report generated September 9, 2014 at 8:56:44 PM PDT
    Hardware Information: ?
      iMac (24-inch Mid 2007) (Verified)
      iMac - model: iMac7,1
      1 2.4 GHz Intel Core 2 Duo CPU: 2 cores
      4 GB RAM
    Video Information: ?
      ATI,RadeonHD2600 - VRAM: 256 MB
      iMac 1920 x 1200
    System Software: ?
      OS X 10.9.4 (13E28) - Uptime: 14 days 9:40:19
    Disk Information: ?
      SAMSUNG HD103UJ disk0 : (1 TB)
      S.M.A.R.T. Status: Verified
      EFI (disk0s1) <not mounted>: 209.7 MB
      Macintosh HD (disk0s2) / [Startup]: 999.35 GB (321.09 GB free)
      Recovery HD (disk0s3) <not mounted>: 650 MB
    USB Information: ?
      Apple, Inc. Keyboard Hub
      Apple Inc. Apple Keyboard
      Seagate FA GoFlex Desk 1.5 TB
      S.M.A.R.T. Status: Verified
      disk1s1 (disk1s1) <not mounted>: 32 KB
      FreeAgent GoFlex Drive (disk1s3) /Volumes/FreeAgent GoFlex Drive: 1.5 TB (20.68 GB free)
      Apple Inc. Built-in iSight
      Apple Inc. Bluetooth USB Host Controller
      Apple Computer, Inc. IR Receiver
    Gatekeeper: ?
      Mac App Store and identified developers
    Kernel Extensions: ?
      [loaded] com.seagate.driver.PowSecDriverCore (5.1.1) Support
      [not loaded] com.seagate.driver.PowSecLeafDriver_10_4 (5.1.1) Support
      [loaded] com.seagate.driver.PowSecLeafDriver_10_5 (5.1.1) Support
      [not loaded] com.seagate.driver.SeagateDriveIcons (5.1.1) Support
      [not loaded] net.pocketmac.driver.BlackberryUSB (3.0.9) Support
      [not loaded] net.pocketmac.driver.BlackberryUSBDev (3.0.9) Support
    Startup Items: ?
      AdobeVersionCueCS2: Path: /Library/StartupItems/AdobeVersionCueCS2
    Problem System Launch Daemons: ?
      [failed] com.apple.printtool.daemon.plist
      [failed] com.apple.wdhelper.plist
    Launch Daemons: ?
      [loaded] com.adobe.fpsaud.plist Support
      [loaded] com.adobe.SwitchBoard.plist Support
      [loaded] com.google.keystone.daemon.plist Support
      [loaded] com.microsoft.office.licensing.helper.plist Support
    Launch Agents: ?
      [not loaded] com.adobe.AAM.Updater-1.0.plist Support
      [running] com.adobe.AdobeCreativeCloud.plist Support
      [running] com.brother.LOGINserver.plist Support
      [loaded] com.google.keystone.agent.plist Support
      [running] com.seagate.SeagateStorageGauge.plist Support
    User Launch Agents: ?
      [loaded] com.adobe.AAM.Updater-1.0.plist Support
      [loaded] com.adobe.ARM.[...].plist Support
      [loaded] com.facebook.videochat.[redacted].plist Support
      [running] com.memeo.Memeod.plist Support
    User Login Items: ?
      Microsoft AU Daemon
      SpeechSynthesisServer
      iTunesHelper
      AdobeResourceSynchronizer
      Google Drive
      Dropbox
      Microsoft Database Daemon
      Microsoft Outlook
      ExpanderDaemon
      VersionCueCS2Status
    Internet Plug-ins: ?
      o1dbrowserplugin: Version: 5.4.2.18903 Support
      Google Earth Web Plug-in: Version: 7.1 Support
      Default Browser: Version: 537 - SDK 10.9
      Flip4Mac WMV Plugin: Version: 2.3.8.1 Support
      OVSHelper: Version: 1.0 Support
      RealPlayer Plugin: Version: (null) Support
      AdobeAAMDetect: Version: AdobeAAMDetect 2.0.0.0 - SDK 10.7 Support
      FlashPlayer-10.6: Version: 15.0.0.152 - SDK 10.6 Support
      AdobePDFViewerNPAPI: Version: 10.1.6 Support
      DivXBrowserPlugin: Version: 2.1 Support
      Flash Player: Version: 15.0.0.152 - SDK 10.6 Support
      iPhotoPhotocast: Version: 7.0
      googletalkbrowserplugin: Version: 5.4.2.18903 Support
      QuickTime Plugin: Version: 7.7.3
      AdobePDFViewer: Version: 10.1.6 Support
      SharePointBrowserPlugin: Version: 14.1.0 Support
      Silverlight: Version: 5.1.20125.0 - SDK 10.6 Support
      JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
    Safari Extensions: ?
      wpa
      html5video
    Audio Plug-ins: ?
      BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
      AirPlay: Version: 2.0 - SDK 10.9
      AppleAVBAudio: Version: 203.2 - SDK 10.9
      iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins: ?
      Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User iTunes Plug-ins ?
      TuneUp Visualizer: Version: (null) Support
    User Internet Plug-ins ?
      Move-Media-Player: Version: npmnqmp 071303000006 Support
      fbplugin_1_0_3: Version: (null) Support
      WebEx: Version: 1.0 Support
      WebEx64: Version: 1.0 Support
    3rd Party Preference Panes: ?
      Adobe Version Cue CS2  Support
      DivX  Support
      Flash Player  Support
      Flip4Mac WMV  Support
    Time Machine: ?
      Skip System Files: NO
      Auto backup: YES
      Volumes being backed up:
      Macintosh HD: Disk size: 930.71 GB Disk used: 631.68 GB
      Destinations:
      FreeAgent GoFlex Drive [Local] (Last used)
      Total size: 1 TB
      Total number of backups: 100
      Oldest backup: 2013-08-22 07:36:47 +0000
      Last backup: 2014-09-10 03:01:26 +0000
      Size of backup disk: Too small
      Backup size 1 TB < (Disk used 631.68 GB X 3)
      Time Machine details may not be accurate.
      All volumes being backed up may not be listed.
    Top Processes by CPU: ?
          76% Microsoft Outlook
          7% ARM
          4% Google Drive
          1% launchservicesd
          1% Microsoft Database Daemon
    Top Processes by Memory: ?
      172 MB Finder
      135 MB Microsoft Outlook
      94 MB Google Chrome
      94 MB com.apple.IconServicesAgent
      94 MB WindowServer
    Virtual Memory Information: ?
      158 MB Free RAM
      866 MB Active RAM
      706 MB Inactive RAM
      655 MB Wired RAM
      93.45 GB Page-ins
      3.83 GB Page-outs

  • Why does Java Application not working with Macromedia Flash 5 or MX?

    Why does Java Application not working with Macromedia Flash 5 or MX?

    Who says they don't?
    Although I don't know much about those I'd think they should be able to talk to Java Aps using Sockets or request Servlets ...
    Spieler

  • Why is Java update asking me to install openoffice?

    I have installed Java jdk 1.6.
    Now the update notification is asking me if I want to install openoffice.
    I am not interested in that kind of notifications. (By the way I already have installed open office)
    There needs to be a differentiation between java updates and other updates (3th party tools). Then I can switch off that kind of notifications.
    I am only interested in Java updates.
    Why is Java update asking me to install openoffice?
    Thanks and regards,
    Cees

    It's probably asking you to update to iOS 8.2, which includes support for the upcoming Apple Watch.

  • Unicode String in JFrame's Title Bar / why is java a non-Unicode pgm in XP?

    My big question:
    Why is Java detected as a non-Unicode program by Windows XP?
    I need to do the following before I can write Japanese characters on the JFrame's title bar on Window XP:
    From the Control Panel -> Regional Settings and Languages -> Set the Language for non-Unicode Program to Japanese
    Thanks in advance,
    Noel

    Hi Noel,
    I'm only guessing here, but I suspect this is still the case...
    Under JDK1.3, the title bar produced by a JFrame is provided by the Windows OS, rather than Java itself. You'll find that trying to display foreign characters in a JFrame's title bar on an English Windows system nigh on impossible (you're left with everyone's favourite little rectangles instead). AFAIK, Sun were looking to change this in the future, but I've no idea if they've got there yet.
    Windows XP likely refers to Java as a non-Unicode program because it's looking at the main frame. Because the frame is produced by Windows itself (which last I checked was about as Unicode-compliant as my car is), it holds a different encoding to anything else within Java.
    At least that's my stab in the dark. ;-)
    Ta,
    Martin Hughes

  • Why are Java files listed as needing repair in Disk Utility?

    Why are Java files always listed as needing repair in Disk Utility?

    FrenchToast wrote:
    Baltwo, bull's eye, as always!
    X423424X's question is pertinent too: you usually need to repair permissions after some major upgrade or update, not on a regular basis. Is there a particular reason why you'd often try to repair permissions? Here's more on the subject.
    Repairing permissions after an update or upgrade is harmless, but I would question the need to do it even there. The Apple update itself should set the correct Permissions. I still do this, really as a hangover from Tiger days -- not certain it was really ever needed there either -- and because it's a habit that's hard to kick, but it's never found anything to repair...but for one buggy exception, which was the 10.5.8 Combo update. Running it once and then repairing Permissions created a real error. It was discovered the Combo needed to be run twice back to back and then Permissions repair. In fact, one would have been better off not running Permissions for that update to begin with. There it wasn't harnless.
    https://discussions.apple.com/message/9968141#9968141
    BTW, even Flash updates, which always used to set incorrect Permissions, are coming in clean these days.
    Exercises in Futility: Permissions Repair

  • HT4528 Why is the WiFi and browser so slow on iPhone 5?

    Why is the WiFi and browser so slow on iPhone 5?  I've noticed they are not as quick as other smart phones and have seen this brought up in forums.  Also, the WiFi was slow with my iPhone 4 anyone know what the deal is?
    Thanks in advance

    Sadly that spiffy reply was of no use.  Browser is so slow and in looking at 3 different iPhones I have noticed there is a serious wait for any simple page to come up like MSN maybe its the iOS maybe Safari maybe should reset daily.  Truly not impressed Apple can you here us now?  Probably not... to busy restarting or resetting.
    Truly hope it improves in a hurry.

  • Why is the download/upload speed so slow on my MBA (about 5 times slower than my PC)?

    Why is the download/upload speed so slow on my MBA (about 5 times slower than my PC)?

    Are you on band 13 or band 4?  13 is the original LTE band and remains relatively congested. Band 4 is the XLTE band and is less congested and has higher overall potential bandwidth (15 MHz vs 10 MHz). Even so, 7 Mbps is more than enough for doing stuff on your phone and is not considered slow. 
    To check band,
    dial *3001#12345#*
    select serving cell info
    frequency band will say 13 or 4
    FInd an area with band 4 and retest. 

  • Why does Java have such a large footprint?

    I've been curious about this topic for a while, but I haven't ever looked into this to any depth. I also posted this to stackoverflow but haven't gotten any solid responses so far:
    http://stackoverflow.com/questions/1107991/why-does-java-have-such-a-large-footprint
    Java - or at least Sun's Hotspot JVM - has long had a reputation for having a very large memory footprint. What exactly is it about the JVM that gives it this reputation? I'd be interested in a detailed breakdown: how much memory goes to the runtime? (The JIT? The GC/memory management? The classloader?) Anything related to "auxiliary" APIs like JNI/JVMTI? The standard libraries? (Which parts get how much?) Any other major components?
    I realize that this may not be straightforward to answer without a concrete application plus VM configuration, so just to narrow things down at least somewhat: I'm primarily interested in default/typical VM configurations, and in a baseline console "Hello world" app as well as any real-world desktop or server app. (I'm suspecting that a substantial part of the JVM's footprint is largely independent of the app itself, and it is in this part that I'd like to zoom in, ideally.)
    I have a couple of other closely related questions:
    Other similar technology, such as .NET/mono, don't exhibit nearly the same footprint. Why is this the case?
    I've read somewhere on the intarwebs that a large portion of the footprint is due simply to the size of the standard libraries. If this is the case, then why is so much of the standard libraries being loaded up front?
    Are there any efforts (JSRs, whatever) to tame the memory footprint? The closest thing I've come across is a project to reduce the on-disk footprint of the JVM [1] and to modularize the standard library [2].
    I'm sure that the footprint has varied over the past decade or so with every new version of Java. Are there any specific numbers/charts chronicling precisely how the JVM's footprint has changed?
    [1] http://blogs.sun.com/jtc/entry/reduced_footprint_java_se_bringing
    [2] http://blogs.sun.com/theplanetarium/entry/project_jigsaw_modularizing_jdk_7

    yangzhang wrote:
    I've been curious about this topic for a while, but I haven't ever looked into this to any depth. I also posted this to stackoverflow but haven't gotten any solid responses so far:
    http://stackoverflow.com/questions/1107991/why-does-java-have-such-a-large-footprint
    Java - or at least Sun's Hotspot JVM - has long had a reputation for having a very large memory footprint. What exactly is it about the JVM that gives it this reputation? I'd be interested in a detailed breakdown: how much memory goes to the runtime? (The JIT? The GC/memory management? The classloader?) Anything related to "auxiliary" APIs like JNI/JVMTI? The standard libraries? (Which parts get how much?) Any other major components?
    Presumably versus some other VM. I would suppose the fact that much of the VM is written in java has something to do with it.
    I realize that this may not be straightforward to answer without a concrete application plus VM configuration, so just to narrow things down at least somewhat: I'm primarily interested in default/typical VM configurations, and in a baseline console "Hello world" app as well as any real-world desktop or server app. (I'm suspecting that a substantial part of the JVM's footprint is largely independent of the app itself, and it is in this part that I'd like to zoom in, ideally.)
    I have a couple of other closely related questions:
    Other similar technology, such as .NET/mono, don't exhibit nearly the same footprint. Why is this the case?
    Not sure I agree with that. What size do you see with a .Net app that uses 3.0/3.5?
    I've read somewhere on the intarwebs that a large portion of the footprint is due simply to the size of the standard libraries. If this is the case, then why is so much of the standard libraries being loaded up front?
    Good question. There is a feature that allows multiple VMs to use the same memory footprint version of the loaded libraries. That is a new feature and it isn't clear to me if it covers the entire API. I do not know if that is dynamically built.

  • Why is the same wirelles connection too slow for an iphone4 when it is quite fast to an iphone5?

    Why is the same wirelles connection too slow for an iphone4 when it is quite fast to an iphone5?

    You really have a question for iPhone support here, so I suggest that you post in the appropriate support area:
    Using iPhone
    The experts over there will likely suggest that you use the Apple Troubleshooting Guide for iOS devices, so you might want to work your way through that before you post in the iPhone support area.
    http://support.apple.com/kb/TS1398

Maybe you are looking for

  • Plot legend flicker when in RUN mode

     Hi all, i have written a code in LV to acquire data from 12 sensors and display them. In the waveform chart I tried renaming the legend. When I run the vi, the legend name flickers to module name and channel name. I am attaching a snapshot to give y

  • TestStand 3.1 Run Selected Steps generates Visa error -1073807346?

    When using Run Selected Step in TestStand 3.1 to interactively execute previous steps in a sequence a Visa error (-1073807346 The given session or object reference is invalid.) is generated even though the selected step has previously executed with n

  • Oes 11 nss /compscreen ??

    we are migrating our netware nss volumes to a new oes 11 server. Compression is on both source and destination volumes. 12 hours after the file migration finished we noticed the used space on the volume starting increasing very fast and the processor

  • [SOLVED]/usr/lib/arch-tempfiles line 106: install:command not found

    Hi everyone! This is my boot.log http://pastebin.com/1gfynhSN It says"/usr/lib/initscripts/arch-tmpfiles:line 106: install:command not found".This is leading to problems such as dbus and network manager not being started(even manually),no shutdown op

  • Leaking G5 with fairy tale ending...

    No wonder Apple consistently scores high on all consumer surveys for customer service! June 2004 Dual 2.5 G5 tower almost one full year out of Applecare warranty. Fans on full bore, shutting down occasionally. I took it to my local Apple specialist f