cloud-opensource-java
cloud-opensource-java copied to clipboard
OutOfMemoryError after printing circular dependencies
A user reported OutOfMemoryError after printing some linkage errors and circular dependencies.
Let's get some Maven artifacts that have many dependencies to reproduce the problem.
suztomo-macbookpro44% ./gradlew linkageCheck
> Task :linkageCheck
The dependency node com.fasterxml.jackson:jackson-bom:2.12.2 does not have any artifact. Skipping.
Expiring Daemon because JVM heap space is exhausted
Daemon will be stopped at the end of the build after running out of JVM memory
Expiring Daemon because JVM heap space is exhausted
<-------------> 0% EXECUTING [57s]
> :linkageCheck
^C% suztomo-macbookpro44% cat build.gradle
plugins {
id 'java'
id 'com.google.cloud.tools.linkagechecker' version "1.5.10"
}
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
compile 'org.apache.beam:beam-runners-direct-java:2.30.0'
compile 'org.apache.beam:beam-sdks-java-core:2.30.0'
compile 'org.apache.beam:beam-sdks-java-extensions-google-cloud-platform-core:2.30.0'
compile( 'org.apache.beam:beam-runners-google-cloud-dataflow-java:2.30.0') {
exclude module: 'beam-sdks-java-io-kafka'
}
compile 'org.apache.beam:beam-sdks-java-io-google-cloud-platform:2.30.0'
compile 'com.google.cloud:google-cloud-bigquery:1.127.12-sp.1'
compile 'io.grpc:grpc-netty-shaded:1.36.2'
compile 'io.grpc:grpc-alts:1.36.2'
compile 'io.grpc:grpc-api:1.36.2'
compile 'io.grpc:grpc-auth:1.36.2'
compile 'com.google.cloud.bigtable:bigtable-hbase-beam:1.20.0-sp.1'
compile 'com.google.cloud:google-cloud-bigtable:1.22.0-sp.1'
compile 'com.google.oauth-client:google-oauth-client:1.31.4-sp.1'
compile 'com.google.auth:google-auth-library-oauth2-http:0.25.2-sp.1'
compile 'com.google.cloud:google-cloud-trace:1.3.0-sp.1'
compile 'com.google.cloud:google-cloud-monitoring:2.1.0-sp.1'
compile 'com.google.api:gax:1.64.0-sp.1'
}
test {
useJUnitPlatform()
}
linkageChecker {
configurations = ['compile']
}