Jenkins+Gradle异常处理

2020-07-29  本文已影响0人  果冻_50fc

异常:

Expiring Daemon because JVM Tenured space is exhausted

Daemon will be stopped at the end of the build after running out of JVM memory

Expiring Daemon because JVM Tenured space is exhausted

:packageType_0_xbRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':packageType_0_xbRelease'.

> Java heap space

原因:Java虚拟机堆内存不满足gradle的deamon要求的最低值,堆内存溢出

解决方法:

Jenkins打包时加上--no-deamon参数

本机打包时在c:\User\x\.gradle\gradle.properties中加入以下配置

org.gradle.parallel=true

org.gradle.daemon=true

org.gradle.jvmargs=-Xmx12800M

org.gradle.configureondemand=true

参考文章:https://www.cnblogs.com/liushengchieh/p/9729786.html

上一篇下一篇

猜你喜欢

热点阅读