I don't think the republic of Venice ever had 2 million people, what time period are you referring to?
Wikipedia reports it peaked at 2.5m - "16th century estimate".