It may be beneficial for you to wait until the ten year mark to get divorced. If you file at the nine year mark, there is no guarantee you will be getting alimony.
In Maine, the law is this:
There is a rebuttable presumption that general support may not be awarded if the parties were married for less than 10 years as of the date of the filing of the action for divorce. There is also a rebuttable presumption that general support may not be awarded for a term exceeding 1/2 the length of the marriage if the parties were married for at least 10 years but not more than 20 years as of the date of the filing of the action for divorce.
That means that generally speaking, alimony won't be awarded until you've been married 10 years. However, rebuttable presumption means that you can show that you need alimony. You are well-advised to get an attorney, even though I know that many people do divorces in Maine without attorneys. Still, it's always better to have an attorney than not to have one.
The reubuttable presumption means you have to show that you absolutely need alimony. The law for that is here:
If the court finds that a spousal support award based upon a presumption established by this paragraph would be inequitable or unjust, that finding is sufficient to rebut the applicable presumption.
That means that if the court finds that it would be unfair for you to be deprived of alimony, it can award alimony to you. The problem is, it can award it to you -- it doesn't have to. You have a better chance after being married for 10 years, but even after 10 years, you may only get alimony that is not as much as you think. So, according to the above, you may only be able to get alimony for up to 5 years.