- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- memory leakage in application
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
09-01-2004 10:22 PM
09-01-2004 10:22 PM
On a rp5430 running HPUX11.00 we have an application flooding syslog with the following msgs:"Sep 1 11:34:48 hippo SPOServer[18242]: clnt_dg_create: out of memory
Sep 1 11:46:16 hippo SPOServer[18242]: xdr_bytes: out of memory". The server itself doesn't have problem with memory. Here's output from ipcs -moba:#
IPC status from /dev/kmem as of Thu Sep 2 10:40:25 2004
T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME
Shared Memory:
m 0 0x411c0231 --rw-rw-rw- root root root root 0 348 462 462 20:45:31 20:45:31 20:45:24
m 1 0x4e0c0002 --rw-rw-rw- root root root root 1 31040 462 462 20:45:27 20:45:31 20:45:24
m 2 0x41200ab5 --rw-rw-rw- root root root root 1 8192 462 474 20:45:27 20:45:24 20:45:24
m 10803 0x78840edb --rw-rw-rw- pro staffwar pro staffwar 26 6968 18137 18166 20:15:47 no-entry 20:15:45
m 404 0x788453f8 --rw-rw-rw- swuser staffwar swuser staffwar 26 4722360 13121 18166 20:15:47 no-entry 22:18:16
What does this output imply?
Rgds
NilsI
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2004 10:34 PM
09-01-2004 10:34 PM
Re: memory leakage in application
UNIX95= ps -C "program_name" -o "vsz, ruser, pid"
Run it every 5-10 mins and check how the memory is used.
There are also some products like purify to check the memory leaks.
How much swap space you have??? How much is used and what is the memory utilization??
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2004 11:46 PM
09-01-2004 11:46 PM
Re: memory leakage in application
hp gdb can be used to detect memory leaks. links are under http://www.hp.com/go/wdb .
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2004 01:09 AM
09-02-2004 01:09 AM
Re: memory leakage in application
# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 76 4020 2% 0 - 1 /dev/vg00/lvol2
reserve - 830 -830
memory 1526 867 659 57%
total 5622 1773 3849 32% - 0 -
UNIX95= ps -eopid,vsz,user,args |sort -rnk2|pg
21863 495836 pro /usr/staff/bin/swentobjsv
1423 20332 root /usr/ecc/exec/MHR510/mhragent
18141 18632 swuser /usr/staff/etc/wisrpc 1073759963 0 18139
18154 16712 swuser /usr/staff/etc/wisrpc 1073759963 13 18139
18155 14024 swuser /usr/staff/etc/wisrpc 1073759963 14 18139
18139 12472 swuser /usr/staff/etc/wqsrpc 391875 18138
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2004 02:54 AM
09-02-2004 02:54 AM
SolutionAs you are already aware, 'out of memory' errors won't get generated if the system runs out of physical memory as HP-UX uses virtual memory.
This could be a result of shot of swap space, insufficient kernel limits for anyof the *siz (_64bit if it is a 64 bit program), kernel tables such as nfile etc., Check with your application vendor on their recommendations for the kernel parameters. You are looking good on swap usage. Running short of physical memory may slow down your system but shouldn't give those errors. To find out memory leaks, run
UNIX95= ps -e -o 'vsz pid ruser args' at periodic intervals and find the processes whose vsz is gradually increasing over the time.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2004 03:11 AM
09-02-2004 03:11 AM
Re: memory leakage in application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2004 02:29 PM
09-02-2004 02:29 PM
Re: memory leakage in application
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2004 07:24 PM
09-02-2004 07:24 PM
Re: memory leakage in application
I've changed the value of maxdsiz to 2Gb in June.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 12:16 AM
09-03-2004 12:16 AM
Re: memory leakage in application
ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/
Since shared memory uses a common map for all programs that need it, the map may be exhausted or fragmented. You'll need to look at memory windows as a workaround for shared memory fragmentation. You'll need the latest patches to implement memory windows.
Bill Hassell, sysadmin