Jealousy

I'm extremely jealous and the only reason is because I've been treated absolutely horribly in my past two relationships. I can't really control how jealous I am and it's just because I'm so insecure. How do I stop being so jealous?