Skip to content

Json parser seems to be eating up a lot of response time #2711

Closed

Description

@gateway

Please read the following instructions carefully.

Check out #1271 for an ideal bug report.
The closer your issue report is to that one, the more likely we are to be able to help, and the more likely we will be to fix the issue quickly!

Many members of the community use Stack Overflow and Server Fault to ask questions.
Read through the existing questions or ask your own!

For database migration help, please file a bug report at https://parse.com/help#report

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!

Issue Description

Been keeping an eye out on high response times with our app in New Relic... One that stuck out was a simple class to get places that are disabled.

Looking at the transaction traces it spent most of its time in the json parser.

image

image

This seems to be happening across various classes, now I did update from 2.2.17 to 2.2.19 just fyi but not sure if thats the cause.

image

image

Steps to reproduce

Not sure really how to repo this, this was just based upon what we are seeing now in New Relic

Environment Setup

  • Server
    • parse-server version (Be specific! Don't say 'latest'.) : 2.2.19
    • Operating System: Unknown
    • Hardware: 2 Standard XL
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): Heroku
  • Database
    • MongoDB version: 3.2.x
    • Storage engine: WiredTiger
    • Hardware: M1 Cluster
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): Mlab

Logs/Trace

None that could be found.

Activity

  1. flovilmart commented on Sep 14, 2016

    @flovilmart
    Contributor

    The json parser is the default json parser provided alongside express.js not sure what should be done here

  2. gateway commented on Sep 14, 2016

    @gateway
    Author

    @flovilmart yea, im not sure what to say, just seeing a pattern on some of the calls that seems to be processing a lot in the json parser now.. again not sure if this had been happening but I like to keep an eye out on things that take longer than x ms to execute.. hmmm

  3. umair6 commented on Mar 30, 2017

    @umair6

    @gateway I am facing similar issue. Most of the time, everything works fine. Some time I see delayed queries and time reaches around 50s. By checking transaction trace on NewRelic, I found out that Middleware:jsonParser is taking much of the time.
    Were you able to identify the root cause?

  4. anuraag-barde-shipsy commented on Jan 9, 2023

    @anuraag-barde-shipsy

    Following, simillar issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions