- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Do I have a memory leakage ??
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
01-15-2002 09:23 AM
01-15-2002 09:23 AM
We have an app that performs very badly, though it runs 4 times quicker on supplier's (smaller) box. Database seems tuned OK.
/sbin/dmesg shows memory information:
physical 1048576 Kb, lockable 701920 Kb, available 816496 Kb.
Running 'top' shows 157 Mb real, 110Mb virtual, 235 Mb free (see attached).
Question is, where is the remainder of the 1 Gb memory ? Should real+free=1Gb ? Suggestion is that it has not been initialised properly at reboot, or possible bad memory chip in box, or is 'leaking' away.
I have re-booted the server and free memory showed high (800+ Mb), but it has gone down to 300 Mb over the course of the day.
I would be very grateful if someone could propose a way forward.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2002 09:29 AM
01-15-2002 09:29 AM
Re: Do I have a memory leakage ??
You will get a good picture of memory utilization if you have glance. It has a seperate memory detailed section.
Now, the difference between the total physical memory and the real+free is given to system memory and the buffer cache used.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2002 09:30 AM
01-15-2002 09:30 AM
Re: Do I have a memory leakage ??
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2002 09:33 AM
01-15-2002 09:33 AM
Re: Do I have a memory leakage ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2002 10:18 AM
01-15-2002 10:18 AM
Re: Do I have a memory leakage ??
In the past I have been successful at locating memory leaks by using the following command
UNIX95= ps -e -o ruser,vsz,pid,args | sore -rnk2 | more
This will list the memory for processess in desencing order. Run this command a few times. If the number in the second column (amount of memory) continues to rise then you probably have a memory leak.
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2002 11:39 AM
01-15-2002 11:39 AM
Re: Do I have a memory leakage ??
When you type in ipcs -mb what to you see.
Other tips mentioned will help. Glance is good tool. Also check buffer cache setting.
Also, Since you have a N running HP-UX 11.0 64 bit why not take advantage of getting to a bigger memory regions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2002 12:21 PM
01-15-2002 12:21 PM
Re: Do I have a memory leakage ??
TOP shows the following values for memory:
Memory: 1stval (2ndval) real, 3rdval (4thval) virtual, (5thval) free
these values can be understood as:
1. Total physical memory in the system dedicated to text, data or
stack segments for all processes on the system.
2. Total physical memory for runnable processes, as opposed to
sleeping processes.
3. Total memory dedicated to text, data or stack segments for all processes
on the system. Some of this is paged out to disk (that is, not all
of this is in current physical memory.
4. Total memory for runnable processes, as opposed to sleeping or stopped
processes.
5. Physical memory the system considers to be unused and available to new
processes. When this value is low, swapping is likely to occur.
g'd luck
t++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 02:21 AM
01-16-2002 02:21 AM
Re: Do I have a memory leakage ??
Attached document is screen dump a) of the Memory report produced by 'glance', and b) of the output from 'ipcs -mb'.
Should I be concerned at the high figure against 'Page Faults' ? What does the ipcs output tell me about shared memory ? Is the high memory utilisation reasonable ? Where do I find the GBL_MEM_UTIL ?
In short, I am still unsure whether there is a memory problem or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 03:05 AM
01-16-2002 03:05 AM
Re: Do I have a memory leakage ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 05:58 AM
01-16-2002 05:58 AM
Re: Do I have a memory leakage ??
From your glance, I would be worried about the page-outs, rather than the page faults.
Check your swap utilization with:
swapinfo -t
And to check if you have a memory hogger in the process list:
UNIX95= ps -e -o ruser,vsz,pid,args |sort -rnk2| head -n 10
to get the top 10 memory users.
MND
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 06:43 AM
01-16-2002 06:43 AM
SolutionLooks like you have the default max_dbc_pct value which is 50%. You can reduce it to 20%. You can set it even to around 10% as you don't do much disk IO (from your glance itself).
Adjust your buffer cache and then see how the system performs. I don't think you have any memory leaks.
If adjusting buffer cache doesn't help, then probably you need to buy little bit more memory.
-Sri