I have a very annoying problem with the Dock process - after more than a few hours of uptime, the memory usage will spike to more RAM than I have. The process will begin to thrash the hard drive at the maximum speed that it can (according to iotop), and it will regularly use more than 100% of CPU, which I guess means that it's using more than one core at the moment. The number of threads in use ranges between 5 and 12.
Even though I have 12gb of RAM, I regularly start running into the swap file, and I have to kill the Dock process. This resets the amount of memory that it uses to about 60mb, but within minutes, it will be taking up more than a gigabyte again.
Because of the high memory usage, CPU usage and swapping, this regularly makes my computer entirely unusable. Given that this is my main work machine, I will have to probably reinstall it soon if I cannot find a solution, and I can only hope that reinstalling it will actually fix the problem. Has anyone encountered a similar issue before?