To try and combat the feelings I do what psychologists might call "rational self talk". For example, "there's hundreds of other guys I grew up with and none of them are so successful, some are even doing worse than me." Or, "I only see a superficial portion of this guy's life, he too must have stresses, worries and disappointments." But while my mind may assent to these things, it doesn't seem to have much power over feelings.
I guess the obvious solution would be to pursue success myself and stop focusing on others. It's a hard, compulsive habit to break though. I don't know why I constantly do things that I know are objectively bad for me. I feel sometimes like the rat in the experiment that keeps pushing the button to stimulate pleasure in its brain while it starves to death.
+ Show Spoiler +