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

java submissions always exceed memory limit #49

Closed
papagiorgio opened this issue May 4, 2012 · 3 comments
Closed

java submissions always exceed memory limit #49

papagiorgio opened this issue May 4, 2012 · 3 comments

Comments

@papagiorgio
Copy link

When I add a java assignment as a teacher and submit it as a student, I always get "Memory-Limit Exceed", even with the most basic "hello world" program. When I submit the same program to ideone directly it reports a memory usage of around 240MB. Although when adding the assignment I can only choose the maximum memory usage to be between 1MB and 64MB. Is there any way I can fix this, or am I doing anything wrong? This seems to be an issue with java programs. I made another assignment and can submit a c-program for example and get it accepted without any problems.

I hope this is the right place for such a question, I came here through the "Bug reports, feature requests, help wanted and other issues" link in readme.md. Any help is highly appreciated =)

@sunner
Copy link
Member

sunner commented May 5, 2012

240MB? It is hard to believe that.

You can set the upper limit at Settings block->site admin->plugins->local->onlinejudge

@papagiorgio
Copy link
Author

Wow...thanks for the quick reply thumbsup

Yes, that helped a lot, after I increased the limit to 256MB, the submission got accepted right away.

I know, I couldn't really believe it myself. But you can check it yourself: go to ideone, select java, just click "enter template" above the editor and submit the bare template. It'll come back with a memory usage of around 245632 kB which is roughly 240MB.

@sunner
Copy link
Member

sunner commented May 5, 2012

Thanks for the feedback, so that I can close this issue confidently.

I do believe what you said. The only thing that is unbelievable is the expansion of java. The default 64MB limit did work several years ago.

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