I'm developing a react native application. I have just realized that the application memory usage is growing, even when I'm not touching the app. If I navigate between screens I see that memory usage is growing much faster.
I have got some memory snapshots in Safari web inspector but I do not know how to use this information.
Can you please give me some hints? I have found out that this may be some react native navigation issue.
Versions:
"react-native": "0.59.9",
"react-navigation": "^3.11.1",
Memory usage chart
Memeory snapshot comaprison
Related
Platform Unity 2019.4.8.f1
Apk tested on Android devices
Api lvl 21+
Test failure on some devices that have 2gb memory.
Our team has implemented a unity project and we use agora for video call. Our streaming configs are very low, 15fps, 65bit. But when we test the app on phones that have 2gb memory, some times later(about 5-10min) app crashes. We try to find out the problem and according to diagnostic tools agora uses lots of memory, We cannot find any limitation from agora sdk and cannot reduce memory usage, is there any idea about this. Thanks.
First, did you make sure if this is an Application level memory management issue? e.g., you created instance of renderers but did not release in time?
If it is SDK level issue, you probably won't find a solution from the public. I suggest you to create a ticket to ask the question directly to the Agora support team. Please provide your quantified analysis and the crash log when you submit that.
I am using react-native 0.52.0 and react- 16.2.0 . My react-native application runs slowly. I want to optimize its performance. Can anyone tell me what are the ways in which we can make react native app faster and how to measure its performance and memory usage? Is there any tool to measure its overall performance
1) (reactotron) https://github.com/infinitered/reactotron
It streams to you information about your app’s state, API calls, benchmarks, exceptions, and other stuff.
2) https://facebook.github.io/react-native/docs/performance.html
This page contains all you need to check for performance in the app.
You can use Android Studio Profiler to monitor memory usage on Android. Take into account that you will need Android 10 for the profileable tag in Android Manifest to work.
I made a custom apple TV app in Xcode and installed it on an apple TV. It works fine for a few days, then it crashes and becomes unavailable.
Is this because something is wrong with the code or expected behavior for apps manually installed on apple TV?
Any help is appreciated!
Have you tried using Apple's Leaks instrument to check for some sort of memory leak? If your app is crashing after a few days, this would suggest a possible memory leak so would be worth looking into.
https://developer.apple.com/library/content/documentation/Performance/Conceptual/ManagingMemory/Articles/FindingLeaks.html#//apple_ref/doc/uid/20001883-SW2
The Leaks instrument provides leak-detection capabilities identical to those in the leaks command-line tool. The Leaks instrument records all allocation events that occur in your application and then periodically searches the application’s writable memory, registers, and stack for references to any active memory blocks. If it does not find a reference to a block in one of these places, it deems the block a “leak” and displays the relevant information in the Detail pane.
The culprit of the crash is the lack of appropriate licensing.
Once I registered as an Apple Developer and paid the subscription fee, the app stopped crashing after a few days.
I've been working on a React Native app on an Android tablet for my current contract and it's now going through its Alpha phase. For the most part it's working very well, it's responsive, performant, and mostly stable.
There's one issue that keeps occurring though which I'm having trouble tracking down. It seems very random since I've seen it happen on nearly every screen in the app all at times.
When transitioning to a new screen, I just get a blank white screen. Seems like the javascript just doesn't get loaded and the UI never loads. This happens in both our debug dev versions, and our bundled release versions.
Some things to note about the architecture
Android 6.0
React 15.4.1
React Native 0.39
Flux 3.1.0
I know this isn't a lot to go on so I'm mostly looking for people that may have experienced this problem (that wasn't related to the development server issues) and what they had found as a cause in their app. Hoping to get some suggestions of what to look at or possibly how to even troubleshoot what's causing this.
Oh one other thing, If I background the app when a white screen happens, then select the app from my running apps list, the screen loads just fine and I'm able to continue using the app as if nothing happened.
Sorry for the vagueness here but I'm really at a loss and looking for any kind of suggestions.
Thanks!
My .Net web site application is working fine with IE(6-8). But it eats up memory in android tablet BROWSER,poor responsive and often crashing. It could be CSS/JavaScript/unnecessary event handler or whatsoever issue. Is there any widget/profiler availble to analyse memory consumption? Any help would be great. Thanks.