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