- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- memory problem
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-05-2002 11:44 AM
08-05-2002 11:44 AM
I have one software which uses 400MB memory. I found a tricky problem in my memory. Befor I run the software, I check the memory statistics:
statis total used avail %used
physical 768 145 622 19%
I run the program for two days. Then I kill the program. I check the memory statistics again, it changed a lot:
statis total used avail %used
phyiscal 768 460 307 60%
Would someone please tell me why this happens?
Thanks a lot!!
zhiyong
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2002 12:03 PM
08-05-2002 12:03 PM
Solutiongrowing OR it could be allocating memory and not freeing it; there is simply no way to know at this point.
You could use Glance to monitor the processes memory use or you could use this sar command:
UNIX95= ps -e -o "user,vsz,pid,ppid,args"|sort -rnk2|more
If you know the PID you are interested in, you could restrict the ps command using the -p argument.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2002 12:03 PM
08-05-2002 12:03 PM
Re: memory problem
Is this your code? or a vendors?
There is a program called tusc (like the common truss) for HP-UX which will show you all the calls a program makes. There is also a utility shmem which will show you what is occupying what ranges in memory. Dont worry about these tools if it is vendor code your running, but contact the vendor to have their code fixed.
If this is your code, you will have to sift through and see where you may illegally be dumping off memory. Windows has taught people that sloppy memory management in code is okay, cuz the OS cant manage memory anyway. Good coding says for every malloc() there is a dmalloc().
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2002 12:14 PM
08-05-2002 12:14 PM
Re: memory problem
The best thing I would do is to check the system memory usage with GlancePlus. You can easily find out a memory leakage with this tool. Find out the process usage, memory and CPU usage. Apply any patches if necessary to solve the issue.
hth,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2002 02:15 PM
08-05-2002 02:15 PM
Re: memory problem
Thanks a lot.
I will use glance to check if there is memory link.
zhiyong