Jobe memory limits

Jobe memory limits

por Vladimir Ilyin -
Número de respuestas: 2

I have a linux machine with 512Mb RAM only.

Jobe + Coderunner work fine, but when several students
send their Java solutions - testing fails.

If they wait and repeat sending it tested OK.

The logs (/var/log/jobe) are empty.

But I think that is because of small RAM.

Is it possible to avoid parallel testing in Jobe?

En respuesta a Vladimir Ilyin

Re: Jobe memory limits

por Richard Lobb -

Wow, I'm mildly astonished that even one Java run works on a 512 Mb machine, given what a memory hog Java is.

You could try the following:

  1. Find the line $config['jobe_max_users'] = 10; in <jobehome>/application/config/config.php. Change it to 1. Only one job submission at a time will then run.
  2. Find the line define('MAX_RETRIES', 5);  in <jobehome>/application/libraries/LanguageTask.php and change the 5 to, say, 20. This will mean that jobe will wait up to 20 seconds for any currently running jobs to terminate before aborting with a "Server Overload" error.
I certainly don't guarantee that this will work, but it's worth a try. Your machine is seriously underpowered and I've never tested under these conditions.

If those patches don't solve the problems, drop me an email and I'll give you an API key to use our outward-facing jobe server until you can upgrade your own.

Good luck!

Richard

En respuesta a Richard Lobb

Re: Jobe memory limits

por Vladimir Ilyin -

It seems to be worse then It was before changes....
So, please, give me the key, I can use the outward-facing jobe server.
And I'll try to upgrade my server as soon as possible.

My email is oivt@ya.ru

(your profile is not available for me
so I could not send the adress directly)