question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CPUs at 100% when running `runAll` on sample projects

See original GitHub issue

Expected Behavior

CPUs usage should be to a minimum when idle.

Actual Behavior

From the gitter channel:

Trying out the basic hello world example, as well as chirper, I do notice however that running the app with “activator runAll” uses 100% of a cpu core (on OS X at least). Anyone else notice that?

I could reproduce it, and it seems to be that activator is partly to blame for using 100% on all CPUs, since if I’m running sbt runAll less CPUs are spinning (but I still get 4 out of 8 CPUs at 100%). I did a quick investigation, and I think the embedded Cassandra server is to blame for most of the remaining waste of CPUs cycles.

Reproducible Test Case

  • Run activator runAll and notice how all CPUs are busy at 100%. Compare with sbt runAll where less CPUs cycles seem to be wasted (and the waste seems to be due the next item). This seems an activator template issue.
  • Run sbt lagomCassandraStart on the chirper activator template and notice how many CPUs (in my case (4 out of 8) are extremely busy, doing nothing 😃

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
ghostcommented, Mar 26, 2016

For impatient noobies like me: until the netty dependency gets fixed setting up standalone cassandra lowers CPU consumptions and takes about 5 minutes

//from documentation lagomCassandraEnabled in ThisBuild := false lagomCassandraPort in ThisBuild := 9042

1reaction
dottacommented, May 18, 2016

@stephenirven Indeed. There is a PR open that will fix that https://github.com/lagom/activator-lagom-java/pull/13

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To FIX High CPU Usage on Windows 10 - YouTube
How To FIX High CPU Usage on Windows 10 | 100 % CPU Usage Problem. 81K views · 1 year ago ...more. Softbay....
Read more >
My CPU is always running at 100% in TaskManager
When I open the task manager, my cpu is always at 100%. It never goes less than 100%. Programs are always changing. When...
Read more >
100% CPU load - Visual Studio Feedback
Build/deploy/run all seem to work fine, but CPU almost constantly at 100% and fan running hard. Unload iOS project and see the CPU...
Read more >
high cpu consumption by sbt main thread when running a ...
My recollection of Sbt is that it doesn't support multiple commands at once from the command line (compile and run). You have run...
Read more >
How to Fix High CPU Usage - Intel
You can expect high CPU utilization when playing some games, running a ... programs use up CPU and GPU bandwidth for different purposes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found