Thanks Denny :-)
I remember writing a tool to prove this point in 1992, it was called ms
(memory status), it showed all memory segments (heap, text, shared
memory, shared objects, data segment etc). It worked the same as ps, but
then for memory. I had enough of explaining all the time that the SZ
Anjo response is correct. Try running truss against your executable. You will
see that brk is called for allocating memory. The way I understand it is,
brk/sbrk is the system call which allocates/deallocates memory and malloc is
the user mode library which internally calls brk/sbrk. I don't
Hi
brk, sbrk functions are used for DATA segments and we have problem with HEAP. Malloc
allocates space onto heap and not in DATA segment.
Seemingly the man page imply that it should not be used in conjunction with malloc,
calloc ,
that we are using.
Pasting from man pages :-
"USAGE
The b
hmm,
free() doesn't do sbrk() with a negative to reduce the process space. So yes
the space stays allocated.
Anjo.
- Original Message -
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 7:58 AM
> Hi
>
> SITUATION - On a production APP Server