Investors are suffering mounting losses as a decadelong rise in commodity prices unravels amid slowing emerging-markets economies, rising supplies of oil and metals and the eventual end of central-bank stimulus policies that propped up prices for raw materials.

The sharp reversal in the prices of commodities, ranging from gold to copper and aluminum, is undermining one of the most popular bets in global financial markets: that prices...