I had similar problem, memory was increasing during the day and after one day almost everything was exhausted, even swap...
I run the next command on my Linux (centos 3.x):
ps -eo pid,ppid,rss,vsize,pcpu,pmem,cmd -ww --sort=pid
and found that I have tons of process like this...