IMHO your program is eating all the available memory without releasing/reusing...
how much percent of memory does that program take after 2-3 hours of running?.
Vivek
-- 'I' am not the body, 'I' am the 'soul', which has no beginning or no end, no attachment or no aversion, nothing to attain or lose.