You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Firebase PubSub emulator creates a new Node process for each PubSub event, but these processes are not being terminated after function execution completes. This leads to memory exhaustion as more events are processed, making local development difficult and potentially causing system stability issues.
Thanks for reporting this! This appears to be an issue inside the Pub/Sub emulator, so I've passed this along to the Google team responsible for maintaining it. Internal bug reference b/389997173
This is the only debug logs that were created from the run
pubsub-debug.log
This is the Google Pub/Sub fake.
Implementation may be incomplete or differ from the real system.
Jan 16, 2025 1:38:18 AM com.google.cloud.pubsub.testing.v1.Main main
INFO: IAM integration is disabled. IAM policy methods and ACL checks are not supported
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Jan 16, 2025 1:38:19 AM com.google.cloud.pubsub.testing.v1.Main main
INFO: Server started, listening on 8085
Jan 16, 2025 1:38:24 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected HTTP/2 connection.
Jan 16, 2025 1:39:05 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected HTTP/2 connection.
*** shutting down gRPC server since JVM is shutting down
*** server shut down
[REQUIRED] Environment info
firebase-tools: 13.29.1
Platform: macOS
Node.js Version: v20.18.1
[REQUIRED] Description
The Firebase PubSub emulator creates a new Node process for each PubSub event, but these processes are not being terminated after function execution completes. This leads to memory exhaustion as more events are processed, making local development difficult and potentially causing system stability issues.
[REQUIRED] Test case
Reproduction repository: https://github.com/kdawgwilk/pubsub-emulator-bug-repro
[REQUIRED] Steps to reproduce
cd functions npm install
[REQUIRED] Expected behavior
[REQUIRED] Actual behavior
Impact
This issue significantly impacts local development by:
The text was updated successfully, but these errors were encountered: