Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
menghuanpy opened this issue Nov 28, 2020 · 3 comments

Comments

@menghuanpy
Copy link

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
Copy link
Owner

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
Copy link
Author

thank you. I will try it later.

@trampgeek
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants