Differences between version 20 and revision by previous author of ProcessNotes.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 20 | Last edited on Friday, November 18, 2005 10:50:39 am | by CraigBox | Revert |
Older page: | version 18 | Last edited on Monday, August 23, 2004 1:16:06 pm | by PerryLorier | Revert |
@@ -143,7 +143,17 @@
!!Help I'm running out of file handles, what's using them all?
lsof | awk '{print $2}' | uniq -c | sort -n +1 | join -12 -21 - <(ps ax -o pid,command | sort -n) | sort -n +1
This one liner lists processes in the form "pid,number of open files,command" with the process using the most files at the end.
You can use this to determine which process on your system is leaking file handles, then use strace(1) to figure out why.
+
+Read about [Zombie processes|Zombie]
+
+!! Saving processes to disc (software suspend)
+
+Hate having processes die because of kernel upgrades? The thought of losing your irssi scrollback just too much for you?
+
+Get [Cryopid|http://cryopid.berlios.de/]. Compile (I needed zlib1g-dev on my Ubuntu machine which had build-essentials installed) and then run 'freeze' to save processes to disk. You start the process again by executing the file that it saves - there is no 'thaw' utility
+
+It can't save a screen session, but you can save the processes inside them and rescreen.
----
CategoryNotes