Question Authors' Forum

Jobe memory limits

 
Picture of Vladimir Ilyin
Jobe memory limits
by Vladimir Ilyin - Saturday, 24 September 2016, 7:46 AM
 

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?

Picture of Richard Lobb
Re: Jobe memory limits
by Richard Lobb - Saturday, 24 September 2016, 11:35 AM
 

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

Picture of Vladimir Ilyin
Re: Jobe memory limits
by Vladimir Ilyin - Sunday, 2 October 2016, 6:02 AM
 

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)