Upvote:5
You should not apply for ESTA unless you intend to abandon your permanent residence. If you do not want to abandon your permanent residence, you can apply for a returning resident visa (thanks to Traveller for the link).
If you do intend to abandon your permanent residence, I believe you can do that either with a consular officer at the consulate or embassy, or with an immigration officer at the border.