gradle dependency download terribly slow

 

I'm running bamboo cloud and starting my gradle build like this with a script task

chmod +x gradlew
./gradlew clean build

This works, but the resolution of my depencencies is very slow. the network on the other hand is fast (4MB/sec)

but my log says otherwise for jars of less than a megabyte.

My image configuration

Ubuntu: EBS x86_64 (Ubuntu) (stock image) (disabled)ami-5be8f232No EBSM3 General Purpose Medium

This is the logging from bamboo, note the timestamps

16-Jan-2015 21:29:26Download https://repo1.maven.org/maven2/org/webjars/angularjs/1.2.20/angularjs-1.2.20.pom
16-Jan-2015 21:33:41Download https://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
16-Jan-2015 21:37:55Download https://repo1.maven.org/maven2/org/webjars/d3js/3.4.11/d3js-3.4.11.pom
16-Jan-2015 21:46:24Download https://repo1.maven.org/maven2/org/webjars/leaflet/0.7.3/leaflet-0.7.3.pom

Anyone seen this issue? My build runs perfectly on a server instance (but with the gradle plugin)

1 answer

This widget could not be displayed.

Same problem here.  

If I log on to the bamboo agent and directory download a large dependency (hadoop-yarn-api, which is 1.8MB) with wget, it arrives in under 0.02 seconds.  Running gradle from the script task in Bamboo, it sometimes takes several minutes.

However, I think the problem could be to do with Gradle itself, and how long it takes to resolve dependencies.

Have you tried adding the --profile switch to your gradle command, and then creating a new artifact that saves the report (usually it's un build/reports/profile)?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

143 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you