Compilation became incredibly slow

If you think Java might be the problem, you can see which version of Java is being used by running this from a command line in your arduino directory:

arduino --l4j-debug

This will create a launch4j.log file in your arduino directory.

It should look something like this:

CmdLine:    C:\arduino\arduino-1.0.4\arduino.exe --l4j-debug
WOW64:      yes
Working dir:    C:\arduino\arduino-1.0.4\.
Bundled JRE:    java
Check launcher: C:\arduino\arduino-1.0.4\java\bin\javaw.exe (OK)
Add classpath:  lib\pde.jar
Add classpath:  lib\core.jar
Add classpath:  lib\jna.jar
Add classpath:  lib\ecj.jar
Add classpath:  lib\RXTXcomm.jar
Launcher:   C:\arduino\arduino-1.0.4\java\bin\javaw.exe
Launcher args:  -Xms128m -Xmx128m -classpath "lib;C:\arduino\arduino-1.0.4\java\lib\tools.jar;lib\pde.jar;lib\core.jar;lib\jna.jar;lib\ecj.jar;lib\RXTXcomm.jar" processing.app.Base
Args length:    164/32768 chars
Exit code:  259

Look for the lines that start with: Bundled JRE: Check launcher: Launcher:

This will help indicate if you are using the Arduino bundled Java or your installed Java.

Hi Louis, Thanks for the pointer. Here's what I see:

CmdLine:    C:\Users\TerryKing\Desktop\ArduinoDev\arduino-1.0.5\arduino.exe --l4j-debug
WOW64:      yes
Working dir:    C:\Users\TerryKing\Desktop\ArduinoDev\arduino-1.0.5\.
Bundled JRE:    java
Check launcher: C:\Users\TerryKing\Desktop\ArduinoDev\arduino-1.0.5\java\bin\javaw.exe (OK)
Add classpath:  lib\pde.jar
Add classpath:  lib\core.jar
Add classpath:  lib\jna.jar
Add classpath:  lib\ecj.jar
Add classpath:  lib\RXTXcomm.jar
Launcher:   C:\Users\TerryKing\Desktop\ArduinoDev\arduino-1.0.5\java\bin\javaw.exe
Launcher args:  -Xms128m -Xmx128m -classpath "lib;C:\Users\TerryKing\Desktop\ArduinoDev\arduino-1.0.5\java\lib\tools.jar;lib\pde.jar;lib\core.jar;lib\jna.jar;lib\ecj.jar;lib\RXTXcomm.jar" processing.app.Base
Args length:    191/32768 chars
Exit code:  259

I DO now have Java installed (did not before)...

What does this tell me??? Thanks!

You are using the java that is bundled with the IDE.

I don't think that is the cause of your problem.

I know that doesn't help much, but at least you can rule that out.

I know you don't like to share the desktop via remote assistance but... if you don't find the issue I may help to investigate the problem via remote desktop (chrome share desktop, teamviewer, etc) :P

[quote author=Louis Davis link=topic=139818.msg1277243#msg1277243 date=1371148488] You are using the java that is bundled with the IDE.

I don't think that is the cause of your problem.

I know that doesn't help much, but at least you can rule that out. [/quote] But does updating java scan for old files on the PC to update them so you could be using the bundled java but it's internal .dll/libraries have been "adjusted". I personally don't have this problem (and never had) but several posts I have seen seem to point to either AV software or Java updates. I don't have java console installed on my PC as it's such a security risk.

so you could be using the bundled java but it's internal .dll/libraries have been "adjusted".

Wow, that's an interesting possibility. I should do a checkpoint on the one remaining "fast" machine, and then install JAva and see if it slows down. And if so, try to check the date/time of some associated DLLs. What a pain. THEN back out to the checkpoint if necessary.

Java is SUCH a pain. My bank and other things won't work without it. GGrrr....

@eried, that's a very kind offer. What time of day/week might be good for you? Probably Sunday or early next week best for me..

I view this whole problem as a serious detractor to the whole otherwise-wonderful Arduino system. I hope the developers will find out how to handle this problem in the future.

If you download a fresh copy of the Arduino IDE (the ZIP version not the windows installer version) and extract it to a different folder name to your current one and then load/compile a sketch from this fresh copy does it make a difference?

Java is SUCH a pain. My bank and other things won't work without it. GGrrr....

Does it need Java console or JavaScript? My bank needs JavaScript to work but not the Java console.

download a fresh copy of the Arduino IDE (the ZIP version not the windows installer version)

OK I'm doing that now (using FlashGet so it doesn't totally bog my machine down).. I'll update that result here today..

terryking228: OK I'm doing that now (using FlashGet so it doesn't totally bog my machine down).. I'll update that result here today..

Hi Terry, what was the outcome of this?

Hi everyone, pleased to be in this forum ^^ forgive my horrible english but is not my native language.

Once presentations are done: I've got the same problem as a lot of people on this thread, Arduino software became REALLY slow. Yesterday I was working on a DC motor, remote controlled with arduino, and all was like always: all working, all fine. I've a windows 7 pc and Arduino Leonardo. Today the software was really slow and start to give me errors...so I tried to compile and run the famous "Blink" easy example. The reply after 2 min of compiling was the error: "avr-g++: Blink.cpp: No such file or directory" I've look for reply on internet and on this topic and so I've tried to: restart the computer, disintall java and "Eclipse" (java editor), edit arduino as "secure software" to my antivirus. Then I was really upset so I've removed Arduino and all its components and try to reinstall it with the installing exe you can find on the home site. At his first start he said: "Arduino can't find the sketch folder, he will use the standard one and create a new one. Then Arduino will stop to speak of himself in third person." (message is translate by me from italian so isn't a perfect traduction). I press ok on this warning and then tried again for "Bare minimum" results? After 15 min of compilation is still compiling.....the problem is in the "sketch" folder I think but how to restore it or tell Arduino to create a new one? If I create a folder named sketch in the arduino main folder it can work? (so simple?)

