title: Slow performance on Docker Containers as a Compile and Run Sandbox
body: <p>I am trying to use the following github project to allow users to compile and run programs online. </p>
  
  <p><a href="https://github.com/remoteinterview/compilebox" rel="nofollow">https://github.com/remoteinterview/compilebox</a></p>
  
  <p>It came out to be a straight out of the box solution for a project and the overall code and configurations are very easy to understand and configure.</p>
  
  <p>However I am now getting a performance issue. </p>
  
  <p>Everything works good and fast If I run a single program from a single browser at a time. But If go to a little more real condition where multiple users(maximum 30) are trying to run piece of "Hello World" Java code at a single instance, the response time the containers increases up to 2-3 minutes and the many users.</p>
  
  <p>I was wondering If I am missing some configurations tweaks of docker or it the hardware level limitation?</p>
  
  <p>Following is my Hardware Configuration
  Processor : Core-i5 3.0 Ghz
  Ram : 12 Gb Total (On and average 8GB Free)</p>
  
  <p>The CPU Load is about 50% while Running 5 containers.
  Controlling CPU share and setting to 512 only makes it worst.</p>