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

Memory Leak: 10.4.2 - Uncaught signal: 2, pid=42, tid=42, fault_addr=0. #1989

Open
NickFoden opened this issue Aug 15, 2023 · 0 comments
Open

Comments

@NickFoden
Copy link
Contributor

NickFoden commented Aug 15, 2023

Hi good evening,

Sorry have not the time to confirm which of the two or if because using in tandem, but either the contentful package or is the rich text renderer or in tandem creates a memory leak. I found a blog post about contentful memory leaks when searching the logging errors, and the memory leak coincides precisely with the latest version bump and then when rolled back to previous version no more memory leaks. So am confident culprit is one of these libraries or both.

Expected Behavior

No memory leaks

Actual Behavior

Memory Leaks

image

Possible Solution

Steps to Reproduce

  1. install contentful 10.4.2 and @contentful/rich-text-react-renderer 15.17.1 into next.js service "next": "^13.4.13" node 18 on google app engine
  2. deploy on google app engine
  3. witness memory leaks "Uncaught signal: 2, pid=42, tid=42, fault_addr=0." in the logging

Context

Memory leaks have lead to unpredictable behavior for users, to google app engine over provisioning/spinning up more and more instances than normal.

Environment

  • Language Version: node 18 standard (google app engine) runtime: nodejs18
  • Package Manager Version: 9.6.7
  • Browser Version:
  • Operating System: Google App Engine Standard
  • Package Version:
  • Which API are you using?: import { createClient, ContentfulClientApi } from "contentful";

Soon as rolled back to
"contentful": "^10.4.0",
"@contentful/rich-text-react-renderer": "^15.17.0",

Memory leaks ceased.

image

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

1 participant