What size is your current battery? Age? They don't last forever, it just may be time to replace it. Usually when I start losing service time, I know it's time.
My last battery was a 29 series deep cycle which I used for starting, aerator, bilge pump & electronics (3 units). It was a Walmart battery and lasted for 5 years.
I replaced it with a 27 series dual purpose (Duracell Ultra) from Batteries Plus about a month ago. I guess time will tell how if it will hold up. I just wanted to try a dual purpose battery this time rather than a starting or a deep cycle. Batteries Plus was the only place I could find one in stock that was near me.
I'm happy if I get 3 years out of a battery, anything beyond that is a bonus.
My boat is plugged into an onboard charger when not in use.
I hope this helps.