csswust / lorun

判题模块
1 stars 0 forks source link

Fail in running Java code #1

Open Isaac-Graham opened 5 years ago

Isaac-Graham commented 5 years ago

Hello there, I found this library is powerful using in online judge system. So that I tried to use it to build my judger. Delightfully, it works very smoothly in judging CPP program. However, unfortunately, it fails in judging JAVA code. The error message is as follows:

"Error occurred during initialization of VM Could not allocate metaspace: 1073741824 bytes"

At the very beginning, I modified the java command with "-XX:MaxMetaspaceSize=128m", trying to decrease the allocated memory size. However, the failure occurs again with the error message as follows:

Error occurred during initialization of VM Could not allocate metaspace: 125829120 bytes

Note that the only difference is the allocated memory size.

I have stuck in this bug for about a week without any idea. Could you please give me some suggestions?

Cheers Isaac

Isaac-Graham commented 5 years ago

oooooops原来是中国人!不好意思我以为是English Speaker.

Isaac-Graham commented 5 years ago

大概情况就是,我在用这个库去运行cpp代码的时候非常顺利,但是在运行java代码的时候他报错了。说是无法allocate metaspace,但是问题在于如果我设定一个比较小的内存大小,它很容易就mle了,如果我设定一个不会mle的内存大小,他就不让我allocate。我已经在这里卡了很久了,没有什么思路。非常希望您能帮到我,我不胜感激!