How do you know when it's time..?

How do you know when it's time to walk away from a marriage..? My husband doesn't abuse me or cheat on me or anything like that. He has a good heart, but I'm do miserably unhappy.

I don't know what to do. I promised my life to him before our families and God. And I don't want to break that promise, but I can't spend my life being miserable. I don't know what to do. Marriage is a huge commitment and I don't wanna walk away from it without giving it a chance to be saved.