foundrycf / fpm

a package manager for foundry
http://fpmcf.org/
4 stars 2 forks source link

Desperately need to locate memory leaks and eradicate them. #14

Open jfrux opened 11 years ago

jfrux commented 11 years ago

I'm working on this now... I don't really know how to detect memory leaks in CF that well...

I'm not sure, but I think it only ends up PermGen'ing in Railo... I don't think CF10 does it but I think ACF handles memory better than Railo in that sense... however, it's most likely my bad code...

After about 4 times running this, the used memory is at 500MB+ http://localhost:8888/test/tests.cfm

5 or 6 times, it's up at 750MB

It's roughly leaking 70-100MB per run... wtf??

How can I figure out where it's leaking?

jfrux commented 11 years ago

FYI, the code in question is in the develop branch. https://github.com/foundrycf/fpm/blob/develop/test/tests.cfm uses the lib.core.Package cfc and it loops around resolving it's deps and spits out the output successfully as:

fpm caching git://github.com/joshuairl/fpm-test-module.git
fpm fetching fpm-test-module
fpm version check fpm-test-module
fpm copying /Users/rountrjf/.foundry/fpm-test-module
fpm caching git://github.com/slamkajs/mkdirp.git
fpm fetching mkdirp
fpm version check mkdirp
fpm copying /Users/rountrjf/.foundry/mkdirp
fpm caching git://github.com/joshuairl/rimraf.git
fpm fetching rimraf
fpm version check rimraf
fpm copying /Users/rountrjf/.foundry/rimraf
fpm caching git://github.com/russplaysguitar/UnderscoreCF.git
fpm fetching UnderscoreCF
fpm version check UnderscoreCF
fpm copying /Users/rountrjf/.foundry/UnderscoreCF
fpm caching git://github.com/joshuairl/tmp.git
fpm fetching tmp
fpm version check tmp
fpm copying /Users/rountrjf/.foundry/tmp
fpm caching git://github.com/joshuairl/semver.git
fpm fetching semver
fpm version check semver
fpm copying /Users/rountrjf/.foundry/semver
fpm caching UnderscoreCF not found
fpm fetching UnderscoreCF
fpm version check UnderscoreCF
fpm copying /Users/rountrjf/.foundry/UnderscoreCF

But sucks the memory... thinking I should some how close these cfc's out somehow?