Maven JGit Flow插件内存问题

时间:2018-06-08 11:29:47

标签: maven jgitflow-maven-plugin

我们使用ProGuard来模糊我们发布的部分内容,这会占用大量内存。但是,我们的Jenkins从属VM可以处理此问题 - 除非我们通过Maven JGit Flow pluginrelease-finish目标)创建实际版本。然后我们经常遇到内存问题:

[proguard] # There is insufficient memory for the Java Runtime Environment to continue.
[proguard] # Native memory allocation (mmap) failed to map 524288 bytes for committing reserved memory.Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000e3180000, 524288, 0) failed; error='Cannot allocate memory' (errno=12)

我认为这与this issues有些相关,后者表示当插件创建一个fork时MAVEN_OPTS会丢失。

由于问题仍然存在且非常不活跃,是否有人知道可能的解决方法?

0 个答案:

没有答案