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

Expected memory usage of DocSzCache? #237

Open
egoldblum opened this issue Jun 27, 2016 · 2 comments
Open

Expected memory usage of DocSzCache? #237

egoldblum opened this issue Jun 27, 2016 · 2 comments

Comments

@egoldblum
Copy link

egoldblum commented Jun 27, 2016

We recently upgraded from 2.26.3 to 2.28.7 and are observing much higher memory usage. Comparing v8 heap snapshots taken days apart suggests that Kadira.docSzCache may be responsible for the majority of the increase (~200mb).

What is the expected behavior of this feature with regards to memory usage?

I see that this cache is defaulting to 100000 items:

Kadira.docSzCache = new DocSzCache(100000, 10);

Is there anyway to disable document size tracking and/or change this value to see the impact it has on memory usage?

@arunoda
Copy link
Member

arunoda commented Jun 28, 2016

I think we can expose an option to configure it.
@roonyh could you work on this today?

@arunoda
Copy link
Member

arunoda commented Jun 28, 2016

Introduced a new feature with v2.29.0.
See this PR for how to use it: #238

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

2 participants