Web Hosting Talk







View Full Version : analog + dnstran + report magic = memory leak?


ffeingol
02-08-2002, 03:30 PM
Is anyone else running analog + dnstran + report magic seeing their memory/swap go away?

My memory/swap was slowly getting eaten way. I put some monitoring in place and I loose about 10 meg every time analog runs.

Your input would be greatly appreciated.

Frank

priyadi
02-08-2002, 04:22 PM
Does analog, dnstran or reportmagic leave out a process when it's done processing? And what o/s?

ffeingol
02-08-2002, 05:02 PM
linux. Nope, no processes. I believe it's an actual leak. Most likely analog or dnstran because they are both compiled "c" programs. doing a memalloc w/o freeing it.

I've been trying to recompile them with some leak detection libs.

Frank

priyadi
02-09-2002, 09:54 AM
The memory used by a program should be freed automatically by the kernel when the program exits. In your case, what happens if you run analog+dnstran+reportmagic multiple times until your memory get 'exhausted'?

My guess this is actually a feature of Linux, Linux use memory rather aggresively. The same thing happens here, when I reboot my machine, the memory usage is very low. When I run some standard processes, the memory usage rise, but if I kill those processes, it always won't get back to its initial state.