Howto improve applet startup (verification) time?

Hi there!
I wrote an mide-size applet which consits of about 400 classes (400kB shrinked) which works really fast and fine - after startup.
I already tested it on several JVMs, including Netscape-4.8, MSJVM-3167, Sun-1.5RC/1.4.2.
The problem I have is that there is a lot of time spent somewhere in the jvm and I dont know what I could do to improve startup-time.
The JVM starts up at normal speed, then downloads my applet via the local network, both takes not more than 10sec.
However after this procedure the applet-loading-screen (in 1.5) shows me that the applet has been fully loaded (red progress bar is full) and then the jvm does something which takes 2 minutes on my P266MMX/256MbRam.
The MSJVM needs for this task (same task) "only" about 1 minute whereas Netscape needs only 10secs to load and start the applet on this machine.
I know the P266MMX is quite old, however I have to test also against such old machines.
The problem I have is, that my application should be available soon after visiting the service. Plugin-loading-time is a pain (15secs!), however this is normal for this task.
But where are the 2mins spent, I think it could be the verification process but I am not sure. I know for sure that in this 2mins no code that I have written myself was ever executed...
Are there any ways to minimize this time (maybe tricks to help the verifier to be faster)?
Maybe the images are the cause I packed also into the jar-archive but why could images slow down the verification time? (about 60 1-2kB gifs).
Please help me to help to remove java's reputation to be slow!
Thanks a lot, lg Clemens

I found out that most of this 2 minutes is spent loading classes - my code runs in background already till it comes to a place where it needs some till now not loaded classes.
Of course at startup class-loading happens very often, but why does it take so long, even when the applet is taken from applet_cache? (Java prints a message that the applet is taken from the applet_cache).
Any suggestions or ideas? Please help I really dont know what to do or why Netscape-4.6 is sooo much fast that java-1.5...
lg Clemens

