echocat / gradle-golang-plugin

Gradle plugin to build, test and do other stuff of Golang projects.
https://github.com/echocat/gradle-golang-plugin
Mozilla Public License 2.0
44 stars 8 forks source link

Got GC overhead limit exceeded exception #33

Open timleung22 opened 6 years ago

timleung22 commented 6 years ago

Build failed with error message Got GC overhead limit exceeded exception. With the debug level log, I got 08:44:31.865 [INFO] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] :basePrepareSources (Thread[Task worker for ':' Thread 2,5,main]) started. 08:44:31.865 [null] [org.gradle.internal.progress.DefaultBuildOperationExecutor]

Task :basePrepareSources 08:44:31.865 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Build operation 'Task :basePrepareSources' started 08:44:31.865 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Starting to execute task ':basePrepareSources' 08:44:31.866 [INFO] [org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter] Putting task artifact state for task ':basePrepareSources' into context took 0.0 secs. 08:44:31.866 [DEBUG] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Determining if task ':basePrepareSources' is up-to-date 08:44:31.866 [INFO] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Executing task ':basePrepareSources' (up-to-date check took 0.0 secs) due to: Task has not declared any outputs. 08:44:31.866 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':basePrepareSources'. 08:44:31.866 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Build operation 'Execute runBare for :basePrepareSources' started 08:44:31.866 [INFO] [org.echocat.gradle.plugins.golang.tasks.BasePrepareSources] Prepare GOPATH ... 08:49:29.677 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] DaemonExpirationPeriodicCheck running 08:49:29.677 [DEBUG] [org.gradle.launcher.daemon.server.health.DaemonMemoryStatus] GC rate: 1.20/s tenured usage: 99% 08:49:29.677 [WARN] [org.gradle.launcher.daemon.server.health.LowTenuredSpaceDaemonExpirationStrategy] Expiring Daemon because JVM Tenured space is exhausted 08:49:29.678 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry. 08:49:29.678 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry. 08:49:29.678 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry. 08:49:29.678 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry. 08:49:29.678 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry. 08:49:29.678 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry. 08:49:29.679 [DEBUG] [org.gradle.launcher.daemon.server.DaemonRegistryUpdater] Storing daemon stop event: after running out of JVM memory 08:49:29.679 [DEBUG] [org.gradle.launcher.daemon.registry.PersistentDaemonRegistry] Storing daemon stop event with timestamp 1512049769679 08:49:29.680 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on daemon addresses registry. 08:49:29.680 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry. 08:49:29.686 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry. 08:49:29.687 [LIFECYCLE] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Daemon will be stopped at the end of the build after running out of JVM memory 08:49:29.687 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Stop as soon as idle requested. The daemon is busy: true

...

Task :basePrepareSources 08:49:57.629 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Completing Build operation 'Execute runBare for :basePrepareSources' 08:49:57.629 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter] Removed task artifact state for {} from context. 08:49:57.629 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':basePrepareSources' 08:49:57.629 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Completing Build operation 'Task :basePrepareSources' 08:49:57.629 [null] [org.gradle.internal.progress.DefaultBuildOperationExecutor] 08:49:57.629 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Build operation 'Task :basePrepareSources' completed