Showing posts with label process. Show all posts
Showing posts with label process. Show all posts

Friday, 8 April 2016

Memory leaks beyond Htop


slabtop:
  Like top for kernal
  display kernel slab cache information in real time

Where is my memory used [if htop no good]:
  sudo cat /proc/meminfo

Interesting info on linux file system: http://unix.stackexchange.com/questions/4402/what-is-a-superblock-inode-dentry-and-a-file

Wednesday, 25 February 2015

Which process is using my port?

Find out which process is listening on port 6501:
  netstat -anpt | grep 6501

output: [num before python is process id]
tcp        0      0 127.0.1.1:6501          0.0.0.0:*               LISTEN      26541/python  

Thursday, 30 October 2014

Linux services jobs


How 2 Add a job to be run as sudo sv start job_name

  • mkdir /etc/sv/job_name/
  • vim /etc/sv/job_name/run  
  • (add command to run job)
  • ln -s /etc/sv/job_name /etc/init.d/job_name
  • ln -s  /etc/sv/job_name  /etc/service/job_name
     


http://serverfault.com/questions/400158/runit-created-first-service-directory-sv-start-testrun-does-not-work