Skip to content

HTML UI Lambda memory usage #23

Open
@rimutaka

Description

@rimutaka

Too many HTML UI Lambda requests fail because serde uses too much RAM deserializing into Value.

Examples:

https://stackmuncher.com/?Rust multiset | Jan 2, 2022
https://stackmuncher.com/?Java com.thoughtworks.xstream.io.xml.CompactWriter | Jan 2, 2022
https://stackmuncher.com/quyixiao | Jan 2, 2022
https://stackmuncher.com/?Java javax.management.modelmbean.RequiredModelMBean | Jan 2, 2022
https://stackmuncher.com/?JavaScript octokit | Jan 2, 2022
https://stackmuncher.com/?Java org.junit.jupiter.api.extension.Extension | Jan 2, 2022
https://stackmuncher.com/?Java com.fasterxml.jackson.databind.introspect.Annotated | Jan 2, 2022
https://stackmuncher.com/?JavaScript print | Jan 2, 2022
https://stackmuncher.com/?JavaScript combinators | Jan 2, 2022

A potential solution can be converting into a struct first and then convert into Value. I do not know if it will produce a smaller object.

512MB results in <10% failure rate, but given that lists are larger than dev profiles it would be search results pages that fail the most.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions