I found out that the maximum amount of portals is 311, at that point it stops adding portals, no matter how much the jam meter is empty, but that doesn't stops from harvesting even more jam.
I kinda of wish it went even further than 311. However, the goal at this point is to get so many customers that the production can't keep up with demand, and then pick back and forth between those.