find out what exactly is using all the memory, chances are it's a leak somewhere. try tools like top, and xrestop (xrestop will show whats using X shared memory). -- AndersAA