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

Next.js dev server requests are 10x slower with v12.11.0 #2899

Closed
arishoham opened this issue Jan 23, 2025 · 5 comments
Closed

Next.js dev server requests are 10x slower with v12.11.0 #2899

arishoham opened this issue Jan 23, 2025 · 5 comments

Comments

@arishoham
Copy link

Description

When running out development server with nextjs with newrelic >= v12.11.0, it takes 10x as long or more. I've attached the debugger and it seems like it was introduced with this PR #2717.

When pausing the debugger it always stops on this line https://github.com/newrelic/node-newrelic/pull/2717/files#diff-17eafd23bfd28fb0d97ff147c047822a7fb832bfb46942886fd10cd89ab1526fR122

I'm not sure exactly why but it looks like maybe the find method is taking much longer than expected?

Expected Behavior

Upgrading newrelic to >=v12.11.0 should not cause issues with nextjs dev server.

Troubleshooting or NR Diag results

Steps to Reproduce

Your Environment

Node version: v22.11.0
Operating System and version: macOS 15.2

Additional context

@workato-integration
Copy link

@newrelic-node-agent-team newrelic-node-agent-team moved this to Triage Needed: Unprioritized Features in Node.js Engineering Board Jan 23, 2025
@bizob2828
Copy link
Member

@arishoham are you still using @newrelic/next. How are you starting your dev server with newrelic? We'd need a reproduction case to further triage

@arishoham
Copy link
Author

@bizob2828 we are not using @newrelic/next, we require newrelic in our express server.

@bizob2828
Copy link
Member

@arishoham We still would like a reproduction case to further triage

@bizob2828 bizob2828 changed the title v12.11.0 broke our nextjs dev server Next.js dev server requests are 10x slower with v12.11.0 Jan 23, 2025
@bizob2828
Copy link
Member

@arishoham I'm going to close this. If you can provide a reproduction case, please reopen the issue with the repro

@github-project-automation github-project-automation bot moved this from Triage Needed: Unprioritized Features to Done: Issues recently completed in Node.js Engineering Board Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done: Issues recently completed
Development

No branches or pull requests

2 participants