CHONGQING, China—China’s huge hog sector is struggling with excess production after millions of small, often first-time, pig farmers entered the industry to capitalize on record profits during a swine-fever related shortage. Now, even as prices hover below the cost of production and the government urges them to cull their herds, many of the newcomers are reluctant to give up, dimming hopes for the market returning to balance. “We’ve been losing $62,500 a month since July. But we made a profit last year so we’re going to hold on,” said Wu Zhanhang, a farmer based in central Henan, China’s top pig-producing province. Wu, like many others, entered pig farming for the first time in 2019, after China’s top leadership called for an urgent recovery following a nationwide outbreak of the deadly African swine fever virus that halved the country’s 447 million-strong herd. Profits initially boomed in line with higher prices for …