Dear Sir,
I have some other problem here, please help me:
-- Problem 1: I install JDK 8u66 x64 on my server, and I check javac, java is OK, I compiled an example file (hello.java in domjudge/doc/exaples) is OK. But when I submit file in domjudge, judgedaemon run OK, but I receive error with output:
Compiling failed with exitcode 1, compiler output: Error occurred during initialization of VM Could not allocate metaspace: 1073741824 bytes
--> I don't know what I wrong, I read your Document, and I found out that about chroot, so I disable chroot, then I restart judgedaemon, but it's still not working, I can submit Java file (C, C++ is OK).
-- Problem 2: I want to use cgroup, I installed libcgroup-devel. But I don't know what is this:
- Edit grub config to add memory cgroup and swap accounting to the boot options. Edit /etc/default/grub and change the default commandline to GRUB_CMDLINE_LINUX_DEFAULT="quiet cgroup_enable=memory swapaccount=1". Then run update-grub and reboot.
--> I can't find out /etc/default/grub => I am using CentOS.
-- Problem 3: I want to install chroot. But when I run bin/dj_make_chroot => it's error: Error: No installation directory given. Then I run: bin/dj_make_chroot /home/domjudge/judgehost/chroot amd64, I get notification about install a package (debootstrap), but I get error when install (because this is a Debian package, not for CentOS).
Please help me, thanks for your support!
On Wed, Dec 9, 2015 at 3:06 PM, Vũ Linh Nguyễn linhnv2110@gmail.com wrote:
Dear Sir,
-- With my problem: +++ First: I make judgehost: make judgehost +++ I found error: gcc -fPIE -Wl,-z,relro -Wl,-z,now runguard.o /usr/lib/libm.so -o runguard /usr/lib/libm.so: could not read symbols: File in wrong format
+++ So, I run gcc -fPIE -Wl,-z,relro -Wl,-z,now runguard.o /usr/lib64/libm.so -o runguard ==> No error anymore
+++ Afterthat, I run make judgehost again to make sure that without any error was raise. +++ Final, I run: make install-judgehost withour any error
-- About cgroup: I will check this, if I get any problem, I will contact you, thank you so much!
Best regard, Linh
On Wed, Dec 9, 2015 at 2:22 PM, Tobias Werth werth@cs.fau.de wrote:
Hi,
On 12/09/15 04:27, Vũ Linh Nguyễn wrote:
I solved this problem, now I can run contest throughly! Everything is
OK.
great! Can you please describe how you solved the problem (for future reference)?
But I have a question: I run domserver and judgehost on a same server.
So when I start judgedaemon on server, problems submitted will be
compiled.
So I want to ask that if I can create many judgedaemon on this server?
And
how can I do this? Because some problems has longer executive time.
I only can remote connect to VPS via ssh, and my server is:
-- 16CPU Xeon -- Ram 12GB.
So can you give me some suggestion for my contest!
Did you enable cgroups as described in the manual? https://www.domjudge.org/docs/admin-manual-3.html#ss3.17
With cgroups (and after the creation of multiple run users), you can start multiple judgedaemons on one machine. Make sure, you have enough resources left for Apache and mysql on the server machine.
Cheers, Tobi
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
--
*---------------------------------------------------------------------------------------------* *Nguyễn Vũ Linh - Sói Hoang*
Software/Website/Game Developer - AI, PTS, Corel, AE Designer ...................... Phone: 0963.203.813 Website: http://ww-solution.me Email: linhnv2110@gmail.com | nguyen.vu.linh321@gmail.com ............................. Facebook: http://facebook.com/linhnv2110 Skype: linhnv2110@gmail.com