Originally posted by: Edward Davignon
Word to the wise:
Make sure you set your ulimits to something less than the amount of memory you have available before editing a large file on an important server.
Don't trust unlimited ulimits. Especially if you use commands like :sort
Don't ask me how I know.
# ;-) ;-) ;-) ;-) Ignore below ;-) ;-) ;-) ;-)
# There's nothing to see down here
# scroll no further.
[...]
$ ssh $server
ssh_exchange_identification: Connection closed by remote host
[...]
vtmenu
[...]
Console login: [...]
[...]
/etc/profile[50]: cannot fork: no swap space
.profile[88]: cannot fork: no swap space
ksh: cannot fork: no swap space
$ exec ps gvww
ksh: cannot fork: no swap space
$ PID TTY STAT TIME PGIN SIZE RSS LIM TSIZ TRS %CPU %MEM COMMAND
[...]
21299470 - A 271:15 56662 11118744 230444 xx 3005 2036 2.6 1.0 vim -n y
22610248 - A 270:06 32402 37268124 32220592 xx 3005 2036 2.6 78.0 vim -n x
# Fortunately this was just a sandbox server
# I wonder if that is why my PuTTY sessions suddenly disappeared, which means they exited gracefully from an SSH protocol stand-point.