Are applets slow?

Hi all,
Quick question. I am developing a Java Applet and an Application. And, I just want some feedback from the pros on the difference between exectution speed between an applet and an application..
[1] Are Java Applets slower or faster - compared to an equivalent Java Application?
[2] If there is a difference in speed between and Applet and an Application, can you explain why there is a speed difference? Is there any extra overhead?
[3] If you do not want to re-invent the wheel, can send me link to anything that might answer the above questions.
thanks,
-Adam

cotton.m wrote:
JustSomeGuy wrote:
It doesn't necessarily have to be a browser. But an applet does require a host of some sort and therefore all the resources of that host. So yes, technically the applet requires more resources.
I'm sorry but "technically" it does no such thing.
The applet runs in the VM and that process, as Kaj noted may well be outside of the browser (or whatever) process and so no the applet does not require more resources. Hmm, I think you and I have different definitions of "require". When I say require, I mean that you can not under any circumstances ever open an applet without a host. Since the applet requires the host, it requires the hosts resources as well (funny thing about host programs, they require resources to exist). Therefore, an applet technically requires more resources.
cotton.m wrote:
I understand your point but it's important to be clear else you leave future readers a faulty impression. Your point is akin to my saying that a Java program is slow because I have a USB printer. I mean just because someone had a bad experience with an applet because their spyware infested bloat-browser chews up all the system resources doesn't mean the applet is accountable for that or that this is an inherent fault in the concept of applets. I'm sorry but your comparison does not match. Unless you specifically went out of your way and hardcoded your printer in, then the java program does not care what kind of printer you have. That is to say, your usb printer is not required to run the program so it is not the same as an applet which does require it's host.
Consider this if you will, an applet and application are written to do exactly the same thing. They have more or less pretty much identical code. Now, on the same machine, run the applet after a cold start and benchmark it. Then cold start the machine again and benchmark the apllication. Which wins?
If you concern yourself with just the applet vrs the application they should be identical (actually not true, the applet should have a slight advantage) but because of the extra resources consumed by the host which must be started for the applet to run but is not started for the application, the applet is going to loose every time.
My point in mentioning this was exactly to prevent faulty impressions. If you look at the big picture an applet is actually more resource dependant and slightly slower (though admittedly most users will never notice). It is not a fault in the concept of applets but rather a tradeoff for the benefits of applets. The whole purpose of an applet is to provide functionality that the host (usually a browser) does not have, and to do it inside of that host. So, if going by the pure purpose of applets, there should never be an application that matches it, if there is then the applet should have been an application in the first place.
cotton.m wrote:
I think a better way of phrasing it would be that on some systems an applet's operating environment may be performance restricted due to a lack of system resources. That is more or less what I said, the only difference is I actually provided an example of just such a system.

