-
Notifications
You must be signed in to change notification settings - Fork 112
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
Excessive Memory Allocation Loading Worksheet Rows #111
Comments
This also appears to be new to 2.6.2. I do not see this happening in 2.5.3 so I have rolled back our update. |
How many records are on that sheet? |
50K. With this particular spreadsheet, |
We started seeing OOM killer issues in containerized workloads after upgrading to I believe the issue was introduced as part of #101 in this commit: 494ed05 Specifically, it's repeatedly building While we're micro-optimizing, I think we probably don't want |
I am noticing excessive temporary memory allocation loading a worksheet. I cannot share said spreadsheet currently. This particular spreadsheet is 5.8MB, single sheet, 50K records. I cannot see anything obvious within
rows
causing this but it just seems a bit excessive for a 6MB file ;)Reason I bring this up is it's killing kubernetes pods for us for memory usage when running. I am attempting to bump the limits to get around it.
Anything I can do to help I'm glad to.
Note, memory usage is from Docker stats
Base Rails Console Memory: 168.3MiB
Load Book (
book = Creek::Book.new("report.xlsx")
): 305.8MiBForce a GC (
GC.start
): 210.6MiBLookup First Row (
book.sheets.first.rows.first
): 1.247GiBForce a GC (
GC.start
): 222.9MiBThe text was updated successfully, but these errors were encountered: