My Matlab 2014a interface really started lagging recently, after months of smooth and fast performance, on Ubuntu 14.04. Both the main Matlab window and the code editor window has a persistent response lag with both typing and selecting window components. If I type, then every few seconds the interface freezes and the text I typed during the freeze displays after the second-long freeze is over.
I'm running a dedicated i7 3770K with 32GB Ram, with 25GB free SSD system disk space, and I've never experienced this lag before. Other programs, like Chrome, Geany, Blender, SMPlayer, Firefox are all running smoothly as always.
I tried to see if another program is hogging Java, but could find none, and the CPU usage is even 0-5% when the Matlab lag persists. When Matlab has freshly started, it does not have the lag, but after normal usage, hours later it suddenly starts lagging. Code execution seems to happen at normal speed, it's just the interface that lags.
If I run a second Matlab session concurrently with the first and load the same workspace and files into the code editor, then the second Matlab performs smoothly without lag at least for a couple of hours.