Similar Messages

  • Applets are very slow.

    Hi,
    Apples are getting slower.When MII server restarted applets run faster but  after a few days they getting slower again.
    What can we do for applet runs fast?
    Must we restart server on every applet slow problem?
    Thanks.

    Certainly not!
    This'll take some research to know what's going wrong.
    What version of MII are you on? If its 12.x then looking at some perfomamce reports on the netweaver side can give you a fair idea , why the query behind an applet has a slow response.
    There could be memory issues , or some unwanted processes on the server that may be playing spoilsport here.
    I recommend you get in touch with the BASIS folks and carry out some performance tests.
    Hope it helps.

  • Java Applet - slow response over WAN and fast on LAN

    Hi All,
    Using Tomcat we have a Java applet that runs very slow over the Internet but just the opposite on the LAN (fast). On our website we have a link that we click which initializes the application. it is very slow but if the same link is clicked on the LAN it is very fast in responding. We have a 10MB internet connection and even when testing with very little traffic after peak business hours we have same results.When closing the browser and reopening it is much faster the second time. This tells me it is being Cached. If I go to a system that has never accessed the applet we are very slow again. We are hosting this application for a 3rd party so we did not write the code. This company is finger pointing at Router and I am finger pointing at Java application itself maybe not being optimal.
    I am attaching "debug" info from Java Console. Can anyone identify any issues from this debug output or familiarity with this type issue. Your insight is greatly appreciated.
    Java Plug-in 1.5.0_01
    Using JRE version 1.5.0_01 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Administrator
    network: Loading user-defined proxy configuration ...
    network: Done.
    network: Loading proxy configuration from Netscape Navigator ...
    network: Reading user preference file from C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\APPLICATION DATA\Mozilla\Profiles\default\4i0ghip7.slt\prefs.js
    network: Done.
    network: Loading browser proxy configuration ...
    network: Done.
    network: Proxy Configuration: Browser Proxy Configuration
    basic: Cache is enabled
    basic: Location: C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\cache\javapi\v1.0
    basic: Maximum size: unlimited
    basic: Compression level: 0
    basic: Registered modality listener
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@b1b4c3, refcount=1
    network: Connecting http://www.mgaucb.com/gottlieb/images/codonix.png with proxy=DIRECT
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    Internal Version: 3.0.35 Build id: TB-200402041305-35
    Mar 7, 2009 1:12:03 AM com.codonix.trackerboard.gui.TrackerBoardApplet start(null:-1)
    INFO: Internal Version: 3.0.35 Build id: TB-200402041305-35
    Codebase: http://www.mgaucb.com/gottlieb/
    Mar 7, 2009 1:12:03 AM com.codonix.trackerboard.gui.TrackerBoardApplet start(null:-1)
    INFO: Codebase: http://www.mgaucb.com/gottlieb/
    Documentbase: http://www.mgaucb.com/gottlieb/TBUC.html
    Mar 7, 2009 1:12:03 AM com.codonix.trackerboard.gui.TrackerBoardApplet start(null:-1)
    INFO: Documentbase: http://www.mgaucb.com/gottlieb/TBUC.html
    WebAppPath: /gottlieb
    Mar 7, 2009 1:12:03 AM com.codonix.trackerboard.gui.TrackerBoardApplet start(null:-1)
    INFO: WebAppPath: /gottlieb
    basic: Modality pushed
    basic: Modality popped
    network: Connecting socket://www.mgaucb.com:80 with proxy=DIRECT
    Initial Trackerboard/Table: TBUrgentCare/null
    Mar 7, 2009 1:12:35 AM com.codonix.trackerboard.gui.TrackerBoardApplet doLogin(null:-1)
    INFO: Initial Trackerboard/Table: TBUrgentCare/null
    SiteID: CodoniX
    Mar 7, 2009 1:12:35 AM com.codonix.trackerboard.gui.TrackerBoardApplet doLogin(null:-1)
    INFO: SiteID: CodoniX
    liveconnect: the url of the applet is http://www.mgaucb.com and the permission is = false
    liveconnect: JavaScript: calling Java system code
    liveconnect: JavaScript: default security policy = http://www.mgaucb.com
    liveconnect: JavaScript: calling Java system code
    liveconnect: JavaScript: default security policy = http://www.mgaucb.com
    Starting UI Generator....
    liveconnect: JavaScript: calling Java system code
    liveconnect: JavaScript: default security policy = http://www.mgaucb.com
    Warning: No permission to control logging.
    Mar 7, 2009 1:12:58 AM com.codonix.uigenerator.StartApplet init(null:-1)
    WARNING: No permission to control logging.
    Warning: No permission to control logging.
    Mar 7, 2009 1:12:58 AM com.codonix.uigenerator.StartApplet init(null:-1)
    WARNING: No permission to control logging.
    liveconnect: JavaScript: calling Java system code
    liveconnect: JavaScript: default security policy = http://www.mgaucb.com
    liveconnect: JavaScript: calling Java system code
    liveconnect: JavaScript: default security policy = http://www.mgaucb.com
    liveconnect: JavaScript: calling Java system code
    network: Connecting socket://www.mgaucb.com:80 with proxy=DIRECT

    Hi Geoff,
    Thanks for posting here.
    Have you checked your internet edge router ? and make sure there is no any speed limitation set on it , like QOS.
    You may also try the methods below:
    1. Disable RSS, Chimney, AutoTuning on 2008R2
    How to know if TCP offload is working
    http://blogs.technet.com/b/brad_rutkowski/archive/2007/08/10/how-to-know-if-tcp-offload-is-working.aspx
    2. Install Hotfix 982860
    A computer that is running Windows 7 or Windows Server 2008 R2 takes four minutes to open a Microsoft Office 2003 document from a network share
    http://support.microsoft.com/kb/982860
    Thanks.
    Tiger Li
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Open and Save dialogs are painfully slow. Is there a solution?

    Open and Save dialogs are painfully slow. Is there a solution?

    I pulled this part out of one of the topics Barney-15E linked to. It absolutely works! The glacially slow Finder response has been driving me batty in Mavericks. Each time I restarted, it would take forever to list the startup drive when I opened it. Open and Save dialogues were also painfully slow to respond. Now they all snap open and list instantly. I used TextWrangler to comment out the line in the file auto_master, then ran the automount command in Terminal.
    Working workaround:
    Use the following statements in Terminal.
    sudo vi /etc/auto_master
    In this file comment out /net with #  (#/net .....)
    sudo automount -vc
    Fixed.
    Confirmed here too both for Preview.app Open file sluggishness and Finder window population. Thanks Snaggletooh_DE!
    Couple of notes:
    (1) Some folks may be more comfortable using a GUI editor like TextWrangler instead of vi
         a) in the Finder use the GO menu and select Go to Folder
         b) type  '/etc' ( without single quotes ) in the Go to folder dialog box and press the Go button
         c) Right ( Control  ) click the auto_master file in the resulting Finder window. Select "Open with...." and use TextWrangler ( your choice )
         d) Comment out the line by inserting a '#' ( pound sign ) as noted in Snaggletooth_DE's instructions
         e) Save the file  ( probably need to authenticate with your admin password  )
         f) Do the 'sudo automount -vc' per Snaggletooth_DE's instructions. Will need to authenticate again.
    (2) Notice Snaggletooth_DE described this as a "workaround" because it bypasses an Apple bug. Presumably most people have not changed their auto_master file and it worked fine in Mountain Lion and prior. In other words: If you haven't done so already, please continue to submit feedback and bug reports to Apple for this issue.
    Kudos to Snaggletooth_DE for figuring out code is trying to look at network ( NFS ) volumes that maybe don't exist.

  • Hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    Hey there Logic Pro21,
    It sounds like you are seeing some odd performance issues with Logic Pro X. I recommend these troubleshooting steps specifically from the following article to help troubleshoot what is happening:
    Logic Pro X: Troubleshooting basics
    http://support.apple.com/kb/HT5859
    Verify that your computer meets the system requirements for Logic Pro X
    See Logic Pro X Technical Specifications.
    Test using the computer's built-in audio hardware
    If you use external audio hardware, try setting Logic Pro X to use the built-in audio hardware on your computer. Choose Logic Pro X > Preferences > Audio from the main menu and click the Devices tab. Choose the built in audio hardware from the Input Device and Output Device pop-up menus. If the issue is resolved using built-in audio, refer to the manufacturer of your audio interface.
    Start Logic with a different project template
    Sometimes project files can become damaged, causing unexpected behavior in Logic. If you use a template, damage to the template can cause unexpected results with any project subsequently created from it. To create a completely fresh project choose File > New from Template and select Empty Project in the template selector window. Test to see if the issue is resolved in the new project.
    Sometimes, issues with the data in a project can be repaired. Open an affected project and open the Project Information window with the Project Information key command. Click Reorganize Memory to attempt to repair the project. When you reorganize memory, the current project is checked for any signs of damage, structural problems, and unused blocks. If any unused blocks are found, you will be able to remove these, and repair the project. Project memory is also reorganized automatically after saving or opening a project.
    Delete the user preferences
    You can resolve many issues by restoring Logic Pro X back to its original settings. This will not impact your media files. To reset your Logic Pro X user preference settings to their original state, do the following:
    In the Finder, choose Go to Folder from the Go menu.
    Type ~/Library/Preferences in the "Go to the folder" field.
    Press the Go button.
    Remove the com.apple.logic10.plist file from the Preferences folder. Note that if you have programmed any custom key commands, this will reset them to the defaults. You may wish to export your custom key command as a preset before performing this step. See the Logic Pro X User Manual for details on how to do this. If you are having trouble with a control surface in Logic Pro X, then you may also wish to delete the com.apple.logic.pro.cs file from the preferences folder.
    If you have upgraded from an earlier version of Logic Pro, you should also remove~/Library/Preferences/Logic/com.apple.logic.pro.
    Restart the computer.
    Isolate an issue by using another user account
    For more information see Isolating an issue by using another user account.
    Reinstall Logic Pro X
    Another approach you might consider is reinstalling Logic Pro X. To do this effectively, you need to remove the application, then reinstall Logic Pro X. You don't have to remove everything that was installed with Logic Pro X. Follow the steps below to completely reinstall a fresh copy of Logic Pro X.
    In the Finder, choose Applications from the Go menu.
    Locate the Logic Pro X application and drag it to the trash.
    Open the Mac App Store
    Click the Purchases button in the Mac App Store toolbar.
    Sign in to the Mac App Store using the Apple ID you first used to purchase Logic Pro X.
    Look for Logic Pro X in the list of purchased applications in the App Store. If you don't see Logic Pro X in the list, make sure it's not hidden. See Mac App Store: Hiding and unhiding purchases for more information.
    Click Install to download and install Logic Pro X.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • WHen I first installed iOS 6 the App Store crashes...and now having iOS 6 for 2 weeks now, all my apps are buggy and now are crashing! Safari and built in apps are becoming slow and crash. I hate how apple leaves iPod touch 4g and iPhone 4 in the dark.

    WHen I first installed iOS 6 the App Store crashes...and now having iOS 6 for 2 weeks now, all my apps are buggy and now are crashing! Safari and built in apps are becoming slow and crash. I hate how apple leaves iPod touch 4g and iPhone 4 in the dark and basically force us to upgrade to newer devices. Apple could of done better with the update and needs to resolve these issues.

    Try:
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar
    The App store crashing is a known problem.
    IOS 6 App store crash: Apple Support Communities

  • In J2EE land, are applets dead?

    Hi All ,
    In J2EE land, are applets dead?
    In all the J2EE examples I've seen it's always JSP or Servlets feeding HTML to the client. I am not comfortable restricting the front end to HTML.I have used Swing extensively and like the wide functionality it provides.
    Anyway JSP code look awful !!! Sun seems to be placing great emphasis on JSP, but I am afraid that using it would place too many restrictions on the front end.
    Does anyone feel the same way as me or am I overlooking something obvious?
    Thanks,
    Kevin

    I've found a doc in %J2EE_HOME\doc\release\ConfigGuide.html
    Put ur applets any where inside the %J2EE_HOME%\public_html. I put them in %J2EE_HOME%\public_html\applets. http://localhost:8000/applets/myApplet.html should load it later. By me it failed becaused myApplet was trying to access to local file. That is a security protection. I'm trying to find out how to adjust those properties files inside %J2EE_HOME%\config to enable access to local files but only when it is coming from my compi / host.
    Any one have idea how to configure j2ee-server say to be http://www.mydomain.com and how to configure it to trust all objects... from mydomain.com ??
    I've been able to access it only as http://localhost:8000
    TIA bigerfoot

  • Since download of Firefox Hello desktop & laptop both on Windows 7 are very slow even after refresh, download history removed and anti virus software turned off

    Since download of Firefox Hello my home desktop & laptop, both on Windows 7, are very slow to open. I have refreshed firefox, removed download history and turned off the anti virus software in extensions. All the plugins are up to date. Can we revert back to Firefox without Firefox Hello?

    Firefox Hello is simply a wrapper for technology already in Firefox, it doesn't negatively impact performance if you aren't using it. Are you saying that your entire computer is slow or just Firefox?

  • All Wireless devices are incredibly slow lately?

    The past couple of days, all of the devices in the house which aren't connected to the router are terribly slow, I'm having trouble with loading videos and things, Videos take about an hour to render 1 minute of the video, if it even renders at all.
    2 days ago, it was fine, but now it's terrible. The video has to stop and buffer every 10 seconds or so. Does anyone have any idea what is going on?
    EDIT: Just for extra info, Lloading web pages is fine and pretty much instant, but videos are being fairly terrible. I'm just having issues with videos on my Desktop PC and Videos and Podcasts (Listening directly from iTunes, not downloaded) from my iPod.

    is your router set like this
    Wireless configuration
    Wireless connections enabled
    Wireless connections enabled Yes Yes
    No No
    MAC address
    00:24:17:f5:43:cf
    Wireless network name (SSID)
    Wireless network name (SSID)
    Wireless interface type
    Wireless interface type <script type="text/javascript"></script> 802.11 b/g/n (Recommended)802.11 b/g802.11 b
    802.11 b/g/n (Recommended)
    802.11 b/g/n (Recommended)
    802.11 b/g
    802.11 b
    Actual data transfer speed
    65 Mbps
    Channel selection
    Channel selection <script type="text/javascript"></script> AutomaticChannel 1Channel 2Channel 3Channel 4Channel 5Channel 6Channel 7Channel 8Channel 9Channel 10Channel 11Channel 12Channel 13
    Channel 11

  • CS4 apps are VERY slow to open Windows file browser with File Open or File Save As commands

    We are running CS4 on Windows 7 with all available updates installed.   Photoshop and the other CS4 applications are VERY slow to open a Windows file browsing window to select files when File Open or File Save As menu options are run -- it can take as long as a minute or two for the window to open.  Once the window opens and a file is selected, then opening or saving the file is very quick.  The location of the default directory, whether it is on a local drive or a network drive, makes no difference.  Any suggestions as to what the problem might be?

    Raphman02
    The link that I posted earlier is off.  Read this one
    http://support.microsoft.com/kb/2501584.  I discovered in my network that the MS Office File Validation Patch made excel crawl when opening over the network though nothing else changed. At the time I was opening Excel on Office 2003.
    You can manually turn this off by editing the registry and tunring it off.  Going forward I skipped the patch to keep my sanity.  Not sure if this is the same as your issue, but the support article will go into detail how to either have Fix it
    clear the issue or change the proper registry keys.
    Hope this helps

  • Reports are runinng slower than before...

    I notice that my reports are running slower than before and realized that nothing interms of data volume or dimension members has changed.i checked the logfile and found that no one ran calculation.
    my team suggested to check the below things in the following
    1)run a maxl comment to see if the database is fragmented.
    2)check when was the last time the application was stopped
    3)checking the data cache setting
    4)check the commit - level setting
    I think "Data cache setting" is not required to check as the data volume is not changed.Can any one sugegsts the best possible 2 ways from the above STEPS

    I think you have arrived at the correct conclusions, by jumping or otherwise....
    Looks like its maybe his 3rd or 4th recent thread along these lines rather than 2nd:
    Re: Need clarification on the Hyperion stuff
    Reports are runinng slower than before...
    clarify on fragmentation
    Re: Valid methods to back up ASO database
    If only user8842356 could grasp the art of the Search functionality, the universe would be a happier place.

  • IMAP commands are very slow and end up having the connection terminated by the server

    Could you please help us on this topic ?
    https://answers.microsoft.com/en-us/outlook_com/forum/oemail-osend/imap-commands-are-very-slow-and-end-up-having-the/652390ea-9658-4db6-ae2c-c8fff12a9142

    Hi,
    Sorry that I am not familiar with Outlook.com account and its server connection. This forum focuses on user clients issue when connect to Exchange server 2013 which is generally an on-premises mail server in domain environment.
    Since your issue is related to Outlook.com account, I suggest we can also ask a question in Microsoft Outlook.com forum for more help:
    http://answers.microsoft.com/en-us/outlook_com/forum?sort=lastreplydate&dir=desc&tab=Threads&status=&mod=&modAge=&advFil=&postedAfter=&postedBefore=&threadType=All&tm=1418613687794
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thank you for your understanding.
    Regards,
    Winnie Liang
    TechNet Community Support

  • Fetching queries that are running slow

    Hi all,
    Is there any tool in Oracle 9i, by which we can fetch queries that are running slow in the entire database on a weekly basis ?

    As mentioned, the statspack tables and the shared pool views from which they take their snapshots - V$SQL / V$SQLAREA - provided various ways for you to idenitify top N statements by cpu time, elapsed time, logical io, physical io, etc.
    For a weekly basis, the statspack tables and statspack reports provided the easiest way to do this, a) providing you're capturing this data and b) depending on how long you're retaining it.

  • Executable jars are running slow for certain features

    A weird problem occured one day. I started running my old jar -packed application. It took more than a minute to load the main window. Also updating file browser window is really slow when I browse from a folder to another. I also tested running other jar applications and they have similar problems. Everything works but certain task are extremely slow.
    I reinstalled jre1.6.0_07 but it did not help. Then I uninstalled all jdk's and jre's and installed jdk1.6.0_07 which came with jre1.6.0_07. No result. Do you have any idea where the problem is or what I could try next?

    Problem solved.
    It was the mingw that I installed as full installation. Full installation came with a java compiler, which made some specific java features really slow.
    Another problem was uninstalling it in a way that would have restored java as it was. I tried uninstalling mingw, manually removing mingw folder, cleared environment variables, removed and reinstalled all java etc. Finally, I just reinstalled everything beginning from OS on my computer

  • Where are Applets stored in WinNT/IE5.5

    Hi Folks,
    A client is receiving an error saying (not exact)
    Java.Lang error cannot find ...class
    In Winnt\Downloaded Program Files, Java 1.3.1 is saying it is damaged.
    I have reinstalled IE 5.5 but the error remains.
    How can I reinstall Java, and/or the Applet.
    Where are Applets stored in WinNT/IE5.5?
    Thanks in Advance.
    Steve

    Before you reinstall your JRE/JVM have you tried it in other browsers such as Mozilla, Netscape Navigator, Opera, or others? IExp has taken a giant leap BACKWARDS (IMO) in that it doesn't ship the latest JVM, so it's probably just a browser issue. If its your own applet that you are trying to load, if it works in the appletviewer then there's nothing wrong with your JVM.

Maybe you are looking for