Hi Terry, what was the outcome of this?

Wow news:

  1. Running from new download (main machine Win7 Professional, quad core) made no difference. Bummer!!

  2. Used Tuneup Utilities 2013 to disable many startup programs, HP monitors, adobe updater, etc etc.

  3. First verify BLINK 70 seconds

  4. Next verify BLINK 12 seconds SO a little better...

3 THIS IS RIDICULOUS!! Just got a new refurbished laptop: Dell Intel duo core, 4 GB, Win7 Home Premium. Installed 1.0.5 from ZIP. Installed Office etc. - Startup to IDE blank page 6 seconds - Verify BLINK : 6 seconds - Verify BLINK again: 1 SECOND OR LESS !!!!!!!! - Verify BIG project, multiple tabs: 2 SECONDS OR LESS!!

How is this possible??

Here are a couple of causes for slow compiler performance. These are not the only causes.

1) Disable/Uninstall Anti-Virus, Firewall software, and any other application that installs a file system filter driver.

You can use fltmc.exe from a command line to get a list of running File System Filter Drivers on your machine.

Here are some explanations of why these will impact performance:

"Another common cause of poor I/O performance is if a file system filter driver has been installed. A filter driver intercepts requests before they reach the file system, and performs additional processing such as anti-virus checking and encryption. It goes without saying that this can only have a negative impact on I/O performance."

"To understand why a filter driver can slow things down you need to understand that a filter driver basically installs itself between the application and the underlying file system and intercepts nearly every call being made to the underlying I/O subsystem. Most of the time filter drivers are just fine and run with no problems at all. However, what do they do? An antivirus filter driver may have several tasks that it needs to do for each I/O. This may involve looking up information about a process or file when it's being accessed. If the data source associated with this information changes it can change the amount of time that these operations take. The interesting thing is that the timing change may only be a hundred or so extra milliseconds per call to the registry or file system. Under most cases a user would not even notice this. If however you have some aspect of your application needs to make many thousands of calls and they each take 250+ milliseconds vs. 10 milliseconds, all of a sudden the problem compounds. The classic example of this is a VIRUS PROFILE gets uploaded or pushed to servers and all of a sudden the customer starts seeing performance problems because the data set or comparison for the filter driver changes."

2) If you have PATA drives, CRC errors will cause Windows to fall back to a slower DMA mode or PIO mode. CRC errors can be caused by a bad cable or the HDD may be about to fail.

Check IDE port settings in Device Manager. http://winhlp.com/node/10 http://msdn.microsoft.com/en-us/windows/hardware/gg463526.aspx

You can use fltmc.exe from a command line

THAT's interesting! Can anyone ID these filters on my machine?? Or ways to remove them??

Pointers to more info on this?? SOMETHING is getting in the way!!

luafv and fileinfo are Microsoft and should be okay. I have those on mine and are not causing any problems.

eamonm is ESET Anti-Virus

SbieDrv is Sandboxie

The Rapport stuff looks like it is something for online banking: http://www.trusteer.com/Products/pc-and-mac-security

Louis, THANKS… you pointed to the dirty culprit: http://www.trusteer.com/Products/pc-and-mac-security

Uninstalled Trusteer (required? by my bank) and Guess what: ALL FIXED: Blink verifies in <1 second after first pass!

Now I only have to fight the bank :slight_smile:

We should follow up with others on what other problems and solutions are related to this issue…

FYI: I also previously removed SandBoxie and disabled ESET realtime file protection with no effect.

Here’s what I got from TRusteer Support: This was for an early version on a WIN XP machine.
---------------------( COPY )---------------------
In order to remove Rapport from your PC using our removal utility, please
download the utility from the following link:
http://download.trusteer.com/NkuiAcruiKc/RapportSafeUninstall.exe

Instructions for using the utility can be found here:
http://www.trusteer.com/support/uninstalling-rapport-using-safeuninstall-utility
-----------------( END COPY )----------------------

Win7 I was able to uninstall it from the “Add-Remove Programs” menu.

So: Both systems are now Blazingly fast: Verify BLINK in < 2 seconds!

Here are some explanations of why these will impact performance:

Louis, can you point to this information?? I need to work with the developers of Trusteer to try to fix it’s trashing of Arduino. Thanks!

Here are some links:

http://www.sql-server-pro.com/i-o-requests-taking-longer-than-15-seconds-to-complete.html
http://www.osronline.com/article.cfm?article=530

My compilation is also running VERY slow. 10+ minutes easily for simple sketches/code. The only filters are luafv and FileInfo. No antivirus, and bluetooth disabled.

Hi,

Since upgrading to Arduino 1.05, compilation on my computer (running Win7 64-bit) has suddenly become very slow. By turning on verbose output, I see that it is compiling the whole of the Arduino core and avr-libc every time, which accounts for the slowdown. Why is it doing this? Is it related to the move of the default installation directory from C:\arduino-xxx to C:\Program Files (x86)\Arduino ?

Thanks for the tip.

For the record, it was… Comodo Firewall’s filter that was slowing down (very much) my Arduino IDE.