Kathy Lo <kathy.lo.ky@xxxxxxxxx> writes: > I found that the memory of the databaser server nearly used up (total 2G RAM). > After I stop the program, the used memory did not free. I see no particular reason to believe that you are describing an actual memory leak. More likely, you are just seeing the kernel's normal behavior of eating up unused memory for disk cache space. Repeat after me: zero free memory is the normal and desirable condition on Unix-like systems. regards, tom lane