When I stopped doing water changes in my fw setup I stopped having problems.
For marine, it depends on the setup -- size of system/total water volume, what sort of animals are you keeping (FO vs reef, SPS or no, etc, etc), what sort of nutrient export methods you use, and what sort of...