The longest I worked for a company is around 6-7 years.
As long as you get the opportunities to develop your skills in the areas you want (so that they are still relevant in the job market) and there is a good team around you, it doesn't make sense to change jobs just to change jobs. It's generally difficult to get a meaningful salary increase without a job change and that's the main reason most people are looking for new jobs, I think.