Skip to content

High CPU utilization during tns run #4324

@rosen-vladimirov

Description

@rosen-vladimirov

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.1.1
  • Cross-platform modules: Not applicable
  • Android Runtime: Not applicable
  • iOS Runtime: Not applicable
  • Plugin(s): Not applicable

Describe the bug
During tns run command (NOTE: Do not pass platform), CLI may keep the CPU at very high levels, even constantly at 100%. Investigating the issue showed that CLI spawns avdmanager list avds very often, which exhaust the machine resources.

To Reproduce
In any project run tns run. Ensure you livesync on both Android and iOS.
You must have at least one AVD created (no need to have it running). Issue is not reproducible in case you do not have AVDs.

Expected behavior
CLI should not utilize the CPU at 100%.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions