1

I'm looking into moving our CI process to a Linux instance on EC2. I've set up Jenkins on an m1.small Ubuntu Linux instance. The GWT compile process (via ant) takes about 60 seconds on our laptops but takes almost ten minutes on the EC2 instance. Granted, our laptops are MacBook Pros with 16GB RAM but even on our old CI server (Windows Server with 2GB RAM and TeamCity), the same process takes less than 2 minutes. Wondering if there's something in the default Linux configuration that might be interfering. I haven't done much to it other than install Jenkins, Apache and git.

We are compiling with localWorkers = 2 and Xmx512M.

Kyle Baley
  • 580
  • 1
  • 5
  • 16

1 Answers1

2

Compiling depends more on the CPU as opposed to RAM. EC2 small instance has 1 compute unit. "One EC2 Compute Unit provides the equivalent CPU capacity of a 1.0-1.2 GHz 2007 Opteron or 2007 Xeon processor."

I would not recommend you to compile on there. You can just compile locally and upload there since it is Java and JavaScript and runs everywhere.

SwiftMango
  • 15,092
  • 13
  • 71
  • 136
  • This is correct, you will need to use a much larger instance size to get comparable compile times. – datasage Mar 01 '13 at 01:10
  • Thanks for the clarification. This is for our CI process so the whole point of the server is to compile the app and run tests regularly. Guess we'll look at other options. – Kyle Baley Mar 01 '13 at 14:37
  • By way of update, I tried converting to a c1.medium instance (i.e. CPU-intensive medium with 5 EC2 Compute Units). Brought the total time down to 2.5 minutes. Time to crunch some budget numbers... – Kyle Baley Mar 01 '13 at 15:18