LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
Search this Thread
Old 03-25-2013, 04:37 AM   #1
archieval
Member
 
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 289

Rep: Reputation: 41
Exclamation Cannot execute command, out of memory


Hello,

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 04:54 AM. Reason: added info
 
Old 03-25-2013, 05:51 AM   #2
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,010

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
as a normal user you will have no way to solve it. you would need either need sudo access, root passwd or someone who can help you.
 
Old 03-25-2013, 08:22 AM   #3
archieval
Member
 
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 289

Original Poster
Rep: Reputation: 41
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!
 
Old 03-25-2013, 08:28 AM   #4
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,010

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
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...
 
  


Reply

Tags
commands, out of memory, unix


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to execute command if memory usage is over + a question ps1x0 Linux - General 3 01-20-2013 04:11 PM
Can I execute a shell command and put the result in command field? fran4tw Linux - General 9 08-08-2011 09:27 PM
Only execute 2nd command on successufl execution of 1st command kregec05 Linux - Newbie 3 08-19-2009 11:29 AM
Execute a command , reboot and then execute another command ganeshp@moris.org Linux - Newbie 3 12-03-2008 01:51 AM
Execute code from memory? thedevilsjester Programming 2 02-25-2006 07:39 PM


All times are GMT -5. The time now is 03:16 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration