- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Display File Filling /tmp
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2008 11:41 AM
08-22-2008 11:41 AM
As root I've done an ls -al on /tmp but it does not show any file that is being written to /tmp that is filling it up...
Is there a way to find out what file is being written to /tmp and then deleted afterwards so I can get the developer to cease or at least use there own file system for this temporary file ??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2008 11:49 AM
08-22-2008 11:49 AM
SolutionThis sounds as if a process is creating a temporary file and immediately unlinking (removing) it while using it (keeping it open). This is a common technique. The advantage is that when the process terminates, the programmer doesn't need to perform any other actions to remove the file. The fact that the file's link count is zero, means that the disk blocks used are returned to the system.
You can use 'lsof' to see the files with a link count of zero (0):
# lsof +L1 +D /tmp
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2008 11:51 AM
08-22-2008 11:51 AM
Re: Display File Filling /tmp
If you don't have 'lsof' installed (and you should!), fetch and install it (no reboot required) from here:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.80/
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2008 11:51 AM
08-22-2008 11:51 AM
Re: Display File Filling /tmp
export TMP=/home/username/tmp
That way he could shoot himself in the foot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2008 06:10 PM
08-22-2008 06:10 PM
Re: Display File Filling /tmp
Is this /tmp or /var/tmp?
The latter is what users should be using.
>Paul: tmp env in his .profile.
>export TMP=/home/username/tmp
The official variable is TMPDIR for tempnam(3).
I'm not sure if tmpfile(3) removes the file at the start or at the end?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2008 09:14 PM
08-24-2008 09:14 PM
Re: Display File Filling /tmp
you can find the user or process which is the culprit for creating the filw in /tmp
Check who is using the /tmp using
1) fuser -cu /tmp
then u will get the pid
2)ps -ef |grep
you will get the idea which is processess and which user is resoponsible for it
Regards
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2008 10:10 PM
08-24-2008 10:10 PM
Re: Display File Filling /tmp
#du -akx /tmp | sort -nr > output1.txt
then execute the same after a while...
#du -akx /tmp | sort -nr > output2.txt
and compare the both files to see what grows:
#diff output1.txt output2.txt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2008 05:34 AM
08-25-2008 05:34 AM