Skip to main content
Participant
April 3, 2013
Question

CF Builder 2 slow on closing files issue

  • April 3, 2013
  • 1 reply
  • 4879 views

This is an old issue that still has not been resolved

When closing a file on CF Builder 2 it takes a long time for the file to close. This used to happen on Windows XP. I have a new PC with Windows 7 and reinstalled CF Builder 2 but the issue closing the file continues.

I have to do the following for that to stop.

  1. Closed CF Builder
  2. Renamed the file workspace\.metadata\.plugins\com.adobe.ide.editor.cfml\foldings\foldings.data
  3. Started CF Builder

However, after few hours CF Builder 2 becomes slow again when closing the files.

Is there any fix for this issue other than the temporary solution above?

This topic has been closed for replies.

1 reply

Charlie Arehart
Community Expert
Community Expert
April 8, 2013

While I have no fix, I have a suggestion: if you open the Progress View (Window>Show View>Other>Progress), watch that while experiencing this “long time to close”, and you may get some insight into what’s amiss. Obviously, it’s not supposed to take a long time; conversely, I’ve not heard this as being a common problem, so it’s indeed odd that you experience it on 2 machines.

Here’s another variable to consider: is this file on a network share or anything other than a local file? Is it connected to source control? Is there any other factor in your setup that may differ from others (extra plugins you’ve added, etc.)? And what about the code in the CFML itself: does it have lots of dependencies on other files, perhaps (lots of includes, or CFC calls, etc.)? While that should not hamper the speed of closing the file, I’m just throwing out all I can think of that might have some impact.

It’s indeed a shame when someone has an experience with CFB that leads them to think it’s broken. The challenge is in finding out exactly what is amiss. It’s not always that obvious.

/charlie

PS Also, what about the CFBuilder/Eclipse log, availble via the “about” menu? That may give you some insight. You can view it from, In Windows, Help>Product Details>Configuration Details>View error log, and on OSX it’s Adobe ColdFusion Builder>About Adobe ColdFusion Builder>Configuration Details>View error log.

/Charlie (troubleshooter, carehart. org)
JonesFCAuthor
Participant
April 8, 2013

Thanks for the reply Charlie.

When I go to Window>Show View>Other> there is no Progress

It takes long to close a file no matter whether is on the network or in my local hard drive. I have the network files on source control (VSS Plugin), which I thought this could be the problem, but even if the file is not in the source control it is slow closing it. Also even if the file contains code snippets is still slow closing.

The VSS plugin was the only plugin I added, everything else came with the installation.

I looked at the log files and could not find anything that could be related to.

This is still a mistery to me.

I had to unistall CFBuilder 2.0.0 and install the CFBuilder 2.0.1. Initially the  files were closing fast but after few hours they got slow again taking about 6 seconds to close each file. Every time I delete the foldings.data file and a new one is created the files close fast, but it seems that something start building up that within few hours they again take a lot of time to close.

Charlie Arehart
Community Expert
Community Expert
April 14, 2013

Ah, my bad. I was mistaken: it’s not under “other” but rather under “general”.

But in the vein of “teaching one to fish”, did you know that typing the word “progress” (without quotes) in that filter text prompt at the top of the list of views (as shown in your screenshot) would have found it for you? That’s how you can find something in CFB that you can’t otherwise locate on your own.

As for the growing foldings.data file, that may be an interesting clue. Have you opened that file with an editor or text file viewer? It’s got some binary data, but it may be interesting still to look at. I just looked at mine, and it’s got about 8 lines of data (and the file size is just a couple of k). How large is yours (in lines and bytes)? In mine I can see references to files (some currently open, others that I’ve long ago closed).

BTW, while the filename “foldings.data” might suggest that this is related to the code folding feature in CFB, I confirmed that at least for one of the files listed in there, I saw no code folding in effect. Maybe someone else will know more.

One other thought: when you say that it’s initially faster and grows slower, are you talking over a single CFBuilder session? If so, I wonder if you closed and reopened it, if it would also start over being “faster”. If so, then I would wonder if you may be running out of memory. The default heap size is pretty small. For more on changing it, see this older entry (seems Adam’s site is no more, so here’s a tinyurl link to an archive.org copy of the page: http://tinyurl.com/ca5jwan).

Finally, related to that, you can also watch the heap use from within CFB via Window>Preferences>General>Show Heap Status, which shows a progress bar of memory usage (and offers a widget to try a garbage collection as well).

Hope that helps.

/charlie

/Charlie (troubleshooter, carehart. org)