Sponsored Content
Operating Systems Solaris Sudden rise in heap memory of a process Post 302897111 by Nidds on Friday 11th of April 2014 02:42:04 AM
Old 04-11-2014
Sudden rise in heap memory of a process

Hi,

There is a abrupt memory rise observed for a process on solaris.
When the process is started the memory is around 268 MB and is stable for a day. Then suddenly the memory increased to 4364 MB.

Below is the pmap -xs output for the process (only for heap)
Code:
         Address     Kbytes        RSS       Anon     Locked Pgsz Mode   Mapped File
000000010012A000         24         24         16          -   8K rwx--    [ heap ]
0000000100130000        192        192        128          -  64K rwx--    [ heap ]
0000000100160000        192          -          -          -    - rwx--    [ heap ]
0000000100190000       2496       2496        320          -  64K rwx--    [ heap ]
0000000100400000     163840     163840     147456          -   4M rwx--    [ heap ]
000000010A400000    4190208          -          -          -    - rwx--    [ heap ]
000000020A000000       4096       4096       4096          -   4M rwx--    [ heap ]

Can anyone please help me in understanding the reason of sudden allocation of heap as huge as 4190208 (4 GB). What is the significance of empty RSS and Anon as observed for adress space
Code:
0000000100160000        192          -          -          -    - rwx--    [ heap ]
and
000000010A400000    4190208          -          -          -    - rwx--    [ heap ]

I also observed a sudden rise in CPU utilization when the memory rise for the process. And after that CPU utilzation was normal.

Can this be linked to sudden memory rise !

Moderator's Comments:
Mod Comment Please use code tags next time for your code and data. Thanks

Last edited by vbe; 04-11-2014 at 10:35 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Memory used by a particular process

how to get memory used by a particular process in unix? (3 Replies)
Discussion started by: superprogrammer
3 Replies

2. UNIX for Dummies Questions & Answers

Memory used by a process

Hello all 'top' command shows the top 15 processes in terms of CPU usage. Is there any other command in UNIX ,that will show the top processes in terms of memory usage ? or is there a command, that will give me the memory usage of a particular process ,if I pass the process id as a... (3 Replies)
Discussion started by: luft
3 Replies

3. AIX

Process using the most memory

Hi:- Is there an easy way to find out which process is consuming the most memory on an AIX server? Thanks, (5 Replies)
Discussion started by: janet
5 Replies

4. AIX

AIX 5.3 Heap Memory with SAP

Any idea whether this parameter can be set / adjusted and where please? (3 Replies)
Discussion started by: johnf
3 Replies

5. AIX

lvm_queryvg call does not work properly and results in a sudden memory rise.

On AIX 5.3 host, the lvm_queryvg call does not work properly and results in a sudden memory rise. This is happening on one particular host and the call works fine on another host. Is this a known issue and is there any patch available for this? (0 Replies)
Discussion started by: sandiworld
0 Replies

6. Linux

copy_from_user does not copy from process-heap

Hello all, I need a positive reply from you. I want to copy the user-process-heap to the kernel space memory. For that, I wrote the following code but it does not copy. ---------------- code -------------- unsigned long length_of_heap_vma = < length of vma pointing to process-heap > ; void *... (2 Replies)
Discussion started by: najoshi
2 Replies

7. UNIX for Dummies Questions & Answers

Checking heap memory size for java app

Hi I have one Java application installed in my Solaris system. Is there a way to find out the heap memory allocated size/used size/free size for the particular Java process? If anyone knows the command, please let me know. Even I appreciate if I have any scripts to find out the same. ... (0 Replies)
Discussion started by: nthiruvenkatam
0 Replies

8. Emergency UNIX and Linux Support

CPU and memory utilization of a process, by process name

Can someone please help me with a script that will help in identifying the CPU & memory usage by a process name, rather than a process id.This is to primarily analyze the consumption of resources, for performance tweaking. G (4 Replies)
Discussion started by: ggayathri
4 Replies

9. Solaris

[DOUBT] Memory high in idle process on Solaris 10 (Memory Utilization > 90%)

Hi Experts, Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing. Why memory utilization on solaris always looks high? I have statement about memory on solaris, is this true: Memory in solaris is used for... (4 Replies)
Discussion started by: edydsuranta
4 Replies

10. UNIX for Advanced & Expert Users

Troubleshooting sudden high memory usage

Hi, This morning there was an app that caused a sudden spike in I/O and memory usage in the server. We found the reason for the I/O, however the memory spike was something new, as it had never happened before. I figured out what caused the memory spike, however, how do I investigate why... (6 Replies)
Discussion started by: anaigini45
6 Replies
MALLOC_TRIM(3)						     Linux Programmer's Manual						    MALLOC_TRIM(3)

NAME
malloc_trim - release free memory from the top of the heap SYNOPSIS
#include <malloc.h> int malloc_trim(size_t pad); DESCRIPTION
The malloc_trim() function attempts to release free memory at the top of the heap (by calling sbrk(2) with a suitable argument). The pad argument specifies the amount of free space to leave untrimmed at the top of the heap. If this argument is 0, only the minimum amount of memory is maintained at the top of the heap (i.e., one page or less). A nonzero argument can be used to maintain some trailing space at the top of the heap in order to allow future allocations to be made without having to extend the heap with sbrk(2). RETURN VALUE
The malloc_trim() function returns 1 if memory was actually released back to the system, or 0 if it was not possible to release any memory. ERRORS
No errors are defined. ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). +--------------+---------------+---------+ |Interface | Attribute | Value | +--------------+---------------+---------+ |malloc_trim() | Thread safety | MT-Safe | +--------------+---------------+---------+ CONFORMING TO
This function is a GNU extension. NOTES
This function is automatically called by free(3) in certain circumstances; see the discussion of M_TOP_PAD and M_TRIM_THRESHOLD in mal- lopt(3). This function cannot release free memory located at places other than the top of the heap. This function releases only memory in the main arena. SEE ALSO
sbrk(2), malloc(3), mallopt(3) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. Linux 2017-09-15 MALLOC_TRIM(3)
All times are GMT -4. The time now is 07:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy