5 Replies Latest reply: Sep 22, 2011 6:09 AM by 889642 RSS

    /usr/bin/bash: Not enough space in solaris

    870361
      Hi,

      when I tried to run the unix command,
      for example ls => the application throws the error "/usr/bin/bash: Not enough space"
      if I restart the OS what happen

      Thanks

      Jx

      Edited by: Jx on 16 août 2011 06:56
        • 1. Re: /usr/bin/bash: Not enough space in solaris
          abrante
          It seems like you are out of some sort of resources, probably out of memory.

          Rebooting might help, but it might be better to try and figure out what you are out of and why..

          .7/M.
          • 2. Re: /usr/bin/bash: Not enough space in solaris
            870361
            When I try to connect with serial port
            =>warning no swap space to grow stack for pid 329 (ttymon)

            and it is impossible to restart.

            Thanks
            • 3. Re: /usr/bin/bash: Not enough space in solaris
              abrante
              Then you are out of memory and swapspace. Which is a rather bad combination.

              With a bit of luck you could grow the swap space by creating a new file somewhere where you have space:

              To grow with 1g:
              mkfile 1g /path/to/newfile
              swap -a /path/to/newfile

              .7/M.
              • 4. Re: /usr/bin/bash: Not enough space in solaris
                User171873
                You're in a very bad state because there is no space available to start any new process. It is best to try to determine what is causing the problem but to do that you're going to need to start somthing. Unless you can get to a window and kill something or somthing dies of its own accord you can't do much. Even you manage to free a bit of space, your memory hog could just grab whatever memory is available and you're back at square one.

                If you can get access to a running program and kill it off and run a quick ps -el so you can see what is gobbling space that would be great. Who knows, maybe you could then kill it. If not, you're probably stuck with something horribly unclean like resetting the machine to force a reboot while praying you don't damage any filesystems.

                Edited by: 822432 on Aug 16, 2011 12:48 PM
                • 5. Re: /usr/bin/bash: Not enough space in solaris
                  889642
                  rather than restarting OS I suggest you to boot your system in single user mode. and check for swap partition size.

                  Verify your swap size is enough capable to take the application/ db load on the machine.

                  if swap space is less you need to incrase swap parition size to cope up with current processing. if your disk is in mirror you need to perform those in all submirrors.

                  Reboot the OS in single user mode and u can check if fine. than u can go to multiuser mode.