# Why is Local using so much energy?

**URL:** <https://community.localwp.com/t/why-is-local-using-so-much-energy/4806>\
**Category:** Support\
**Created:** [January 13, 2018, 6:24pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806 "2018-01-13T18:24:44Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![clayteller](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clayteller/32/14467_2.png) [@clayteller](https://community.localwp.com/u/clayteller)\
**Post date:** [January 13, 2018, 6:24pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/1 "2018-01-13T18:24:45Z")

</div>

I am loving the switch from Desktop Server to Local, but occasionally I notice Local seems to be using a huge amount of energy/battery on my Mac. It is literally _draining my battery_, so much more than is normal on my Mac. Please see this uploaded screenshot from my Activity Monitor and you can see how much energy Local is using, compared to its average usage (which was 30, before the current energy usage drove the average up to 155). Do you have any idea what could be the cause? I would really appreciate help troubleshooting this, thanks!

 ![32 PM](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/8/87620c60f23525cc36369a43632389abb987ac67.png)

---

<div class="post-metadata">

**Author:** ![clayteller](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clayteller/32/14467_2.png) [@clayteller](https://community.localwp.com/u/clayteller)\
**Post date:** [January 13, 2018, 6:36pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/2 "2018-01-13T18:36:00Z")

</div>

I had 3 sites running and if I turn off any one of the 3 sites, the energy impact goes from around 150 to 10! Any idea why going from running 2 sites to 3 sites would jump the energy impact from 10 to 150?

---

<div class="post-metadata">

**Author:** ![philby](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/philby/32/4565_2.png) [@philby](https://community.localwp.com/u/philby)\
**Post date:** [January 14, 2018, 9:35am UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/3 "2018-01-14T09:35:30Z")

</div>

While I too have [wondered](https://local.getflywheel.com/community/t/native-docker-for-macos/99/8) about Local’s energy usage, what you’re seeing does seem a bit extreme. As if the server was really really busy doing… whatever it is it apparently likes doing.

Maybe its swapping RAM like crazy – in that case assigning more memory to the Local process in VirtualBox might help?

For comparison, here’s my Local Energy usage with 6 moderate-to-complex sites running

 ![53](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/c/c52e814aa2181a78ddcc5dac4eb2b3f202369e69.png).

---

<div class="post-metadata">

**Author:** ![clayteller](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clayteller/32/14467_2.png) [@clayteller](https://community.localwp.com/u/clayteller)\
**Post date:** [January 14, 2018, 6:16pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/4 "2018-01-14T18:16:08Z")

</div>

Yes, I do see now that “VBoxHeadless” is the process using all the energy (see attached screenshot).

 ![12 PM](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/6/60e82e3822e2e63626c333748186f319cf81e2f7.png)

---

<div class="post-metadata">

**Author:** ![clayteller](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clayteller/32/14467_2.png) [@clayteller](https://community.localwp.com/u/clayteller)\
**Post date:** [April 8, 2018, 10:44pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/5 "2018-04-08T22:44:34Z")

</div>

Ugh! I continue to have this issue on my macbook pro. I can only ever run 2 sites at a time or my energy usage jumps up to ~150, resulting in serious drain on my battery and serious heating up / fan noise. Is there anyone that can help me figure out this issue? I’m happy to provide logs or whatever is needed to troubleshoot, I’m just not hardcore enough to troubleshoot myself.

---

<div class="post-metadata">

**Author:** ![BocaJuniors](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@BocaJuniors](https://community.localwp.com/u/BocaJuniors)\
**Post date:** [April 10, 2018, 7:16pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/6 "2018-04-10T19:16:06Z")

</div>

Registered to respond… I have/had the same issue. On a previous thread it was suggested that git repository in the wp-content directory could cause this, but this was not my case.

In my case, at least one culprit was the plugin UpdraftPlus, that was running backups periodically. When I terminated the backup, the CPU usage for VboxHeadless dropped back down to ~2-10% CPU usage.

I’d check to see if any plugins may be running the background on your WordPress installation.

---

<div class="post-metadata">

**Author:** ![clayteller](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clayteller/32/14467_2.png) [@clayteller](https://community.localwp.com/u/clayteller)\
**Post date:** [April 10, 2018, 9:21pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/7 "2018-04-10T21:21:17Z")

</div>

Thanks so much for offering some suggestions! My git repo is in the same directory as wp-content, so that shouldn’t be an issue for me. I may be running UpdraftPlus or similar plugin…I’ll look into that.

---

<div class="post-metadata">

**Author:** ![clayteller](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clayteller/32/14467_2.png) [@clayteller](https://community.localwp.com/u/clayteller)\
**Post date:** [July 22, 2018, 10:48pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/8 "2018-07-22T22:48:41Z")

</div>

This continues to be an issue for me. I don’t see any WordPress plugins that would be affecting this. I just don’t understand while running one site, Local has an energy impact of around “10” and as soon as I run two sites the energy impact is around “100”! It’s very frustrating that I can only run one site at a time. If I run more than one, my computer gets really hot and my batter drains very rapidly. Is there anyone that works for Flywheel that can offer some support? I would greatly appreciate some help figuring out what’s wrong here.

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [July 23, 2018, 3:42pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/9 "2018-07-23T15:42:02Z")

</div>

@clayteller,

> [@clayteller](#):
>
> Local has an energy impact of around “10” and as soon as I run two sites the energy impact is around “100”

This is definitely interesting. Do you have Faster Docker Volumes enabled under Preferences » Advanced?

Also, can you try the following?

1. Stop all sites in Local
2. Create 2 new fresh sites in Local
3. Check Activity Monitor again

---

<div class="post-metadata">

**Author:** ![clayteller](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clayteller/32/14467_2.png) [@clayteller](https://community.localwp.com/u/clayteller)\
**Post date:** [July 23, 2018, 6:25pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/10 "2018-07-23T18:25:35Z")

</div>

Clay, thanks for checking in on this! I **don’t** have Faster Docker Volumes enabled. I stopped all sites and created 2 fresh sites and the energy impact was only around “14” with the 2 fresh sites running.

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [July 23, 2018, 7:24pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/11 "2018-07-23T19:24:15Z")

</div>

Got it. Thanks for testing that!

Go ahead and try enabling Faster Docker Volumes. That should reduce the CPU usage of the VirtualBox process.

If the `local-flywheel-unfsd` process ends up eating the CPU like VirtualBox, we can take a closer look at the site(s) to see what’s heavily using the disk/CPU.

---

<div class="post-metadata">

**Author:** ![clayteller](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clayteller/32/14467_2.png) [@clayteller](https://community.localwp.com/u/clayteller)\
**Post date:** [July 23, 2018, 7:49pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/12 "2018-07-23T19:49:11Z")

</div>

No problem. I enabled Faster Docker Volumes and tried running 2 sites at once. Unfortunately there was no change, it still jumps up to around “100”. Are there are any logs I can pull up to help pinpoint what’s causing this?

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [July 23, 2018, 8:17pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/13 "2018-07-23T20:17:11Z")

</div>

> [@clayteller](#):
>
> Unfortunately there was no change, it still jumps up to around “100”.

If you go to Preferences » Advanced again, is Faster Docker Volumes **still** enabled? If the Faster Docker Volumes server gets blocked by internet security or fails to start, that option will change.

> [@clayteller](#):
>
> Are there are any logs I can pull up to help pinpoint what’s causing this?

Have you tried running each of the two sites by itself? By that, I mean have you tried running only site A and then only site B?

> [@philby](#):
>
> Maybe its swapping RAM like crazy – in that case assigning more memory to the Local process in VirtualBox might help?

Also, have you tried doing what @philby mentioned above?

---

<div class="post-metadata">

**Author:** ![clayteller](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clayteller/32/14467_2.png) [@clayteller](https://community.localwp.com/u/clayteller)\
**Post date:** [July 23, 2018, 8:44pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/14 "2018-07-23T20:44:01Z")

</div>

Faster Docker Volumes is still enabled. Yes, when I run one site at a time the energy impact is only “10”. I have not tried what @philby mentioned—only because I couldn’t figure out how to do it. Do you know how I can assign more memory?

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [July 23, 2018, 9:11pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/15 "2018-07-23T21:11:34Z")

</div>

> [@clayteller](#):
>
> Do you know how I can assign more memory?

Yup!

1. Quit Local if it’s running
2. Open VirtualBox
3. Wait for `local-by-flywheel` to become “Powered Off” (if it doesn’t power off after 3 minutes or so, right-click on it and go to Close » ACPI Shutdown)
4. Right-click on `local-by-flywheel` and go to Settings
5. Go to “System”
6. Increase “Base Memory” to 2048MB
7. Press “OK”
8. Re-open Local

---

<div class="post-metadata">

**Author:** ![clayteller](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clayteller/32/14467_2.png) [@clayteller](https://community.localwp.com/u/clayteller)\
**Post date:** [July 24, 2018, 2:49pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/16 "2018-07-24T14:49:07Z")

</div>

Thanks for the instructions on how to do that! I increased memory to 2048 and unfortunately the behavior stayed the same: that 2nd site still bumps energy impact up to “100” (and stays at “100”). I guess I’ll decrease the memory back to 1024 since it didn’t seem to help. 🤷‍♂️

Do you have any idea what else could cause Local to use so much energy when going from running one site to two? I’m sorry this is a pain to troubleshoot. I wish I had a better understanding of the system and knew what I could look for.

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [July 24, 2018, 3:47pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/17 "2018-07-24T15:47:22Z")

</div>

> [@clayteller](#):
>
> I increased memory to 2048 and unfortunately the behavior stayed the same: that 2nd site still bumps energy impact up to “100” (and stays at “100”). I guess I’ll decrease the memory back to 1024 since it didn’t seem to help. 🤷‍♂️

Thanks for giving it a try!

* * *

Are you running a file watcher that’s automatically transpiling CSS/JS? If not an automatic transpiler, are you using LiveReload?

---

<div class="post-metadata">

**Author:** ![clayteller](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clayteller/32/14467_2.png) [@clayteller](https://community.localwp.com/u/clayteller)\
**Post date:** [July 24, 2018, 4:45pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/18 "2018-07-24T16:45:47Z")

</div>

Yes I sure am! Running gulp watch task to process postcss and livereload browser with browsersync.

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [July 24, 2018, 6:20pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/19 "2018-07-24T18:20:51Z")

</div>

> [@clayteller](#):
>
> Yes I sure am! Running gulp watch task to process postcss and livereload browser with browsersync.

Aha. Try disabling it (temporarily) and see if that helps with the `VBoxHeadless` CPU issue.

---

<div class="post-metadata">

**Author:** ![clayteller](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clayteller/32/14467_2.png) [@clayteller](https://community.localwp.com/u/clayteller)\
**Post date:** [July 24, 2018, 7:00pm UTC](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806/20 "2018-07-24T19:00:02Z")

</div>

😞 I stopped Gulp watch and started the 2 sites in Local after and it doesn’t seem to have any affect on the high energy impact. I also restarted Local and same results. Unfortunately doesn’t seem to have an affect on it. @clay am I the only one who has had this particular issue as far as you know? I just can’t think of anything unique about my setup that would make me any different than the next guy.

[Next page](https://community.localwp.com/t/why-is-local-using-so-much-energy/4806.md?page=2)
