CPUs at 100% when running `runAll` on sample projects
See original GitHub issueExpected 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 withsbt 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:
- Created 8 years ago
- Comments:12 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
@stephenirven Indeed. There is a PR open that will fix that https://github.com/lagom/activator-lagom-java/pull/13