|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi, In solaris I remember this direcotry structure Code:
/proc/<pid>/fd in this directory Code:
ls -l | wc -l would give me the number of file descriptor for that process. Where can I find the similar in HPUX Last edited by mohtashims; 07-11-2012 at 03:32 PM.. |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
HPUX has nothing like it.
The closest you might get is the various information ps can offer, which turns out to be quite a bit. |
| Sponsored Links | ||
|
|
#3
|
||||
|
||||
|
Are you looking for open files by the process? "lsof" is available for HP-UX as well. Code:
lsof -c process_name |
|
#4
|
|||
|
|||
|
And you can drill down on a process with HP-UX
glance and see which files that process has open.
Very important when configuring kernel parameters to know how many files a database client actually opens (it can be a large number). @Corona688 "HPUX has nothing like it." Sorry, but that is a rubbish post. Also there is no "ps" option for file descriptors on any unix/Linux Operating System. Last edited by methyl; 07-11-2012 at 07:23 PM.. Reason: rewrite |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
Quote:
Can you help me with the exact command ? |
| Sponsored Links | |
|
|
#6
|
||||
|
||||
|
Yes, with lsof it's very easy. To check numbers of file descriptors opened by a process: Code:
lsof -p PID | awk '$4~/^[0-9]/' | wc -l To check the max. limit that's set, on ksh type this: Code:
ulimit -n |
| The Following User Says Thank You to admin_xor For This Useful Post: | ||
mohtashims (07-13-2012) | ||
| Sponsored Links | |
|
|
#7
|
||||
|
||||
|
Check out these kernel parameters. Code:
# kctune maxfiles maxfiles_lim Tunable Value Expression Changes maxfiles 2048 Default maxfiles_lim 4096 Default Immed # ulimit -a | grep nofiles nofiles(descriptors) 2048 This will set it system wide, and with ulimit command you can change per user inside .profile, but not above the kernel parameter maxfiles_lim. Hope that helps. Regards Peasant. |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| file descriptor KSH | LiorAmitai | Shell Programming and Scripting | 6 | 05-16-2011 05:46 AM |
| File Descriptor | siba.s.nayak | UNIX for Dummies Questions & Answers | 1 | 12-12-2008 05:10 AM |
| File Descriptor | rimser9 | Shell Programming and Scripting | 3 | 08-14-2008 06:34 AM |
| File Descriptor Help | rahulrathod | UNIX for Dummies Questions & Answers | 3 | 10-14-2004 05:08 AM |
| bad file descriptor? | ftb | UNIX for Dummies Questions & Answers | 1 | 02-20-2002 06:19 PM |
|
|