小编jjs*_*out的帖子

当 -Xmx 设置为超过 1g 时,分叉的虚拟机在没有正确说再见的情况下终止

我正在学习一门课程,其中作业是使用 Maven 执行的,并且 .pom 文件随项目一起提供。该分配需要大约 1.5GB 内存来处理。然而,当提供超过 1GB 时,我收到以下输出:

[WARNING] Corrupted STDOUT by directly writing to native stream in forked JVM 1
ExecutionException The forked VM terminated without properly saying goodbye. VM 
crash or System.exit called?
Error occurred in starting fork, check output in log
Run Code Online (Sandbox Code Playgroud)

转储内容如下:

Corrupted STDOUT by directly writing to native stream in forked JVM 1. Stream 
'Error occurred during initialization of VM'.
java.lang.IllegalArgumentException: Stream stdin corrupted. Expected comma 
after third character in command 'Error occurred during initialization …
Run Code Online (Sandbox Code Playgroud)

java maven maven-surefire-plugin

6
推荐指数
0
解决办法
7636
查看次数

标签 统计

java ×1

maven ×1

maven-surefire-plugin ×1