Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OutOfMemoryError after printing circular dependencies #2187

Open
suztomo opened this issue Aug 13, 2021 · 1 comment
Open

OutOfMemoryError after printing circular dependencies #2187

suztomo opened this issue Aug 13, 2021 · 1 comment
Labels
bug Something isn't working p3

Comments

@suztomo
Copy link
Contributor

suztomo commented Aug 13, 2021

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.

@dzou dzou added bug Something isn't working p3 labels Aug 13, 2021
@suztomo
Copy link
Contributor Author

suztomo commented Aug 13, 2021

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']
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p3
Projects
None yet
Development

No branches or pull requests

2 participants