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

reduce memory usage #11

Open
tschimbr opened this issue Jul 5, 2017 · 2 comments
Open

reduce memory usage #11

tschimbr opened this issue Jul 5, 2017 · 2 comments

Comments

@tschimbr
Copy link
Member

tschimbr commented Jul 5, 2017

The current memory usage tends to get very high after some time. Ist there anything that could be garbage collected?

@asittampalam
Copy link
Contributor

Without having double checked it, I suspect that it might be, because I'm storing a little bit of data about each visited page in memory (e.g. the hash value of its content). It might be that this, when accumulated, turns out to be a lot of data. I could solve that problem by bucketing all the information into domain-buckets (e.g. "www.eonum.ch/about" etc. will be in the bucket "www.eonum.ch") and then only holding the currently used bucket in memory and storing everything else on disk. I think this will reduce the memory usage but increase disk access (which shouldn't be a huge problem).

@asittampalam
Copy link
Contributor

I just remembered that I'm caching requests as well. I have to check if I'm already deleting them after they are used or not. If I'm not, that'll be the main problem.

@tschimbr tschimbr assigned fabmue and unassigned asittampalam Oct 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants