Slow file dialog in Netbeans (and other Java apps) ...and the amazing solution

The opening of the file dialogs of most of my Java apps (excluded JEdit, Eclipse) became really slow (10 seconds). I supposed the network-drives, virus-scanners etc. to cause the problem. It turned out, that Jars/Zips at the desktop (on windows...), cause the slow-down. After cleaning my desktop, netbeans 5.5/6 and other Java apps became fast again.

Like in real life, mess on a desktop slows down the performance...

[Thanks michael bien for the solution, I asked many people at workshops, projects, conferences, but my young brother knew the solution :-)]


NEW: Online Workhop Effective WebApps without Frameworks is also coming to: MUC Airport.

Airport MUC workshops: Web (SPA, PWAs, Offline, Desktop, Mobile) Applications Essentials and Effective Web Applications. No migrations. #usetheplatform

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

Comments:

hi there,

I knew that junk on windows desktop(which I'm prone to once in a while) can make repainting and other stuff slow but did not know that FILE dialogs get slowed down.

nice tip.

BR,
~A

Posted by anjan bacchu on July 29, 2007 at 08:08 PM CEST #

Actually, it is jdk6u2 problem.

Posted by Qil.Wong on July 30, 2007 at 07:19 AM CEST #

Actually, it is jdk6u2 problem.

Posted by Qil Wong on July 30, 2007 at 07:20 AM CEST #

Qil,

really? I think I had it before jdk16u2.
Do you have any reference?

thanks for the comment

Posted by Adam Bien on July 30, 2007 at 10:55 AM CEST #

see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5050516

Posted by Thomas Hart on July 30, 2007 at 03:40 PM CEST #

Thank you thomas,

btw. comes the domain-name kleinmantara from a MTB brand? If yes, my domain should be kleinattitude.de :-),

regards,

adam

Posted by Adam Bien on July 30, 2007 at 03:57 PM CEST #

Hi Adam, yes you can see it here http://gmt-biker.de/2007/07/30/klein-mantra-foto/

Posted by Thomas Hart on July 30, 2007 at 04:07 PM CEST #

Five years later, for anyone googling for this issue, I found a possible solution.
My web host cpanel has a tool to access my remote host's folder through an icon on my Windows 7 desktop. Opening the file properties for that shortcut it shows something like: \\host34.xxxxx.com@SSL@2078\DavWWWRoot
Trying to open a file in NetBeans was a pain, I had to wait like 30-45 seconds until the dialog popped up.
I deleted that icon and now it opens immediately as expected.
I found that using SysInternals ProcMon system monitoring tool. http://technet.microsoft.com/en-us/sysinternals/bb896645
NetBeans process stopped for a while trying to seek this file.
Regards.

Posted by Ivan Ferrer on April 03, 2013 at 03:45 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
Online Workshops
realworldpatterns.com
...the last 150 posts
...the last 10 comments
License