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

[Question] New Relic slows down page load #1

Open
weizheheng opened this issue Dec 28, 2021 · 1 comment
Open

[Question] New Relic slows down page load #1

weizheheng opened this issue Dec 28, 2021 · 1 comment

Comments

@weizheheng
Copy link

Hi, sorry for creating an issue here, but I am also been playing around with rails 7 and new relic. Got the integration working but it seems like it slows down the page speed. I am not sure if this is caused by the New Relic browser agent or not, will love to hear from you if you faced similar problem in your setup.

I have generated a new Rails 7 app with tailwindcss and added Devise to it. After experimenting it on Heroku (free tier), it seems that with and without the New Relic ruby agent gem install show quite some significant different in page speed. Here are some examples:

With New Relic Gem Installed

  • Calling Devise Session#create

image

  • This is the Timings for the GET sign_in request after submitting the form with wrong Email and Password pair.

image

  • It feels like something is blocking the DOM to get painted

Without New Relic Gem Installed

  • Calling Devise Session#create

image

  • Timings

image

PS: Again, sorry for creating an issue in your demo repo, feel free to close it if you want. Thanks in advance and have a great day

@hummusonrails
Copy link
Contributor

Hey @marcushwz, thanks for raising this! I don't see the same lag when I deploy this sample app with or without on Render, but I can replicate it on the Heroku free tier. It might be something specific with what resources are allocated on Heroku at that level? In any case, I'm investigating internally to see if anyone has any advice. You may also want to duplicate this question in the GitHub repo for the gem itself at https://github.com/newrelic/newrelic-ruby-agent

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

2 participants