views:

36

answers:

2

In my program, I create 100 threads, then wait for all of them to join and then repeat this operation again.

In each of the threads, I create some memory and free it. I am fairly sure, all the memory which I am creating in those threads are getting freed.

But, the SIZE output and RSS output of prstat are continously increasing. They are increasing regularly by 4M

What do these values indicate? Does it mean there is some memory leak?

A: 

Yes, continuously increasing memory usage indicates a memory leak.

zvrba