free() and memory usage
From: concern (conern_at_somewhere.net)
Date: 02/28/04
- Next message: Tejas Kokje: "question about fork()"
- Previous message: William Park: "Re: I need a script"
- Next in thread: Sean Burke: "Re: free() and memory usage"
- Reply: Sean Burke: "Re: free() and memory usage"
- Reply: those who know me have no need of my name: "Re: free() and memory usage"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 28 Feb 2004 19:08:41 GMT
Hi all,
On a linux box, there are several instances of my application running for
different purposes, testing/QA... I also running my own test instance
"myapp" on it. During working hours, the "size" in top of myapp is easily
grow and seems no uplimit; after working hour, with same input, the size
will remain around a certain amount, means:
on working hours(myapp was a little slower):
the test client sent 100 requests to myapp, the "size" would grew to 26mb.
after:
the test client sent exactly 100 same content(ensure same processing
routains) request to myapp, size aroud 16mb.
No memleak when checked with valgrind and mtrace() in above 16mb case (the
26mb case needs the working day though).
Here goes my questions:
1) the size of top constantly grows means a leak?
2) if free() of glibc doesn't (always?) return the memory to OS, is this
behave can be affected by process' current running env or time(how long the
process holds the resource) related?
3) what are other possible reasons for above different "size" with same
inputs/outputs to a process?
Thanks in advance
-sean
- Next message: Tejas Kokje: "question about fork()"
- Previous message: William Park: "Re: I need a script"
- Next in thread: Sean Burke: "Re: free() and memory usage"
- Reply: Sean Burke: "Re: free() and memory usage"
- Reply: those who know me have no need of my name: "Re: free() and memory usage"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|