如何解决渐变构建中的内存不足错误


Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ConnnectionExpirer"
*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message can't create name string at ./src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 827

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ExpirationReaper-0-Fetch"

在我的成绩中。propertiesorg.gradle.jvmargs=-Xmx8G-XX:MaxPermSize=2024m-XX:+HeapDumpOnOutOfMemoryError-Dfile.concoding=UTF-8

我的等级分布是等级-6.4.1

最近,我在代码中包含了许多集成测试,之后我开始看到这个错误。

我也遇到了同样的问题。这是Gradle的特色。如果打开任务管理器,您可以看到java进程(Gradle守护进程),每次运行测试都会占用越来越多的内存。当您打开Gradle日志文件时,您可以看到许多错误"Connection timeout"。我正在阅读别人的评论,他们会写——这是一个bug。因此,如果使用IntelliJ IDEA,则会有一个名为"Easy Gradle"、命令为Gradle Kill的插件。我用它。它杀死了格雷德尔的守护进程。

点击此处查看更多

最新更新