if you are running the most current version of FS but it takes 2 weeks to notice the problem then the newest your FS could be today is 2 weeks old? =D are you getting your updates from GIT?
I have gone through several iterations of pulling new updates from git, rebuilding and restarting freeswitch and waiting while the CPU usage rises. I will rebuild again today before I restart as well. Hopefully the problem will just go away this time. Otherwise, I will let you know what I find using your method; thanks for the help! -Kevin
What I recommend is when you have the problem where there is noticeable CPU usage, run top -H and look at the cpu usage on a per-thread basis. When you find the one that is using a lot of CPU, make note of it. Then get a gcore and dump it into GDB so you can see what the thread in question is doing..
you can get a gcore from the fs build root with ./support-d/fscore_pb gcore<yourname>
Then compare the results on the url provided from that script with the info from top -H