- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: disk space "disappeared" witk memory-leak pro...
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
10-09-2003 10:11 AM
10-09-2003 10:11 AM
du -ks . on /opt, there are only 1GB for file.
We killed a process and the disk space under /opt is released.
What caused those /opt file system full?
We know there is memory leak problem with that process. And why the /opt directoy is full?
How we fix the problem?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 10:13 AM
10-09-2003 10:13 AM
Re: disk space "disappeared" witk memory-leak process
-- Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 10:34 AM
10-09-2003 10:34 AM
Re: disk space "disappeared" witk memory-leak process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 11:13 AM
10-09-2003 11:13 AM
Re: disk space "disappeared" witk memory-leak process
Writing to disk is not a memory leak.
But if you're file system /opt is filling up, then attach the result of these commands and I'll help:
quot /opt
find /opt -xdev -ctime 0 -exec ll {} \;
du -k /opt | sort -rn | head -30
find /opt -name core
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 11:23 AM
10-09-2003 11:23 AM
Re: disk space "disappeared" witk memory-leak process
Even after you kill the processes, the space is still reserved in many instances.
The prior posts are right, the app needs to be dealt with. Seems there were not good rules for the programmers on this project.
A reboot will clear the space if I am right.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 02:54 AM
10-10-2003 02:54 AM
Re: disk space "disappeared" witk memory-leak process
bdf /opt(2 GB), the file system is %100 full.
Thenk I run du -ks under /opt,
there is only LESS than 1GB.
Where is another 1GB gone?
We checked with developers about the prcoess,
the program has NO file action under /opt. The process is a daemon. We need to recycly this daemon every two weeks to realalse the disk space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 03:28 AM
10-10-2003 03:28 AM
Re: disk space "disappeared" witk memory-leak process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 04:42 AM
10-10-2003 04:42 AM
SolutionThe third-party program "lsof" can show you the files that a process has open, even if they have been deleted. (Obviously they won't have a filename any more, but you'll be able to tell which filesystem they were on.)
bdf shows the actual allocated blocks on the filesystem. "du" only shows allocations that still have a filename associated with them-- this is why you see the difference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 05:17 AM
10-10-2003 05:17 AM
Re: disk space "disappeared" witk memory-leak process
ev/vg00/lvol5)
above is the result of lsof. How can we determine why the developer is using the /opt file system. They are also using /opt/oracle and /opt/tuxedo for Oracle and Tuxedo libraries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 05:22 AM
10-10-2003 05:22 AM
Re: disk space "disappeared" witk memory-leak process
The /opt is owned by bin:bin
Then how /opt be used by the process?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 05:28 AM
10-10-2003 05:28 AM
Re: disk space "disappeared" witk memory-leak process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 05:30 AM
10-10-2003 05:30 AM
Re: disk space "disappeared" witk memory-leak process
-or-
lsof -p 29836 (* your runaway process pid *)
This will list all open files.
Alternately,
# lsof /opt (* this may provide too much info *)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 08:41 AM
10-10-2003 08:41 AM
Re: disk space "disappeared" witk memory-leak process
Go look at the method by which this program is started and I bet you'll see the problem.
A more correct way to do this is to redirect stdout/stderr to /dev/null if not needed, or to a file in /var if needed.
The best way to do it is to follow the conventions for daemon programming described in the excellent book "Advanced Programming in the UNIX environment" by W. Richard Stevens. In my book, this is chapter 13. It contains all kinds of good information on how to avoid problems with daemon processes.