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 in introspection #1256

Open
ZirgVoice opened this issue Oct 8, 2024 · 3 comments
Open

Memory leak in introspection #1256

ZirgVoice opened this issue Oct 8, 2024 · 3 comments
Labels
bug Something isn't working internally-reviewed The issue has been reviewed internally.

Comments

@ZirgVoice
Copy link

ZirgVoice commented Oct 8, 2024

Component(s)

router

Component version

v0.121.1

wgc version

v0.67.0

controlplane version

router version

v0.121.1

What happened?

Description

When a constant introspection request is made, memory leakage occurs.

Steps to Reproduce

The simplest way is to open Apollo GraphQL Studio and enable Auto Update in the Connection settings. The sandbox will start sending an introspection request every second, and at that moment, you can observe a rapid increase in RAM usage. After disabling auto-update, the memory gradually clears up.

Environment information

FEDERATED_GRAPH_NAME=production
LISTEN_ADDR=0.0.0.0:3001
ROUTER_CONFIG_PATH=./config.json
METRICS_OTLP_ENABLED=false
PROMETHEUS_ENABLED=false
LOG_LEVEL=debug
DEV_MODE=true

Router configuration

cors:
  allow_origins: ["https://studio.apollographql.com", "http://gateway:4000", "https://localhost:4200"]
  allow_methods:
    - OPTIONS
    - GET
    - POST
  allow_headers:
    - Origin
    - Content-Length
    - Content-Type
  allow_credentials: true
headers:
  all:
    request:
      - op: "propagate"
        named: Authorization
telemetry:
  tracing:
    enabled: false
engine:
    minify_subgraph_operations: false

Router execution config

No response

Log output

No response

Additional context

No response

@ZirgVoice ZirgVoice added the bug Something isn't working label Oct 8, 2024
Copy link

github-actions bot commented Oct 8, 2024

WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible.
The roadmap is driven by our customers and we have to prioritize issues that are important to them.
You can influence the priority by becoming a customer. Please contact us here.

@StarpTech
Copy link
Contributor

Hi @ZirgVoice, thanks for reporting. We'll take a look. Could you please share your router and execution config? Thank you.

@StarpTech StarpTech added the internally-reviewed The issue has been reviewed internally. label Oct 22, 2024
@ZirgVoice
Copy link
Author

Hi @ZirgVoice, thanks for reporting. We'll take a look. Could you please share your router and execution config? Thank you.

Here's the config.json, and I’ve already provided the router configuration.
config.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working internally-reviewed The issue has been reviewed internally.
Projects
None yet
Development

No branches or pull requests

2 participants