Index: /branches/rel_ag_9_4_5/debug/monitor.sh
===================================================================
--- /branches/rel_ag_9_4_5/debug/monitor.sh	(revision 20255)
+++ /branches/rel_ag_9_4_5/debug/monitor.sh	(working copy)
@@ -79,8 +79,10 @@
 	vmstat -z  >> $output_file
 	
 	ps -axww -o user,pid,ppid,pgid,sid,%cpu,%mem,vsz,rss,mwchan,state,tt,start,time,command >> $output_file
-	echo -e '\nTOP:' >> $output_file
-	top -S -d4 >> $output_file
+        echo -e '\nTOP sort by CPU usage:' >> $output_file
+        top -S -d4 >> $output_file
+        echo -e '\nTOP sort by memory usage:' >> $output_file
+        top -o res -a -d4 >> $output_file
 	echo -e '\nVMSTAT:' >> $output_file
 	vmstat 1 5 >> $output_file
 	echo -e '\nDISK FREE:' >> $output_file
