React-native-debugger: React Native Debugger Helper memory leak

Created on 18 Dec 2018  路  16Comments  路  Source: jhen0409/react-native-debugger

This just happens if I leave React Native Debugger running for a few hours or overnight

image

React Native Debugger app version: reproduces on 0.8.1 and 0.8.2
React Native version: 0.55.4
Platform: iOS
Is real device of platform: No, iOS Simulator
Operating System: macOS 10.14 (18A389)

help wanted more-information-needed

Most helpful comment

Same problem after updated to 0.8.2 today. reloading JS bundle is really slow

All 16 comments

Same problem after updated to 0.8.2 today. reloading JS bundle is really slow

yes.. I am also experiencing this issues. React Native Debugger was using 1.2 GB of memory and the Android Simulator was closed since hours on Ubuntu 18.04.
I love the app. Thanks

I must restart the debugger a few hours later due to the memory leak and my computer just hang up.
But I think the problem is caused by official react native debugger itself. Because the memory leak problem is also exist with that one.

Computer was going slow after a few hours.. sure enough, RN Debugger using all my RAM..

2019-01-25-170516_1271x766

me also getting pretty much 5gb of ram on react native debugger

I love the apps, but its takes all the ram available and the perf of my laptop is too slow I got also 6go of ram taken

same here, I love how useful this application is, I sure hope this memory leak issue gets fixed.

+1 Same Here

The issue is still here, any update?

Its not only the Memory. It affects the CPU as well.

Hello.

Could someone give an example project where this behaviour happens?

We need more information.

Specifically, developer tools has memory leak. I think it's because of logs or something are not cleaned.

This is after a few hours working with RN Debugger:
image

Right click and toggle it:
image

And result:
image

Any update on this issue? I also have same issue with mac

Hello.

Could someone give an example project where this behaviour happens?

We need more information.

For me it happens even on a freshly created RN app (npx react-native init App). Connect react-native-debugger to it and my RAM will eat into 20-30GB after a few hours, whether I do something or not.

My system:

MacBook Pro (15-inch, 2016)
Processor: 2,9 GHz Quad-Core Intel Core i7
Memory: 16 GB 2133 MHz LPDDR3

This works for me, use it by opening the debugger, in the file menu bar, go to Debugger > Open Config File and paste the following (view the url for more info):

  // Refresh devtools when doing JS reload every N times. (-1 for disabled)
  // This can effectively avoid possible memory leaks (Like
  // https://github.com/jhen0409/react-native-debugger/issues/405) in devtools.
  timesJSLoadToRefreshDevTools: 5,

This works for me, use it by opening the debugger, in the file menu bar, go to Debugger > Open Config File and paste the following (view the url for more info):

  // Refresh devtools when doing JS reload every N times. (-1 for disabled)
  // This can effectively avoid possible memory leaks (Like
  // https://github.com/jhen0409/react-native-debugger/issues/405) in devtools.
  timesJSLoadToRefreshDevTools: 5,

What exactly does this do?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jsdario picture jsdario  路  3Comments

JodiWarren picture JodiWarren  路  3Comments

cvvspb picture cvvspb  路  3Comments

usrbowe picture usrbowe  路  6Comments

idrakimuhamad picture idrakimuhamad  路  3Comments