Similar Messages

  • Hard drive both as s startup and Time Machine

    Right now I am using an Iomega 360 GB hard drive for Time Machine. I would like to put a system on the Iomega so I can use it as a start up in case something hapens with my computer's startup. If I do this will it erase the year of Time Machine copies I have on it now?
    Can the system startup and time machine both be on my Iomega hard drive on the same partition" Or should I have 2 hard drives. One for Time Machine and the other for the system startup?
    I'm just a little freaked out because of the trouble I have had with installing Z.6.

    360GB is kind of small for a Time Machine drive already (unless the data you are backing up is something like 160GB), so you may not want to install additional stuff on the same drive. However, the Time Machine backup archive is kept in its own folder, so you can put other data on the same drive, including a system installation.
    If you are installing Leopard, as long as you don't select to run an +Erase and Install+, and there is no existing system on that drive, the installed system will be added to the existing data.
    Ideally, it would be best to have a separate volume that is only used for Time Machine. A volume can be a partition (it does not need to be the whole drive), so you could partition that drive to have a big partition and a small partition (20GB should be enough), and put the emergency startup system on the small partition. If it is for emergency startup, you can Customize the Leopard installation to de-select things you do not need, such as languages, printer drivers, and bundled apps; that will reduce the size of the installation quite a bit. I use an old FireWire-based iPod with a broken screen as my emergency/maintenance startup disk (about 20GB).
    I'm just a little freaked out because of the trouble I have had with installing Z.6.
    Is that X.6 (Snow Leopard)? What trouble are you having?

  • Elements 10 organizer craches on startup, Every time.

    Elements 10 organizer craches on startup, Every time.
    Hi.
    Hi have elements 10 and every time I start organizer it crashes ca 10sec after startup. I have tried to reinstall it but I still have the same problem. It starts up and ask me to backup witch I don’t, and then after a little time it crash. In the progress bar at the bottom to the left it says “making miniatures. According to windows the is the ntdll.dll that crashes.
    I have win7 64x, 8gb ram and Adobe is running on a SSD-hard drive.
    What to do? I have tried go directly to organizer instead of thru the welcome startup.
    Problemsignatur:
      Problemhändelsens namn:    APPCRASH
      Programnamn:    PhotoshopElementsOrganizer.exe
      Programversion:    10.0.0.0
      Programtidsstämpel:    4e70d150
      Namn på felmodul:    ntdll.dll
      Modulens version:    6.1.7601.17725
      Tidsstämpel för felmodul:    4ec49b8f
      Undantagskod:    c0000005
      Undantagsförskjutning:    00038dc9
      OS-version:    6.1.7601.2.1.0.256.48
      Språkvariant-ID:    1053
      Ytterligare information 1:    0a9e
      Ytterligare information 2:    0a9e372d3b4ad19135b953a78882e789
      Ytterligare information 3:    0a9e
      Ytterligare information 4:    0a9e372d3b4ad19135b953a78882e789

    Although this Adobe document regarding the "ntdll.dll" error is for Acrobat, it might help:
    http://kb2.adobe.com/cps/406/kb406965.html
    Ken

  • Premier pro crashes on startup every time

    Premier Pro CC 2014 crashes on startup every time. Operating system is OSX Yosemite 10.10. However, the problem begane with previous OS versions and the update did not fix the issue. CC is up to date as version 8.1.0. I've verified and repaired my startup disk as well and there are no issues with my machine. I am using:
    MacBook Pro (Retina, 15-inch, Early 2013)
    2.4 GHz Intel Core i7
    8 GB 1600 MHz DDR3
    Intel HD Graphics 4000 1024 MB
    I have a school project coming up and really need my CC to be working.
    Thank you so much for the help,
    William Durland

    The first thing I suggest is renaming three Premiere Pro folders at the following paths:
    /Users/<username>/Documents/Adobe
    /Users/<username>/Library/Application Support/Adobe
    /Users/<username>/Library/Preferences/Adobe

  • How to clear class cache upon applet startup?

    Hi,
    is there any HTML-tag to force the class loader cache being cleared upon applet startup?
    When I have recompiled the applet code, I am forced to clear the cache in the java plugin console. Is there any way to automate this?
    Thanx in advance

    i know what he's talking about, you have to restart the browser to get it to reload the class files. You may be able to set your browser cache to 1MB, but I think I did that and it didnt work, and I never found a solution. If you're trying to develop your application and you're testing it and this is becoming a problem, use appletviewer to test the applet. Once you have the finished product, make sure it works on IE and Netscape.

  • Why does my macbook give me the option to choose Macintosh HD or recovery HD at startup every time?

    Why does my macbook give me the option to choose Macintosh HD or recovery HD at startup every time?
    It never used to do that before until now.  How can I get it to just start up to the regular Macintosh HD again without clicking on the HD at startup?
    Im running a new macbook pro 13 inch with lion and everything is fully updated. 
    Thanks.

    Next time you boot, go here to make sure there is "something" selected:
    That's all I can think of...if nothing is selected in this box, strange things do happen

  • Firefox Beta 36 asks to set Firewall settings on startup every time

    Beta 36 for Firefox starting a few days ago asks to add an exception to the OSX firewall on startup each time. Even if I accept, and enter my admin credentials. Also if I add Firefox in the Firewall settings permanent. It never asked me before the latest beta.
    I am using 10.10.2

    ''FredMcD [[#answer-694455|said]]''
    <blockquote>
    Some problems occurs when your Internet security program was set
    to trust the previous version of Firefox, but no longer recognizes your
    updated version as trusted. Now how to fix the problem: To allow
    Firefox to connect to the Internet again;
    * Make sure your Internet security software is up-to-date (i.e. you are running the latest version).
    * Remove Firefox from your program's list of trusted or recognized programs. For detailed instructions, see
    '''[https://support.mozilla.org/en-US/kb/configure-firewalls-so-firefox-can-access-internet Configure firewalls so that Firefox can access the Internet.]''' {web link}
    </blockquote>
    Thanks for the reply but it is fixed now with a new version, beta 37.0
    The previous Firefox version did not resolve even after I removed and then added Firefox again to the Firewall exception list.

  • My Nike+ GPS app quits on startup every time! Help!

    I have the Nike+  GPS app, and it has worked fine for almost a year, but a few weeks ago it wouldn't let me log in to sync my runs anymore, and today it stopped working entirely, quitting on startup every time... any ideas what I can do to fix an app that quits on startup all the time?
    I've tried deleting it, and installing it again, but that just made me loose my saved runs, so I restored my phone from a backup, and now the app is there and should contain my data, but it quits on startup!
    Also tried resetting the phone...
    thanks for any help!

    I'd contact Nike. They were very responsive with a recent problem I had. I just used the contact information on their website.

  • HOWTO improve java.text.SimpleDateFormat.parse() performace?!!

    I am using SimpleDateFormat to parse the dates. The dates I am parsing have the time zone in format "+0500". So I am using the "z" format to parse it.
    After doing some CPU profile tests, it turns out that I am spending 33% of my entire processing time in parsing the time zones!!! Which is obviously too much time. Is there a way to improve performance on the time zone parsing? I made sure that only one SimpleDateFormat object is created when my application is initialized and I only use the parse() method repeatedly - so that the initialization cost would remain minimum.
    Also are there any other implementations of java.text.DateFormat which will perform better?
    Any help greatly appreciated.
    Thanks,
    Yash

    Are you using "z" or "Z". Upper case is right one.

  • Crashes at startup, every time

    Last night Logic Pro 7 (7.2.1 on OS X 10.4.7) started crashing on startup. I hadn't installed anything new to the system, and in fact the last time I had exited Logic, it was a clean exit. Now it's been 24 hours and I still can't get anywhere with it.
    I did do something new and different (for me) in between the successful exit and the first failed startup, but I'm not sure it's relevant: I noticed my project was getting too big to fit on a DVD-R, so I right-clicked the project folder and started creating an archive (ZIP file). Logic was not running at the time, though I think ITunes was, and it was playing a file imported from the Logic project in question. Anyway the progress indicator made it look like it was going to take a long time to make the archive, so I clicked the (X) to abandon the task for the time being. Logic hasn't run since.
    Here are all the things I've tried in the meantime:
    1. Upgraded OS to 10.4.8 and Logic to 7.2.3.
    2. Reinstalled Logic 7.2 from disc, then reupgraded from the net, trying it at each stage.
    3. Removed half the RAM, then the other half.
    4. Started Logic with control key down to get audio out of the equation.
    5. Moved all contents from Components folder to a temporary directory somewhere else.
    6. Upgraded BFD, since it was there. (Note: the other Plug-In I have is Ivory, in case that matters.)
    7. Started Logic by double-clicking on a near-empty project file, rather than just starting the app.
    In no case did the behavior ever change: it boots up normally, right up to the point where the arrange window is up there looking like it should. Then a dialog box appears indicating the crash. I've read the crash logs but I don't know what I'm looking at.
    Since the crash text is long, I've uploaded it to the web and anyone who knows how to interpret it can see it here:
    http://dt.prohosting.com/work/crash.txt
    I'm no Mac expert, but I have a strong feeling that the hardware is happy as a clam, and so is the O/S, and basically there's a configuration parameter or startup file somewhere that Logic doesn't like. Can someone lend a hand?
    Thanks in advance for any help. I sure like making music better than fixing computers!
    -DeeT

    Boot Logic without the CoreAudio driver enabled. After double-clicking your file hold CTRL. Logic will ask you if you want to boot CoreAudio. Answer no. The session will load with all of your plugs and VI's x'd out. Once the session is open and all of the MIDI dialogs etc. go away, open up the audio preferences, uncheck, then recheck enable. Logic will ask you if you want to 'Try Relaunch' of the CoreAudio driver. Hit yes.
    I've had a number of huge sessions that fall victim to very problem you're plagued with. I remember being quite angry when I couldn't boot after a clean close. This makes my sessions usable every time they are seemingly not.
    The other tip that this forum has helped in keeping things running smoothly is the 'reorganize memory' function (dbl-click beneath the tempo). This little ditty's resurrected sessions that refuse to bounce (you know the ones that crash then take 6 minutes to reopen.)
    Oh, and, oft times, the sessions that have trouble opening from scratch return to their normal state of content. The problem has something to do with Logic asking about MIDI connections after all of your VI's are loaded (I have a Tranzport that sits in the closet and never gets plugged in. When logic opens a session it automatically gets looked for. If the session's particularly big I can usually count on a crash.
    Hope it helps.
    Caulwell
    MacPro 3.0, Logic 7.2.3, ProTools HD2, Control|24, UAD1-e Mac OS X (10.4.6)
    Message was edited by: Caulwell
    Seems like I missed that pip about rebooting with the control key down. Sorry to call on redundancy.
    If I'm allowed to kick myself while I'm down, I wonder if when you boot without CoreAudio enabled do you get further in the load process than booting with CA enabled?

  • Java Applet taking long time to load

    Hi,
    I have a swing based Menu generator Applet. On clicking a Menubar item, I have called a new class [ MyEntry1 my1 = new MyEntry() ], which called one or more utility classes. My main applet (which I have used in <Aplpet> tag in .html file) is very small. But from that, I have called severel classes which are not very small.
    My Problem is, when i am trying to run my applet through IE 5, it is taking long time (180-250 secs.)
    Can anyone give me some tips, how to minimise the loading time? I am using Applet/Servlet/JDBC to develop a web application, which will be used remotely. Using Tomcat server. Any code snippets will be very helpfull for me.
    Thanking all gurus in advance.

    Hope someone can tell me why my Java takes so long to
    load when I go into a online game..I don't think anyone in here can. You could call your local computer repair-shop to have them take a look at your PC.

  • Startup problems--time for a new machine?

    I have an imac G5 that I bought last February. In the last few weeks I've been experiencing serious startup problems. When turned on, the screen goes gray and the lines and pixels fragment and shimmer. It takes a long time to go to the main screen and often the screen isn't stable and freezes. It takes me eight to ten startups to get the system stable.
    I've repaired disk permissions, repaired h-drive, reset Pram. Still a mess. My husband wants me to just get a new one and get something that is not an Apple this time. I'm resisting that.
    I don't want to lose all my data and I've backed up what I can but I'm worried the data is corrupted and if I load it on to a new machine, I will experience the same problems.
    Any advice? I'm not even sure if this is a hardware or software problem. I'm out of warranty so I am on my own, but I'm frustrated to be having these problems with such a new machine.
    Thanks for any advice,
    Cassandra
    iMac G5   Mac OS X (10.4.6)  

    Cassandra, in addition to Barbara's excellent suggestion: looking to see if you qualify for the program, please make sure that you have an external FireWire drive and clone your drive, (SuperDuper is an excellent choice for backing up, cloning and making scehduled backups).
    Let us know how you made out,
    Miriam
    Rev A 20" iMac G5, 15"iMac G4, 15"iMac G3 DVD Mac OS X (10.4.6)

  • Applet startup screen

    Hi I have a simple question,
    Is the startup screen of a Java Applet replacable by a custom image or somethimng like that?
    I mean the screen you get when the Applet is busy loading. The one with the Java logo in the center with a 'gray-rotating' 18-pointed star behind it.
    Kind regards,
    Klaas

    As part of the applet/object tag, no, I don't think you can.
    You could use DHTML to place a different image over the loading applet, and have the applet call back to the webpage, informing it to remove the load image.
    Or you can have the base loader very simple (just show image, and use a URLClassLoader to kick start the real applet).
    i think you can already get premade versions of this off the net

  • Improve Query Suggestions Load time

    How can I improve load time for Pre Query Suggestions on search home page when user start typing ?? 
    I notice it was slow in loading when I hit first time in the morning so I try to warm up by adding
    ""http://SiteName/_api/search/suggest?querytext='sharepoint' ""
    in to warm up script but even during the day time after hitting few times it is slower some times . Any reason ? 
    Do you think moving Query Component to WFE will do any help here?
    Pleas let me know - Thanks .  

    Hi,
    Query Suggestions should work at a high level overview is:
    • You issue a query within a Search Center site and get results..
    • When you hover over or click a result.. this gets stored as a “RecordPageClick” method and will be stored in the Web Applications W3WP process…
    • Every five minutes ( I believe ) this W3WP will flush these Recorded Page Clicks and pass them over to the Search Proxy…
    • This will then store them in a table in the SSA ( Search Service Application ) Admin DB
    • By default, once a day, there is a timer job, Prepare Query Suggestions, that will run
    • It does a check to see if the same term has been queried for and clicked at least 6 times and then will move them to another table in the same DB..
    • If there are successful queries\clicks > 6 times for a term, and they move to the appropriate table, then when you start to type a word, like “share”
    • This will fire a “method” over to the Search proxy servers called “GetQuerySuggestions” and will check that Admin DB to see if they have any matches..
    • If so, then it will show up in your Search Box as like “SharePoint” for a suggestion…
    Other components involved with the Query Suggestions:
    Timer Jobs
    Prepare query suggestions                   Daily
    Query Classification Dictionary Update for Search Application Search Service Application       Minutes
    Query Logging                    Minutes
    Database
     MSSQLogQuerySuggestion (SearchDB)  This gets cleaned up when we run the timer job
     MSSQLogQueryString (SearchDB)  Info on the Query String
     MSSQLogSearchCounts (SearchDB)  Info on the click counts
     MSSQLogQuerySuggestion Looks like this may be where the hits for suggestions are stored
    So the issue might related to timer job, database, connection between SharePoint server and SQL server. There is  a similar case caused by DistributedCache.
    If you move query component on to another sever, this may improve the process related to Search service, however, it may affect the performance due to networking.
    Please collect verbose ULS log per steps below:
    Enable Verbose logging via Central Admin> Monitoring> Reporting>Configure diagnostic logging(You can simply set all the categories with Verbose level and I can filter myself).
    Reproduce the issue(Try to remove SSRS).
    Record the time and get a capture of the error message(including the correlation ID if there is). Collect the log file which is by default located in the folder:  <C:\Program files\common files\Microsoft Shared\web server extensions\15\LOGS>.
    Stop verbose logging.
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected].

  • A script/applet to indicate Time Machine Activity?

    Hi,
    I have just started using the Time Machine, and believe that it should have an activity indicator somewhere unobtrusively (perhaps in the dead 4 mm to the right of the Spotlight "magnifying glass" icon?). I am using a 500Gb LaCie drive for back-up, connected by a FW800 cable to my MacBook Pro. At times, I'd like to pack it up and go, but must open the System Preferences first, to make sure that the disk is not in use by the Time Machine at the very moment. The indicator should also offer a way of halting the back-up, in case I need to eject the back-up disk, pack up the MBP and go. (I do carry it around to all meetings and such during my work-day!)
    I have posted a similarly-worded suggestion in Apple's feedback site. Until they do implement such a thing, does anyone know of an existing script or applet (or can write one) that would offer this?
    Thanks, Tristan

    First, it's great you have submitted this suggestion to Apple FeedBack. That is the only real way to get Apple's attention. More people should adopt this approach for suggestions like this.
    1. TM backup activity is shown in two places. It's shown by two rotating arrows in the Finder's sidebar to right of the TM backup volume. The second place is the TM Pref panel itself.
    2. The TM backup can be stopped by clicking the "x" icon to right of the backup progress bar in the TM Pref panel.
    3. If you pack up your MBP (i.e., shut it down) while TM backup is in progress a warning message window will be displayed and you can either quit the backup or let it complete.
    4. One could also use Activity Monitor and simply Quit the backupd process - but don't recommend this.
    5. I'm unaware of any readily available script or drop-on Applet for doing what you've requested.
    The above techniques shouldn't take too much effort on your part prior to packing up your MBP.
    Good luck....

Maybe you are looking for