Friday, December 11, 2015

Troubleshout Open file limit

lsof | awk '{ print $2; }' | uniq -c | sort -rn | head

- Show no of open files sorted by PID

cat /proc/<PID>/limits

- Check individual file limits of a process

ls /proc/<PID>/fd | wc -l

- to obtain a precise count of the open files at given instant of time

lsof -p <PID>
- This will list all open files with given process

In some cases you might have to look at the open file limit of the process which started your process.

Make sure you add "ulimit -n XXX" values inside your startup script, if you have configured it to start the process on machine startup or restart. Especially on Debian Linux flavour refer (https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/938669) 

12 comments:

  1. I really needed to compose one simple word yet thanks much for sharing the useful content here, would like to read this blog regularly to get more important updates...
    Best Online Software Training Institute | Oracle DBA Training

    ReplyDelete
  2. Hey, Wow all the posts are very informative for the people who visit this site. Good work! We also have a Website. Please feel free to visit our site. Thank you for sharing. Well written article Thank You for Sharing with Us pmp training institute in chennai | pmp training in chennai project management training certification | project management training in chennai | project management certification online |

    ReplyDelete
  3. I will tell you about my weakness: I love to play games of chance, especially roulette. Now there are many online sites for playing for real money, but my opinion fell on this casino only casinos Winning at a casino is almost impossible, but having a good time is easy

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. I really liked one site sitting at home I managed to make some money superior play now casino go and see how i did it

    ReplyDelete
  7. Thanks for your great and helpful presentation I like your good service. I always appreciate your post. That is very interesting I love reading and I am always searching for informative information like this.Also Checkout: angular 4 training in chennai | angularjs training in chennai | angularjs best training center in chennai | angularjs training in velachery

    ReplyDelete
  8. شركة كشف تسربات المياه شمال الرياض

    https://buff.ly/2KTaToa

    شركة كشف تسربات المياه شرق الرياض

    https://buff.ly/2Zqx4Fm

    شركة كشف تسربات المياه شمال الرياض

    https://buff.ly/2UMqiLA

    شركة كشف تسربات المياه شمال الرياض

    https://buff.ly/2GnodLN

     

    شركات نقل العفش بجدة كثيرة ومتعددة والإختيار بين أسطول الشركات الموجودة صعب ويعتمد الإختيار بين شركة نقل اثاث بجدة https://buff.ly/2ZoqMGi على إسلوب المندوب ودقة المواعيد وأداء العمل ويفضل إختيار الشركات على حسب خبرتها في مجال نقل العفش وعلى جودة الأداء والأمانة لأننا نترك لهم متعلقات المنزل بين متناول أيديهم .

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete