Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Heating up #1

Closed
erwindeclerck opened this issue Jul 26, 2015 · 4 comments
Closed

Heating up #1

erwindeclerck opened this issue Jul 26, 2015 · 4 comments

Comments

@erwindeclerck
Copy link

Hi Wouter

I am trying to use your docker-drupal on my MacBook Pro in a VirtualBox VM.
Works fine but in contrast to other containers my Mac tends to heat up like hell. My ventilator speeds up to almost maximum rpm after a few minutes. -> 95°C
I decreased the Execution Cap. of the boot2docker-vm to 40% but that gives me only a slight decrease in heat.
Do you experience the same behaviour on other installs?
I use VB 4.3.30 and boot2docker version 1.7.1, build 786b29d
I run Osx Yosemite 10.10.4 with 2,6GHz Intel Core i5 and 8 GB of RAM DDR3

Any suggestion?

Kind regards
Erwin

UPDATE

---> I think I found the source of the heat... I ran the docker via Kitematic, which I thought would be not much more than a gui, but in fact it does much more. When I run your docker directly in boot2docker, everything runs fine.
--> I also looked at the Mac-Activity-monitor who indicated that it was the 'electron-helper' proces taking insanely much processor time... I noticed on their community page the issue is known.
So: problem 'solved' at least I found a way around it.

@wadmiraal
Copy link
Owner

Wow, sorry for not getting back to you sooner.

Good to see you found a "solution". I'm mainly a Linux guy, so would not have had any suggestions to offer you anyways :-). But, glad to know it's working out.

I'm surprised, though, at how much strain my image puts on you MacBook. Surely, there's not that much going on inside the container. It actually should be pretty light-weight, with only Supervisord, MySQL and Apache running. PHP might not be exemplar in memory usage, but it's not that bad (Drupal is a memory hog, though). Did you activate Blackfire? If you don't pass any environment variables, it won't start it. And even then: Blackfire does not trigger for all requests, only when you ask it to via the companion.

@erwindeclerck
Copy link
Author

Hi Wouter
Thanks for replying anyway.
I didn't activate blackfire, but it seems that the problem had nothing to do with your containers;

After checking out with the developers of Kitematic, I found out that an upgrade of VirtualBox from 4.x to 5.0 solved the issue.
What was going on under the hood? I don't know. But I must admit, I'm far from an expert. I mainly try integrating Docker to simplify my Drupal development. Vagrant is nice but 'heavy' in comparison with containers.

Just one more thing I woul like to ask you. I'm still not 100% into the concept of these containers and I try to connect your container to a mailcatcher-container like https://hub.docker.com/r/schickling/mailcatcher/
Coupling containers is no problem but I don't get any mails outside of your docker. Is it because there is no mail or sendmail configured in your docker? If so, how do you handle mails in your development environment? Or what would you suggest?

Kind regards,
Erwin

@wadmiraal
Copy link
Owner

Good point. I don't send email usually while doing development, but your point is valid.

I installed sendmail on the same Docker image, and sending emails "worked" (but it is very slow), but they don't get delivered. I suggest Googling how to send emails from Docker. In my experience, maintaining email servers is a real pain, so I imagine it is not that easy to do it in Docker...

@wadmiraal
Copy link
Owner

No activity, closing issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants