With seven large tech companies now accounting for more than one-third of the S&P 500 index’s weighting, investors are asking if this is a sign of overheating.