I have been struggling to understand lambda memory usage. when i profile my functions locally, the max heap used is ~ 40mb. my (unzipped) bundle is ~35mb, so i would expect at most my function would use ~80mb. However, i consistently max out a 192mb container. Is there a way to simulate the memory limit of a function locally, or is there something obvious that i am missing when trying to figure out how much memory to allocate to my functions?
thanks in advance