ColdFusion Builder and huge memory leaks
Tags: Coldfusion
Since buying my new computer the one thing I hear the most now is the disk access, and with ColdFusion builder I here a constant access when it comes to my Hard Drives.
Why is that?
under normal circumstances a computer will swap out what it has in memory if the memory needs to be swapped. Systems with low memory will notice huge performance gains when increasing memory alone.
So why is it that on a system that is an I7 930 turbo boost, and 12gigs of memory do I notice a hell of a lot of disk access, when running ColdFusion Builder?
I don't really know the answer to this one, but I went looking for answers anyway.
I have 2 Eclipse installs one is 64bit with CFEclipse and the other is 32 bit running ColdFusion Builder. Which one do you think would be the one that uses the most memory?
If you said ColdFusion Builder you would be right, but maybe not because of the reasons you might think. ColdFusion Builder has a memory footprint when first loaded as a plugin of around 70-80mb's, and has a total of around 130mb in useable heap space. This will depend on your eclipse.in settings but for this demonstration I have left them at the default.
The one thing that did surprise me when first booting up was the amount of memory that was used, and heap max. Now one could argue that ColdFusion does a lot more than CFEclsipe, or that 64bit would actually use more than a 32bit application.
But the number one thing that surprised me the most, was when I first ran both applications I opened the exact same file, and this is where the surprises really came about.
Lets first look at CFEclsipe and the file that I used for this test, was the Alagad image.cfc component unencrypted. When I first started Eclipse with CFeclipse my heap size was 20M/40M that is about normal when ever I have used this plugin, but this might also differ to your findings depending on what other plugins you may have installed.
But lets load the file with CFEclsipe. Watching the heap status I saw it jump to 35mb before settling back at 23mb, that isn't too bad at all. So lets scroll this file to the bottom of the file, my heap size went to 26m/42m not to bad I guess.
So lets do the same test in ColdFusion Builder.
When I first ran ColdFusion Builder I started at 40mb/80mb and I would consider this normal, but what I did not expect was that the memory then shot up to 60mb/82mb before settling at 53mb/82mb.
The very first thing that I noticed that was different, was that I not only shot up to as much as 120mb/165mb. But I also observed the fact that it tried to rebuild the workspace on about 15 occasions, now the memory alone didn't shock me as the fact it actually tried to rebuild the workspace a number of times after it had loaded. But the one thing with the memory was that it jumped up/down so fast that it was like doing a garbage collection very rapidly.
This was one thing I did not notice with CFeclipse, as it jumped up and stayed there.
But for the ultimate memory leak in ColdFusion Builder try this little test in both CFEclsipe and ColdFusion Builder. With both files opened, continually scroll up and down in the editor.
CFEclsipe is lucky to move in about 2-5mb steps settllign each and every time back where it started within 1-2mb which in my tests above didn't go above 25mb, ColdFusion Builder on the other hand with the exact same file showed a seriously different story. It jumped up and down to the tune as much as over 100mb in memory.
That's right and if you timed it right it stayed there for hours to boot. Where as CFeclipse always settled back to around 23mb.
So the question is what the hell is ColdFusion Builder doing to waste so much memory so quickly?
I guess only Adobe will know.
-
I've already uninstalled CFB and gone back to CFEclipse. Yes one could argue that CFB offers a lot more in terms of debugging and whatnot but to be honest the performance is just crap. They should have just created a new version of Homesite now THAT was an IDE
# Posted By Gary Gilbert | 4/6/10 7:20 AM -
I prefered ColdFusion Studio, Home Site was a cut down version of that. When Macromedia took over they decided to move to the one and created Home Site+, but it was never the same in my eyes. Some of the more important features didn't exist in Home Site+
Anyway, if you want debugging in CFEclipse then head on over to Adobe.com and download the ColdFusion 8 eclipse plugin. That will give you RDS support as well as a few other things, not sure how well it will work against ColdFusion 9 though.# Posted By Andrew Scott | 4/6/10 3:57 PM -
@gary
I made the same step. When I posted the same doubts on a well known list Mr Lehman answered me that I am an idiot .......... I really do not get the Adobe point on delivering CFB in these unstable condition.# Posted By Andrea Campolonghi | 4/7/10 1:50 AM -
Just a thought, are you running the same suite of plugins?
For instance if you ran CFEclipse with Aptana, you may have the same performance issues as CFBuilder which is built on Aptana. That's because from what I understand there are some memory leak issues with Aptana. Also I'm assuming here that there's a 64bit version of Aptana.
It would be interesting to take a vanilla install of CFBuilder, and compare it to a CFEclipse install that has the same installed suite of plugins. Then if you still get the same issues on CFBuilder only that gives you something to complain to Adobe about.
Don't get me wrong here, for many of the same reasons already discussed, I've removed my copy of CFBuilder and went back to CFEclipse. Aside from afew bells and whistles I find that CFEclipse much more worthwhile.# Posted By Larry C. Lyons | 4/7/10 10:16 AM -
That's a fair point Larry, as we all know Aptana is full of problems. I think, actually strongly believe that if Adobe chose to write their own editor plugin and sourced the same plugins like JS and CSS etc, Adobe may have been able to feature pack Builder and be a lot less buggy.
# Posted By Andrew Scott | 4/7/10 2:26 PM



TweetBacks