react-native-debugger icon indicating copy to clipboard operation
react-native-debugger copied to clipboard

React Native Debugger Helper memory leak

Open getaaron opened this issue 5 years ago • 16 comments

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)

getaaron avatar Dec 18 '18 18:12 getaaron

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

alfredacs avatar Dec 21 '18 05:12 alfredacs

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

fabOnReact avatar Jan 09 '19 14:01 fabOnReact

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.

ufolux avatar Jan 11 '19 06:01 ufolux

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

2019-01-25-170516_1271x766

jchook avatar Jan 25 '19 22:01 jchook

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

WeslleyNasRocha avatar Jan 28 '19 18:01 WeslleyNasRocha

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

radjivF avatar Jan 31 '19 23:01 radjivF

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

edmarv avatar Feb 06 '19 13:02 edmarv

+1 Same Here

devinceble avatar Feb 28 '19 02:02 devinceble

The issue is still here, any update?

jakubdrabik avatar May 12 '19 15:05 jakubdrabik

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

Manouli avatar May 20 '19 11:05 Manouli

Hello.

Could someone give an example project where this behaviour happens?

We need more information.

Gongreg avatar Jun 04 '19 04:06 Gongreg

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

cihadturhan avatar Aug 07 '19 09:08 cihadturhan

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

shubhmsng avatar Jan 07 '20 09:01 shubhmsng

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

mxmzb avatar Jan 16 '20 12:01 mxmzb

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,

lakhman avatar Jan 18 '20 21:01 lakhman

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?

harveyconnor avatar Jun 18 '20 05:06 harveyconnor