Hi Jaap, I increase the MEMRESERVED variable in the java executable compile script to 4GB then I do compile java again, problem output : Problem: A - A Submitted: 09:39 Language: Java Result: compiler-error
Compilation output
Compiling failed with exitcode 1, compiler output: Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Compilation failed. Include images please have a look Lec. Huỳnh Anh Dũng ACM/ICPC SUPERVISOR FPT UNIVERSITY. http://www.fpt.edu.vn
-----Original Message----- From: DOMjudge-devel [mailto:domjudge-devel-bounces@domjudge.org] On Behalf Of Jaap Eldering Sent: Thursday, April 28, 2016 9:27 AM To: domjudge-devel@domjudge.org Subject: Re: Questions
Did you also increase the MEMRESERVED variable in the java executable compile script accordingly, e.g. to 4 GB? (something below the real memory limit, because the difference is what's available to the java submission)
Jaap
On 27-04-16 23:20, Huynh Anh Dung wrote:
Hi Jaap I upgrade memory from 6 GB to 8GB then I do compile java file again, this this output problem. Problem: A - A Submitted: 09:17 Language: Java Result: compiler-error
Compilation output
Compiling failed with exitcode 1, compiler output: Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Compilation failed.
Lec. Huỳnh Anh Dũng ACM/ICPC SUPERVISOR FPT UNIVERSITY. http://www.fpt.edu.vn
-----Original Message----- From: DOMjudge-devel [mailto:domjudge-devel-bounces@domjudge.org] On Behalf Of Jaap Eldering Sent: Thursday, April 28, 2016 8:57 AM To: domjudge-devel@domjudge.org Subject: Re: Questions
Hello Huỳnh Anh Dũng,
Given your previous email you don't have cgroups enabled. In that case you should raise the memory limit to something quite high. I'd suggest to start with 2GB and increment this to 2.5 and 3 GB if it doesn't work yet. That's because the Java VM pre-allocates a lot of memory. With cgroup support this is not an issue, but without you have to add that overhead to the memory limit. Then you also have to change the value of MEMRESERVED in the java compile script executable you use (java_javac_detect by default).
If you're trying to enable cgroups, then make sure to follow the instructions in the administrators manual. In particular, make sure to edit the boot options, reboot, and after that, again run './configure' and rebuild and reinstall domjudge.
Jaap
On 27-04-16 22:38, Huynh Anh Dung wrote:
Hi, My default setting, I need to change any value here, to help system can compile java file.
Lec. Huỳnh Anh Dũng ACM/ICPC SUPERVISOR FPT UNIVERSITY. http://www.fpt.edu.vn
-----Original Message----- From: Tobias Werth [mailto:tobias.werth@fau.de] Sent: Thursday, April 28, 2016 12:24 AM To: Huynh Anh Dung dungha@fpt.edu.vn; 'Jesús Alberto Domínguez Alfonso' jesusalbertodominguez1983@gmail.com; DOMjudge-devel@domjudge.org Subject: Re: Questions
Hi,
On 04/27/16 17:27, Huynh Anh Dung wrote:
define('USE_CHROOT', true); and how to disable to run java file as you recommend
to disable the chroot, you set this value to false. Note that disabling the chroot is strongly discouraged since it reduces security.
I have problem about JAVA please help how to fix this problem.
I assume that you do not use cgroups (using cgroups is also strongly recommended). Then you have to increase the memory limit by a huge margin.
See https://www.domjudge.org/docs/admin-manual-8.html#ss8.3 for details.
Tobi
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
_______________________________________________ DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel