Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am accessing a remote unix server and for some reason I think the memory is all used up. All I can execute is cd command. ls does not work also. Is there any way for me to kill any running processes under my username so I can free up memory? If I exit the server I cannot login again. I am left with one terminal and no one is on the other side to reboot the server there..
When executing other commands, this is shown:
ksh: 0403-031 The fork function failed. There is not enough memory available.
First I thought of using 'exec killall' to use the current shell so there will be no forking, but I have not done it yet because if it does not work, I will no longer have any shell..
Regards,
archieval
Last edited by archieval; 03-25-2013 at 03:54 AM.
Reason: added info
I have sudo access and I have tried the 'exec killall' but i didn't work. Guess I will have to wait for someone else to check it there. But if anyone has a solution in case this happens again, I will be interested for the answer. Thanks!
exec killall may kill itself (I do not know how did you executed). You would need to find the root cause, but it is really hard because of the system is not responsive. Probably the process table is full, there can be several reasons...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.