mirror of
				https://github.com/coturn/coturn.git
				synced 2025-11-04 00:41:02 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			246 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			246 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
while sleep 1; do
 | 
						|
	DATE="$(date)";
 | 
						|
	PS="$( ps -p `pidof turnserver` -o 'pcpu,pmem,rss,vsz')";
 | 
						|
	TOP="$( top -p `pidof turnserver` -n1 -b -H -c )"
 | 
						|
	OUTPUT=$DATE"\n\n"$TOP"\n\nps\n"$PS"\n";
 | 
						|
	echo -e "$OUTPUT" | tee -a cpu-mem.log;
 | 
						|
done;
 |