LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-21-2018, 10:19 AM   #1
JoRedHat
LQ Newbie
 
Registered: Jun 2018
Posts: 2

Rep: Reputation: Disabled
lsof command RHEL7


Why is default output of lsof command different between RHEL6 and RHEL7?
We see more output from lsof | wc -l RHEL7 when compared to same command RHEL6

Can this safely be ignored? Is there technical article release difference output?

2.6.32-696.18.7.el6.x86_64
lsof revision: 4.82
ulimit -nH ; ulimit -nS
32767
32767
lsof | wc -l
5033

XXXXXXXXXXXXXXXXXXXXXXXXXXXXX

3.10.0-693.11.6.el7.x86_64
lsof revision: 4.87
ulimit -nH ; ulimit -nS
32767
32767
lsof | wc -l
248449
 
Old 06-22-2018, 03:43 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
see man lsof: In the absence of any options, lsof lists all open files belonging to all active processes.

What is your problem?
 
Old 06-26-2018, 08:27 AM   #3
JoRedHat
LQ Newbie
 
Registered: Jun 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
lsof command RHEL7

There is no problem persay; more observation significant number of open files when compare RHEL6 and RHEL7 when same command is used.
So just concern since we run Webspere and set ulimit (hard and soft) for user, that's all, if we need to increase nofile limit as result of what appears to be increase of open files RHEL7. The open files for our our user account is significantly less so just tossing out there iin case know techincal write up reason lsof results differ RHEL6 and RHEL7 when simply run with no options.
 
Old 06-26-2018, 08:37 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
it highly depends on the number of running apps and their needs. I think you need to give us a precise description on how to reproduce these measurements. Also you can ask direcly RedHat, probably they have some information about it.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lsof command alternative zeusys Linux - Newbie 2 09-04-2011 05:59 PM
[SOLVED] Need an lternative for lsof command hk_centos Linux - Newbie 10 07-03-2011 01:57 AM
using lsof command rheosiva Linux - Newbie 2 04-02-2009 01:36 AM
using lsof command rheosiva Linux - Security 1 04-01-2009 08:56 AM
lsof: command not found ionian2k Linux - Newbie 1 12-26-2002 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration