The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need Script to Use CPUs on a HPUX server to simulate Workload Manager on HPUX. cpolikowsky Shell Programming and Scripting 2 02-18-2009 08:20 AM
Heap and stack naan High Level Programming 5 04-30-2008 02:40 AM
AIX 5.3 Heap Memory with SAP johnf AIX 3 10-23-2006 05:21 AM
heap size for JVM! i2admin Filesystems, Disks and Memory 1 05-09-2002 09:09 AM
heap size! i2admin Filesystems, Disks and Memory 2 05-08-2002 10:20 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-30-2009
atgoel atgoel is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 1
Heap fragementation on HPUX

The Resident size(as observed from top) of my process is increasing. But, the behaviour is very random. My process works on request reponse model. So when i put some request load on my process the memory starts increasing. For initial few hours (approx ~3 hrs) it increase at a rapid rate and after that increase become stable. Some time after 30 min a 16 kb increase is observed some time after 2-3 hrs. And some times an increase of even 128kb is observed. Behaviour is really random. Attached are the some graph of resident memory of process taken at interval of 10 min each.

I tried wdb in BATCH mode with my process. But, it didnot detected any leaks. It produced only heap profile files.

Is there any way to find out that the wt=hether increase is due to fragmentation? Because lot of malloc are happening in my process.
Platform is HP-UX B.11.23 on HP itanium server. I can use wdb and glance tool(I only have working knowledge of both of these )

Also, considering the fact that memory increase is after 2-3 hr run how can i work with wdb in debugger mode. Means is it possible to automate printing the heap information and continuing from that point in gdb/wdb automatically?
  #2 (permalink)  
Old 06-30-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,643
First off, most implementations of malloc tend to hold onto any memory allocated by the brk() system call. None of the memory is released until the process ends.
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:20 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0