Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jfrux opened this issue Oct 9, 2012 · 2 comments
Open

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

jfrux opened this issue Oct 9, 2012 · 2 comments
Assignees

Comments

@jfrux
Copy link
Contributor

jfrux commented Oct 9, 2012

No description provided.

@ghost ghost assigned jfrux Oct 10, 2012
@jfrux
Copy link
Contributor Author

jfrux commented Oct 10, 2012

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
Copy link
Contributor Author

jfrux commented Oct 10, 2012

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant