trampgeek / jobe

jobe is a server that runs small programming jobs in a variety of programming languages
MIT License
108 stars 78 forks source link

C++ with compilearg -std=c++11 give a 'virtual memory exhausted: Cannot allocate memory' error #42

Closed menghuanpy closed 3 years ago

menghuanpy commented 3 years ago

I have a C++ program question, with a " compilearg -std=c++11" option. But Jobe gives me a 'virtual memory exhausted: Cannot allocate memory' error. If no compilearg given, no this error.

I am wondering where the problem is.

trampgeek commented 3 years ago

The RunGuard sandbox within Jobe limits how much memory a task can use. For C++ the default is 200 MB. The most likely explanation for your problem is that using the different standard has pushed the memory requirements for the task over that limit. Try increasing the memory allowed by setting the memorylimit parameter to a larger value, such as 400 (the units are MB).

menghuanpy commented 3 years ago

thank you. I will try it later.

trampgeek commented 3 years ago

Closing for now. Please reopen if the problem is not solved.