Skip to content

Question: Memory leak when repeatedly rendering components #27054

@mumu-xi

Description

@mumu-xi

React Native version: 0.60.4

Steps To Reproduce

  1. Create a react native project using the official cli tool
  2. I defined a component and set a timer inside the component. The rendering of the component is triggered every 100 milliseconds.

image
2. Use the dumpsys command to view memory usage.

dumpsys meminfo com.rndemo60

Found that the value of unkown in private dirty has been growing.
Beginning:
image
After a few minutes
image

Describe what you expected to happen:

I want to know why memory is always growing. Or is this normal? If not, how to solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugStaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions