Simethicone
For anyone with sudsing problems or over-sudsing problems, I repeat my suggestion to get some simethicone. You can get it at the drug store in the digestive products section. You use less in a dishwasher than in a clothes washer, but it will keep down suds or knock them down if you notice that they are suddenly billowing. I buy the 180 mg gel caps for the safety of my neighborhood.
The other thing you can do with a clothes washer is to add a few drops of fabric softener chased with a cup or so of hot water through the detergent dispenser, but do not use fabric softener in a dishwasher. Simethicone is perfectly safe to use in either machine.