This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
|Summary:||NetBeans extremely slow when building from Windows|
|Issue Type:||DEFECT||Exception Reporter:|
|Attachments:||The self profiling results|
Description scanti 2013-09-19 08:44:06 UTC
We have an RCP application with 100+ modules, if we compile it on Linux it requires 1 minute and 30 seconds, if we compile it on Windows it can be up to 10 times slower . It is really annoying. I have also tried to launch ANT from the command line and with the quiet options but it has small effect.
Comment 1 Martin Kozeny 2013-10-14 07:16:35 UTC
Could you please provide nps snapshot? Thanks.
Comment 2 scanti 2013-10-14 08:14:54 UTC
Created attachment 141050 [details] The self profiling results
Comment 3 Martin Kozeny 2013-10-14 11:37:06 UTC
As I can see from the snapshot, there is very time consuming ant compilation so it could be maybe more ant issue. But parsing project.xml file and computing classpath also take much time.
Comment 4 Milos Kleint 2014-01-30 08:57:02 UTC
same ANT_OPTS? does increasing the memory specs for windows help? does turning off your antivirus help? in my personal experience building on windows is indeed slower. I believe it to be IO related (having your IDE opened while the build is running doesn't help) But the comparison for my setups is not fair, I have an iMac at home building all of nb.org in around 20 minutes. At work I have an oracle issued dell notebook where just the java cluster build can take 40-60 minutes. the profiling snapshot supports my explanation, when drilled down, often java.io.File or JarFile native methods are logged to take time. Please note however that running the build within the IDE can be very specific in terms of individual executions. the ant build executes in IDE JVM so often preexisting conditions (heap memory left, paralel thread execution etc) influence the build. also please make sure that you have jdk 1.7_21+, the older versions appeared to trigger a lot of slowness reports on windows that we are no longer seeing.
Comment 5 Martin Kozeny 2014-07-24 13:35:26 UTC
As added fork option to CustomJavac (see https://netbeans.org/bugzilla/show_bug.cgi?id=245636), you can use javac.fork=true property in project.properties file of your modules in order to take build it in separate process in order to increase performance. Please try it and let me know if it helps. Thank you.
Comment 6 scanti 2014-07-26 17:21:03 UTC
Thanks for the hint but it did not help.