Skip to main content
Known Participant
February 3, 2016
Answered

Colfusion Builder 3 Freezing on large cfc files, how to resolve?

  • February 3, 2016
  • 1 reply
  • 2281 views

I am on a Windows 7 64-bit pro machine reading network files.  It seems that when I have a cfc that gets a little too long then I randomly have CFB3 freeze up and never return.  I have to force it closed and then open it again.  I luckily have a copy of HomeSite that I use to edit these files with no problem, but it is getting annoying as it seems to be doing it more and more.  When I say large files they are not that large, the one that just froze up is only 2345 lines of code.

Searching the Internet I find things to try but they are all for CFB2.  I have tried a few things but I still seem to have the problem.

I will try right now to Disable Syntax Checking and see if that helps, but it is unfortunate that I have to disable all the features to edit my files.  Anyone have any other ideas to try to help it work better?  And I can't seem to find a roadmap to CFB, are they going to continue to make it better?

This topic has been closed for replies.
Correct answer Charlie Arehart

Have you tried simply raising the heap setting? It’s not in the UI, but in a config file. There is also a heap monitor option built-into CFB (in the Preferences) which can be enabled.

Let me know if you need details for either of these (but you should be able to find both with some searching).

/charlie

1 reply

Charlie Arehart
Community Expert
Charlie ArehartCommunity ExpertCorrect answer
Community Expert
February 5, 2016

Have you tried simply raising the heap setting? It’s not in the UI, but in a config file. There is also a heap monitor option built-into CFB (in the Preferences) which can be enabled.

Let me know if you need details for either of these (but you should be able to find both with some searching).

/charlie

/Charlie (troubleshooter, carehart. org)
Perkley1Author
Known Participant
February 5, 2016

Thanks for pointing that tip out.  I will give it a try and try to come back and answer that you had the "Correct Answer" if it doesn't freeze this next week.

For others that stumble across this post, here is what I found.

In Coldfusion Builder 3

For viewing the error log:

click on the menu "Window > Show View > Other > General > Error log"

For Viewing the Heap Size:

"Window > Preferences > General > Show heap Status"

You will then see it on the bottom of CFB as a bar.

Right-clicking on the heap bar you can select "Show Max Heap"

"Run Garbage Collector" runs System.gc()

Increasing Heap Size:

Locate cfbuilder.ini (Mine was located at C:\ColdFusionBuilder3\cfbuilder.ini)

Change these settings:

-Xmx512m (Max heap size)

-Xms256m (min heap size)

-XX:MaxPermSize=256m (3rd part of the memory, max Value of Permanent Space)

-XX:PermSize=64m (initial value of permanent space)

Learn more about heap sizes:

http://www.avricot.com/blog/?post/2010/05/03/Get-started-with-java-JVM-memory-(heap%2C-stack%2C-xss-xms-xmx-xmn...)

Perkley1Author
Known Participant
February 14, 2016

So how did it go?

/charlie


So far so good.  I haven't had a freeze up since I did one of the two:

1) Your suggestion, raising the heap setting

2)  Disabling Syntax Checking (Window > Preferences > Coldfusion > Profiles > Editor > Syntax Checking > "Enable Syntax Checking" (unchecked)

Maybe I am writing prematurely, if I have a freeze again I will let you know.