Skip to content

Compared to 2.5.0, 2.8.0 uses 60%+ memory in a resting state #5168

Closed
@zackshapiro

Description

@zackshapiro

Issue Description

We recently upgraded to Parse Server 2.8.4 from 2.5.0 for the improvements around Live Query between the two versions. In doing so, we noticed rather troubling increases in memory usage from Parse.

Here's a graph from CloudWatch of their respective idle MemoryUtilization

After downgrading our production instances back to 2.5.0, the MemoryUtilization goes back to near zero:

Steps to reproduce

Running two identical boxes on AWS aside from the Parse version, and having me be the only person querying each box in the last 24 hours. We observed these memory stats coming from ssh'ing in and running top.

Both running Node.js 8.11.1

Server Name: Release
Mem: 7867492k total.
5,816,296k used
2,051,196k free
181928k buffers
Every ~10 seconds, top showed the process node running at 62.5%

Server Name: Release-Downgraded
Mem: 7867492k total
688,704k used
7,178,788k free
46600k buffers
Every ~10 seconds, top showed the process node running at 1.4%

Expected Results

I expected far less memory consumption from the upgraded version of Parse.

I've looked through the release notes in the parse-server Release section for anything that could relate to this, indicating a major memory issue had been solved. I've combed through issues and pull requests that have been closed. We use enableSingleSchemaCache: true already, so that's not an issue here.

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.) : 2.8.4 vs. 2.5.0
    • Operating System: 64 bit Amazon Linux/4.5.0
    • Hardware: M5.Large instance
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): AWS
  • Database

    • MongoDB version: 3.2.16 WiredTiger (M7 Standard)
    • Storage engine: Not sure
    • Hardware: 700 gb ssd block storage (general purpose abs encrypted)
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): mlab on AWS

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