Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App process is a steady 130% CPU immediately on launch #1364

Closed
marcshilling opened this issue May 21, 2015 · 9 comments
Closed

App process is a steady 130% CPU immediately on launch #1364

marcshilling opened this issue May 21, 2015 · 9 comments
Assignees
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@marcshilling
Copy link

2012 15" Retina MacBook Pro

Launching my react native app on the iPhone 6 simulator immediately skyrockets the process to 130% CPU. The name of the process matches my app name (I bring this up because the iOS Simulator Process is 0% and XCode is 1%).

Launching a non-react native app on the same simulator, the process sits at 0.1%.

I'm not experiencing any slowdowns or crashes, it's just annoying that my laptop's fans spin at high speed constantly. Curious what is causing this.

@brentvatne
Copy link
Collaborator

@marcshilling - is this a brand new project that you created with react-native init? If not, we'll probably need to see the code for it to be able to guess at what might be the problem 😄

@brentvatne brentvatne self-assigned this May 24, 2015
@onlymejosh
Copy link

I'm having the same issues on a brand new Retina MBP. It may be related to #1325

@jaygarcia
Copy link
Contributor

When this happens, can you guys fire up instruments and share the data?

I've never run into this, but this is what I'd do if I did.

JG

@moduscreate

:: sent from my mobile device ::

On May 21, 2015, at 10:24, Marc Shilling [email protected] wrote:

2012 15" Retina MacBook Pro

Launching my react native app on the iPhone 6 simulator immediately skyrockets the process to 130% CPU. The name of the process matches my app name (I bring this up because the iOS Simulator Process is 0% and XCode is 1%).

Launching a non-react native app on the same simulator, the process sits at 0.1%.

I'm not experiencing any slowdowns or crashes, it's just annoying that my laptop's fans spin at high speed constantly. Curious what is causing this.


Reply to this email directly or view it on GitHub.

@marcshilling
Copy link
Author

@jaygarcia any particular instrument I should be monitoring? Nothing is really standing out other than my app being 130% CPU always like I said

@jaygarcia
Copy link
Contributor

Good question @marcshilling :-\

I was hoping maybe there were some signals from the stack display that could help.

I've recorded the following video demonstrating how my mid-2012 MBP displays CPU utilization for the iOS sim.

http://www.youtube.com/watch?v=91SurUNjkS4

For the record, this app is pushing the limits with React Native's Runloop and I still don't see issues with high CPU utilization like some of you are describing :(.

@marcshilling
Copy link
Author

I repeated your steps and actually am seeing an even lower React Native Runloop time than you.

screen shot 2015-05-26 at 3 09 04 pm

I do want to clarify - it's not the iOS Simulator process I'm having issues with. That is always around 0% like you show in your video. The process is the actual name of my app - Wego

screen shot 2015-05-26 at 3 12 08 pm

@jaygarcia
Copy link
Contributor

Ah! I See what you mean.

During idle, i'm < 5% :(

See below.

cpu

I'll see if i can replicate with a vanilla project. Maybe there's something in there that is acting like a jerk :(

@brentvatne
Copy link
Collaborator

@marcshilling - any chance you could post a public repo where this issue occurs?

@brentvatne
Copy link
Collaborator

@marcshilling - I'm going to close this issue for now, if you're still having the issue then ping me with 1) whether this is happening on a plain react-native init project 2) if not, somewhere that we can access the source for a project where this occurs

@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants