I am running a shell script on university server in this shell script, I have Java, C, C ++, Python And execute the pell programs. Because every program will be executed many times (I'm a teaching assistant and will take the examinations of students with many different inputs). The server always gives me an error: "The system is running out of resources" I think that's why I do not leave the resource.
I have heard that running a program in the shell script will be an active process once. So I think there are probably so many processes which ended the support of the allocation system for me.
Is there a way to understand this problem?
I keep part of my shell code as the following:
# maxconnect4 is compiled for code ((i = 1; i & lt; = 21 ; I ++)) maxconnect4 input1.txt
thanks
Zhong
Since you are automatically running student programs, their programs may be badly written and use more RAM than similar programs, requiring skilled programmers. Here will be The Java and Python programs to think about it may be written in a manner such as memory leak (a stack which is never off it just gives you more things to push).
A good implementation of knowledge about the discretion of the grade.
You should also look at the source code for students' work. Especially if you get an error on your assignment.
You may also have an overloaded system, and these tests may need to be run on another machine. Using a machine that does not have other users, is a good idea for things like this, because the tests of you and the programs you choose are not likely to mess in your tests.
Comments
Post a Comment