Why is Java startup so slow?

Does anyone know why Java startup is so slow? Compared to other interpreted languages like Javascript and Perl, they run much faster. And can someone get technical with me? (But without pointing me to the JVM specification, which I don't understand.) It use to take longer for me to load Mozilla0.9 than a Java applet, but now Mozilla1.3 loads faster than a Java applet.

"Connector" is a rather ill-defined way of describing
it, which is why I chose the word -- to easily deflect
further inquiries to quantify. ;>
In a slightly more specific way, on start-up JVM needs
to (not necessarily in order, 'cause I don't know the
exact order) at the very minimum:
1. Allocate memory.
2. Query OS for a minimal set of needed facilities.
3. Allocate memory. Allocate allocated memory
(internally, for use by itself and the application).
4. Map the OS facilities to Java facilities. (This is
what I meant by "connectors").
5. Allocate memory. Allocate allocated memory.
6. Set up the internal control -- security managers,
thread scheduler, gc, classloaders, calling stacks,
virtual lookup tables, etcetc.
Some of the above don't apply to applets.
Thanks for the tip on 1.4.2beta. I'll give it a try. I
assume you meant startup speed?All this is almost instant you realize. The real time it takes to start your program is that it takes much longer for Java classes to be loaded.
The startup time is proportional to the number of classes you need to load to get your program running. If you only are writing a simple, console based java program the startup time will be much less then if you load a Swing application. Swing by itself is a huge number of classes, and then you have to load your classes. So it can take awhile.
All the things you mention, every program has to do and the code that the JVM uses must be written in C or some other systems language.
One reason at least on my machine that java startup is slow is that I have a slow hard drive. On my home machine, java is much faster around twice as fast to startup, but the processor and ram are not twice as good. I think that it's because the hard drive is faster. Because most of the time it's waiting for data from the disk and the Java enviroment has the disadvantage that it's very large on disk.

Similar Messages

  • 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 is Java slow or causing Lion to be slow?

    I did a fresh install of Lion and installed all the needed updates including the APPLE java update plus the malware remover that came with it. Since then a lot of Java games are SLOW. I'm not sure if it's actually java or a Lion update that's causing this issue. Someone suggested I remove my printer software but I dont remember that causing issues before the fresh install. It seems it happened after Apple updates.
    Any help is appreciated.
    Thanks

    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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Why start my firefox to slow. Click on ico, and wait to 58 sec to start.

    why start my firefox to slow. Click on ico, and wait to 58 sec to start.
    my computer
    Alkalmazás alapadatai Név Firefox Verzió 8.0.1 User Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0.1) Gecko/20100101 Firefox/8.0.1 Profilkönyvtár A profilkönyvtárt tartalmazó mappa megnyitása Engedélyezett bővítmények about:plugins Build konfiguráció about:buildconfig Összeomlás-bejelentés about:crashes Kiterjesztések Név Verzió Engedélyezve Azonosító Free YouTube Download (Free Studio) Menu 1.0.7 true {ACAA314B-EEBA-48e4-AD47-84E31C44796C} Skype Click to Call 5.6.0.8442 false {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} Splashtop Connect 1.1.8.4 false {91c612bf-2a7a-48b8-8c8c-6de28589b7a0} Splashtop Connect Companion 1.1.8.4 false {91c612bf-2a7a-48b8-8c8c-6de28589b7a1} uTorrentBar Community Toolbar 3.5.0.12 false {bf7380fa-e3b4-4db2-af3e-9d8783a45bfc} Yoono 7.5.0 false {d9284e50-81fc-11da-a72b-0800200c9a66} Módosított beállítások Név Érték browser.places.smartBookmarksVersion 2 browser.startup.homepage http://www.kapu.hu/ browser.startup.homepage_override.buildID 20111120135848 browser.startup.homepage_override.mstone rv:8.0.1 extensions.lastAppVersion 8.0.1 network.cookie.prefsMigrated true places.database.lastMaintenance 1324120601 places.history.expiration.transient_current_max_pages 257614 privacy.sanitize.migrateFx3Prefs true security.warn_viewing_mixed false Grafika Adapter leírása NVIDIA GeForce GTS 450 Gyártóazonosító 10de Eszközazonosító 0dc4 Adapter memóriája 1024 Adapter illesztőprogramjai nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um Illesztőprogram verziója 8.17.12.5922 Illesztőprogram dátuma 7-31-2010 Adapter RAM (GPU #2) Unknown Adapter illesztőprogramjai (GPU #2) Unknown Direct2D engedélyezve true DirectWrite engedélyezve true (6.1.7601.17563) ClearType-paraméterek Nem találhatók a ClearType-paraméterek WebGL-megjelenítő Google Inc. -- ANGLE -- OpenGL ES 2.0 (ANGLE 0.0.0.686) GPU segítségével gyorsított ablakok 1/1 Direct3D 10

    The only thing I can imagine: it's a [https://addons.mozilla.org/en-US/firefox/personas/ Persona].
    Tools->Add-ons->Themes
    Here should be the persona (lightweight theme)
    and a button "Remove"
    Click it (button Remove), and it (Persona, this mix of colors) should go away instantly.
    Does it help you?

  • My computer is extremely slow, with the rainbow wheel appearing with every click. It is one year old, and has all the most recent updates. Why is it so painfully slow?

    My computer is extremely slow, with the rainbow wheel appearing with every click. It is one year old, and has all the most recent updates. Why is it so painfully slow?

    That sounds horrible. There are a number of reasons it could occur.
    The first thing to do is ensure you have adequate backups, because what you describe can be a symptom of impending disk failure.
    To help determine the possible causes of this behaviour read the following. None of what follows is intended to fix anything, but it will provide the additional information required to advance troubleshooting. There are four separate parts to it; read everything first.
    Boot OS X Recovery by holding ⌘ and r (two fingers) while you start your Mac. At the Mac OS X Utilities screen, select Disk Utility. Select your startup volume (usually named "Macintosh HD") and click the Repair Disk button. Describe any errors it reports in red. If Disk Utility reports "The volume Macintosh HD appears to be OK" in green then you can be reasonably (though not completely) assured your hard disk is in good working order.
    When it finishes restart your Mac and test again for operation. If it's still not behaving as you expect it should, please post the results of EtreCheck in accordance with the following instructions:
    Apple Support Communities contributor etresoft wrote a very useful app to quickly gather certain system information that may help point to a cause of this problem. Read about it here. It contains a link to download EtreCheck. Don't download it from anywhere else (such as may be found by following the results of an Internet search).
    Click Open - etresoft contributes to this forum frequently and can be considered a trustworthy developer.
    It will take a moment to run as it collects its data.
    Copy and paste its output in a reply.
    Do not be concerned about anything that says "Problem" or “failed” or anything else that may appear in red.
    EtreCheck was designed to remove any personal information (such as your computer's name and serial numbers) but if you see anything that looks like an email address or any other personal information that should not be divulged to others, please delete or obscure that information when you post the reply.
    When you are finished with EtreCheck, quit the program. It occupies very little space, and you can keep it or drag it to the Trash as you wish.
    After completing the above please determine if the problems also occur in "Safe Mode":
    Safe Mode or "Safe Boot" is a troubleshooting mode that bypasses all third party system extensions and loads only required system components. Read about it: Starting up in Safe Mode
    You must disable FileVault before you can start your Mac in Safe Mode.
    Starting your Mac in Safe Mode will take longer than usual, graphics will not render smoothly, audio is disabled on some Macs, and some programs (iTunes for example) may not work at all.
    Merely starting your Mac in Safe Mode is not intended to resolve the problem, it's to observe its performance without certain additional components.
    To end Safe Mode restart your Mac normally. Shutdown will take longer as well.
    System performance problems for reasons that cannot be isolated to any other cause justify an SMC reset. Be sure to read the procedure carefully and follow all the steps exactly as written, even if they seem inapplicable or trivial.

  • Java 2D very slow with Windows XP

    Hi all!
    I'm writing an isometric game engine using Java 2D API, in full-screen exclusive mode and using all the advantages of the new VolatileImage class. The engine is almost finished, I'm testing it putting some animated players on screen and showing the frame rate of the engine. Everything went right, frame rate was very high in Linux and Windows 98/Me. But when I try to run the engine on Windows XP I can only get 5 or 6 fps!!!! And I don't know why!! It seems that XP makes Java run very slow... at least when using Java2D...
    Please, anyone knows why the performance is reduced??? Is there a new JRE release for Windows XP?? I'm using JDK 1.4.1.
    Thanks for your help.

    If you're using the Fullscreen API, then you're using BufferStrategy, thus you shouldn't use VolatileImages, it does this for you in the background. You shouldn't create any buffers, simply use the one provided. I'm assuming your problem probably lies in transparency. I've made an isometric engine using the fullscreen API that has run with complete 60fps page flipping. I would assume your bottle-neck lies in:
    Transparencys (These are very slow, there is a way to make a bitmask, much like you'd do in DirectX)
    Dynamic Memory allocation/Alpha rendering in your animation loop. (You need to allocate ALL of the colors you're going to use, and avoid using an alpha component if you want to avoid the VM getting bogged down by the garbage collector because you're allocating 30 Color objects a second).
    I made a Color object that was some what hacked together that has methods to allow you to access it's values for doing this kind of thing, allocating your scheme before hand is an easier approach.
    The method that performs the page flipping is a BLOCKING method, so you should orient your drawing before it, and not assume it's simply placing a request, like repaint does.
    -Jason Thomas.

  • Why is my machine so slow I feel the hd all- ways running

    Why is my machine so slow I feel the hd all- ways running?

    Re: Why is my machine so slow I feel the hd all- ways running 
    Apr 16, 2014 9:05 PM (in response to stevejobsfan0123)
    Hardware Information:
              iMac (27-inch, Mid 2011)
              iMac - model: iMac12,2
              1 3.1 GHz Intel Core i5 CPU: 4 cores
              4 GB RAM
    Video Information:
              AMD Radeon HD 6970M - VRAM: 1024 MB
    System Software:
              OS X 10.9.2 (13C64) - Uptime: 0 days 0:31:35
    Disk Information:
              WDC WD1001FALS-403AA0 disk0 : (1 TB)
                        EFI (disk0s1) <not mounted>: 209,7 MB
                        disk0s2 (disk0s2) <not mounted>: 999,35 GB
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              OPTIARC DVD RW AD-5690H
    USB Information:
              Apple Computer, Inc. IR Receiver
              Apple Internal Memory Card Reader
              HP Deskjet 3050 J610 series
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Inc. FaceTime HD Camera (Built-in)
    FireWire Information:
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Launch Daemons:
              [System] com.adobe.fpsaud.plist 3rd-Party support link
              [System] com.google.keystone.daemon.plist 3rd-Party support link
              [System] com.microsoft.office.licensing.helper.plist 3rd-Party support link
              [System] com.oracle.java.Helper-Tool.plist 3rd-Party support link
              [System] com.oracle.java.JavaUpdateHelper.plist 3rd-Party support link
    Launch Agents:
              [System] com.google.keystone.agent.plist 3rd-Party support link
              [System] com.oracle.java.Java-Updater.plist 3rd-Party support link
    User Launch Agents:
              [not loaded] com.adobe.ARM.[...].plist 3rd-Party support link
              [not loaded] com.microsoft.LaunchAgent.SyncServicesAgent.plist 3rd-Party support link
    User Login Items:
              Moveslink2
              iTunesHelper
              VLCStreamer
              Google Drev
              MenuTab for Facebook
              Garmin ANT Agent
              RemoteMouse
              AdobeResourceSynchronizer
    Internet Plug-ins:
              o1dbrowserplugin: Version: 5.2.4.18058 3rd-Party support link
              OVSHelper: Version: 1.1 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
              Flip4Mac WMV Plugin: Version: 2.4.0.11 3rd-Party support link
              AdobePDFViewerNPAPI: Version: 11.0.06 - SDK 10.6 3rd-Party support link
              FlashPlayer-10.6: Version: 12.0.0.77 - SDK 10.6 3rd-Party support link
              Silverlight: Version: 5.1.20913.0 - SDK 10.6 3rd-Party support link
              Flash Player: Version: 12.0.0.77 - SDK 10.6 Outdated! Update
              QuickTime Plugin: Version: 7.7.3
              googletalkbrowserplugin: Version: 5.2.4.18058 3rd-Party support link
              SharePointBrowserPlugin: Version: 14.3.6 - SDK 10.6 3rd-Party support link
              AdobePDFViewer: Version: 11.0.06 - SDK 10.6 3rd-Party support link
              GarminGpsControl: Version: 4.0.4.0 Release - SDK 10.6 3rd-Party support link
              JavaAppletPlugin: Version: Java 7 Update 51 Outdated! Update
    Safari Extensions:
              Pinterest: Version: 1.0
              Add To Amazon Wish List: Version: 1.8
              LinguaLeo: Version: 1.0.5
              MLB.com Toolbar: Version: 1.1
    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
    3rd Party Preference Panes:
              DivX  3rd-Party support link
              Flash Player  3rd-Party support link
              Flip4Mac WMV  3rd-Party support link
              Java  3rd-Party support link
              VLC Streamer  3rd-Party support link
    Old Applications:
              /Library/Application Support/Microsoft/MERP2.0
                        Microsoft Fejlrapportering:          Version: 2.2.9 - SDK 10.4 3rd-Party support link
                        Microsoft Ship Asserts:          Version: 1.1.4 - SDK 10.4 3rd-Party support link
              SLLauncher:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
              /Applications/Microsoft Office 2011/Office
                        Microsoft Graph:          Version: 14.3.6 - SDK 10.5 3rd-Party support link
                        Microsoft Database Utility:          Version: 14.3.6 - SDK 10.5 3rd-Party support link
                        Microsoft Office Overførselscenter:          Version: 14.3.6 - SDK 10.5 3rd-Party support link
                        Microsoft Office Påmindelser:          Version: 14.3.6 - SDK 10.5 3rd-Party support link
                        My Day:          Version: 14.3.6 - SDK 10.5 3rd-Party support link
                        SyncServicesAgent:          Version: 14.3.6 - SDK 10.5 3rd-Party support link
                        Open XML for Excel:          Version: 14.3.6 - SDK 10.5 3rd-Party support link
                        Microsoft Alerts Daemon:          Version: 14.3.6 - SDK 10.5 3rd-Party support link
                        Microsoft Database Daemon:          Version: 14.3.6 - SDK 10.5 3rd-Party support link
                        Microsoft Chart Converter:          Version: 14.3.6 - SDK 10.5 3rd-Party support link
                        Microsoft Clip Gallery:          Version: 14.3.6 - SDK 10.5 3rd-Party support link
              /Applications/Microsoft Office 2011
                        Microsoft PowerPoint:          Version: 14.3.6 - SDK 10.5 3rd-Party support link
                        Microsoft Excel:          Version: 14.3.6 - SDK 10.5 3rd-Party support link
                        Microsoft Outlook:          Version: 14.3.6 - SDK 10.5 3rd-Party support link
                        Microsoft Word:          Version: 14.3.6 - SDK 10.5 3rd-Party support link
                        Microsoft Document Connection:          Version: 14.3.6 - SDK 10.5 3rd-Party support link
              Microsoft AutoUpdate:          Version: 2.3.6 - SDK 10.4 3rd-Party support link
                        /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
              Solver:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Applications/Microsoft Office 2011/Office/Tilføjelsesprogrammer/Solver.app
              Wondershare Video Converter Ultimate:          Version: 1.5.4 - SDK 10.5 3rd-Party support link
    Time Machine:
              Skip System Files: NO
              Mobile backups: OFF
              Auto backup: YES
              Volumes being backed up:
              Destinations:
                        Data [Network] (Last used)
                        Total size: 2
                        Total number of backups: 54
                        Oldest backup: 2013-09-16 11:44:43 +0000
                        Last backup: 2014-04-16 17:42:09 +0000
                        Size of backup disk: Excellent
                                  Backup size 2  > (Disk size 0 B X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                  10%          mds
                   1%          EtreCheck
                   1%          WindowServer
                   0%          Safari
                   0%          Moveslink2
    Top Processes by Memory:
              213 MB          Finder
              209 MB          Safari
              193 MB          MenuTab for Facebook
              143 MB          com.apple.WebKit.WebContent
              119 MB          com.apple.IconServicesAgent
    Virtual Memory Information:
              311 MB          Free RAM
              1.59 GB          Active RAM
              1.30 GB          Inactive RAM
              823 MB          Wired RAM
              602 MB          Page-ins
              0 B          Page-outs

  • Java Startup Problem

    My wife and I each have a MacBook Pro. Her's is first version of the Intel MacBook Pro 15 inch. Mine is a 4 month old 17 inch version.
    Both are updated to the latest version of Tiger, permissions repaired, all seems fine.
    Her offices uses a web browser to get to their network remotely, and that is enabled by using Juniper's Network Connect.
    My system gets there just fine, no problems at all, Java loads and that loads the Network Connect and I am in no problem.
    However, on the 15 inch when the 'Launch Network Connection' link at the web site is selected the java coffee cup with the arrows around it comes up and it never progresses further - it just gets stuck there. The 17inch only pauses with the java window up for a few seconds before its on its way, the next screen being the Juniper "Network Connect" app window.
    Anyone have any ideas why the 15 inch MacBook Pro is having problems? It does not seem to have any other problems, but there is nowhere that I go that it attepmts to bring up this Java startup window.
    Thanks

    But first, I don't knowingly run anything
    specifically calling on java to load - other than
    this one thing. Is there something I can
    specifically test or go somewhere and try online.
    Well, here's one I wrote long ago:
    http://philsmith.com/html/phil/LetItRide/LetItRide.html
    You could see if that loads.
    Java is a slightly different concept. You have a "virtual machine" which runs on most platforms. That "virtual machine" executes bytecode compiled into a "jar" file. The idea is that the identical bytecode will work on many platforms, as long as the virtual machine is running.
    There have been major updates to java over the years, sometimes new bytecode won't run on old virtual machines. I guess I wanted to see if you had the same virtual machine on both your Macs. You probably do, but maybe that's the answer.
    Another possibility is that since the virtual machine makes the call back to get the jar file, there's a certification or communication error. But this really sounds like the virtual machine isn't loading.
    On the 'checking the installed plug-ins under the
    help menu, is that the Safari help menu (I see those
    there) or is it another app menu to check for plug
    ins. Under the Safari help menu there is no category
    "x-java-applet & vm" on the 17
    which is the one that runs fine...the 15 is not
    available at the moment.
    Yes the Safari help menu shows installed plug-ins. Perhaps it isn't up-to-date. We know the plug-in is enabled, since it loads and starts. Another possibility is to try Opera. It has a java console, and hopefully an error message will pop up there. I just tried it and couldn't get the console to display, but maybe that's because there was no error. Sometimes messages are sent to the console log. Check the logs for errors, might use the keywords MRJ (Mac Runtime for Java).

  • Why is Crash Reporter so slow to send reports?

    Hello. Crash Reporter from my MacBook Pro with a cable modem has always been very slow to report crashes after I push the Close Firefox button -- often it takes five minutes or more to complete. I fear that I often don't have time to wait or doubt that the tool and server are "working," so I close the tool.
    That means I have maybe 20 to 30 pending reports.
    Lately many are related to startup, so they could be worthwhile.
    Is there a way to bulk submit, or should I just delete them?

    Stu Ducklow
    Why is my finder so slow to update. For example, if I
    download a file (using Safari), I can't find it on
    the desktop. If I use Find at the Finder level, it
    says it's there, but I can't see it.
    Same thing happens with Mail, trying to attach a PDF
    I just made. Mail can't see it.
    I love all the wondrous glitz of OSX, but wouldn't it
    be nice if it could do the basic stuff as well as
    System 6? At the rate Apple's going, we'll probably
    get a breathless announcement about a spanking-new OS
    called Snail, which doesn't do anything but look
    pretty.
    Stu,
    Did you ever get an answer to this? My finder is pathetically slow to update, a minor irritation a dozen times a day. System 9 never had this problem. Is there a way to get my expensive computer to do this simple task? Is there any news on this?
    thanks,

  • Need a lot of custom JComponents, but Java just too 'slow', other Solution?

    Hi folks,
    first of all i'll try to explain my problem (although my english is quite bad)
    We're programming a tool for visualising graph algorithms (df search, strong connected components, transitive reduction etc.) For that, we got a drawing area (derived from JLayeredPane) which contains the Nodes and the Edges of a graph (for all that don't know what a graphs is, just imagine these nodes as numbered circles, and the edges as directed lines from one node to another).
    Both parts (Nodes and Edges) are derived from JComponent, because a) need MouseEvents on these Components and b) we need the ability to add them to a container (like JLayeredPane)
    An absolute requirement is that you can directly click on the edges (to mark them, or delete them etc)
    Another point which needs to be mentioned, the edges maintain a (invisible) polygon which lies around their line, this polygon is sensitive for mouseEvents.
    Now there are two main problems:
    * all these edges have (due to JComponent) (possibly) huge invisible rectangles (the only thing that really matters is the line from one corner of this rect. to the other) ...so if i got lets say a graph with 10.000 edges, there are a lot of edges that overlap (nearly 10.000 :) ) ... but only the Edge-object on top receives the MouseEvent (but perhaps the user wanted to cklick a edge that lies below the top-edge!) .. at the moment, the program looks at all edges below that which received the MouseEvent and checks wether the 'mouse'click' hits a polygon, If it does, the top edge dispatches the MouseEvent to that edge. (furthermore, due to the depth-order in a Layer of a JLayeredPane, we only need to look at all edges that are really below the egde that received the mouseEvent)
    This all works great for 'small' numbers of edges (approximately 1000-2000) but with a rising number of edges this attempt gets slower and slower (it takes 1-3 seconds to evaluate a single mouseclick on a Sun Ultra 5/333)
    * the bigger problem is, that if i got 10k+ JComponents in a Container Java gets really slow, just adding these 10k JComps. (to the JLayeredPane) takes some minutes?! Furthermore java consumes up to 200+ MB main memory in this situation.
    One solution we are currently thinking about is to implement these edges as 'pure graphics'-objects (for example the Container just draws all edges).. this probably solves problem # 2 but # 1 gets even worse (no depth-order, some more coordinates hassle)
    So, i hope someone can give me a hint for this problem or someone has had a similar problem before and has a good solution? (if the problem isnt clear, just ask)

    I worked on an application once that had a similar structure as yours, but we were only scaling up to about 1000-2000 components. The problem that we identified (and that you have, no doubt, also identified) is that you are searching all of the child components on every hit test/overlap test. What we did was to subdivide out outermost container so that it had a couple of dozen children, each of which then parented some of the original child components: this cut our search space for every hit test dramatically. We had the advantage of having collections of child componenents that we knew would not overlap so our first level containers did not overlap -- you may need your first level containers to overlap, but even with this, you'll still be able to much more quickly identify components in the immediate region that should be checked individuall.

  • Why is my ipad2 really slow after updating to IOS 6.1.2

    Why is my ipad2 really slow after updating to IOS 6.1.2

    Try this.
    Quit all apps completely and reboot the iPad. Go to the home screen first by tapping the home button. Double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Java startup property for Adobe document services

    Hi guyz, since a while i'm facing a random issue when i generate pdf. All the configuration has been done, but when look at in configtool i see a missing parameter:
    -Dorg.omg.PortableInterceptor.ORBInitializerClass.com.sap.engine. services.ts.jts.ots.PortableInterceptor.JTSInitializer
    Because it's in the recommendation parameter guide i guess it should be in, but someone can tell what those parameter deals about ?

    Hi,
    Yes, this service is mandatory if you want to use Adobe document service. It should be set for all server nodes in the config tool.  This is Java startup property for Adobe document services. Without this parameter adobe service will not start as a result you will not be able to open adobe documents.
    Thanks
    Sunny

  • Why is the refresh rate slower in lab mode? photoshop cc 2014

    hi
    why is the refresh rate slower in lab mode?
    for example i load an image , rgb , ad an adjustament layer -> curve and i start to play with curve -> the refresh is instantaneous (i mean the image become more dark or lighter instantaneous )
    but if i load an image -> conver in lab mode , the refresh rate is slower
    i tried cs6 too, same behavior
    ps how can i have an email to notify me that someone answer to this discussion?
    thanks

    hi
    there is nobody can check it?
    under windows 7 or 8
    thanks

  • Why is Bridge CC so slow?

    I'm trying to figure out a way to diagnose why Bridge CC is so slow. I regularly use programs like Photoshop, Lightroom and Premiere and don't notice any kind of inapropriate lag or delays at all. However, when working in Bridge it just feels slow. Opening menus occasionally just hangs for seconds on end before dropping down. Thumnails from a gallery I've previously viewed can take upwards of 10 seconds to appear after opening the software. But the most noticeable and repeatable issue comes when trying to select more then one image files. CTR-Clicking a second (or however many additional files) can take anywhere from 5-8 seconds to happen. This, more then anything else, is making bridge unusable.
    What should I do?

    I just bought a new computer with with Windows 8.1 and plenty of all the hardware that make Adobe CC work great. Unfortunately Bridge had the sluggish slow response that seems to be haunting many people. I read through the adobe support and forums and found a number of good places to look but nothing that outlined a working solution for me. I tried all this http://helpx.adobe.com/bridge/kb/troubleshoot-errors-freezes-bridge-windows.html and nothing worked. I was facinated to find people were able to create new account and found the unresponsiveness went away. I also payed close attention to the fact that network drives might cause problems. Not being familiar enough with Windows 8.1 I looked for traditional XP network drives and found that wasn't the problem. But yesterday I realized I have "Libraries" that point to my windows 8.1 laptop and one that pointed to SkyDrive. The settings transfered to my new PC when I used the same login information from my laptop. So I went in to the libraries and removed all the links that went to my laptop and skydrive and Bridge worked perfectly as would be expected on a new PC. So check your libraries. This might also explain why some people found that a new account solved the problem.
    Open the "desktop"
    Open "file explorer"
    Go to the "view" tab
    Click on "navigation pane" in the ribbon
    Select "show libraries"
    Expand "Libraries" in the folder view
    Check the path to every folder in the list
    Right-click and choose "remove location from library" if anything points to another computer or SkyDrive
    Obviously I can't say it's everyone's problem, but it worked for me. I hope it helps someone. Good luck everyone.

Maybe you are looking for