A wide group of oil-producing countries has already cut production in hopes of supporting the price of oil, and Russia and Saudi Arabia said they want to extend the cuts through the first three months of 2018. Benchmark U.S. crude rose $1.01, or 2.1 percent, to settle at $48.85 per barrel. Brent crude, the international standard, rose 98 cents to $51.82 a barrel.

The price of oil has swung sharply in recent years, from more than $100 three years ago to less than $30 last year, as concerns wax and wane that supplies will overwhelm demand.

Companies that produce metals and other basic materials, along with financial stocks, were also strong.

The day’s rally continued a calm push higher for stocks in recent weeks. Markets around the world have been making modest, methodical gains as investors shrug off a long list of potential concerns.

South Korean stocks rose Monday even after North Korea launched a missile over the weekend and its leader promised more missile tests. The worldwide “ransomware” cyberattack continued to spread on Monday, which sent cybersecurity stocks like FireEye and Symantec higher, while politicians in Washington wonder whether Republicans’ odds of implementing tax cuts and other pro-business policies have diminished.

For the most part, signs of a strengthening global economy and improving corporate profits have been enough to allay investors’ fears and push markets to new heights. Profits have been rallying not only in the United States but also in Europe and other areas that have been struggling for years.

The recent run of calmness is a sharp turnaround from the start of last year, when twitchy investors were quick to sell on worries about the global economy.

“We do really see this prevailing sense of complacency,” said Jon Adams, senior investment strategist at BMO Global Asset Management. “I don’t think we see any dark clouds on the horizon, but I wouldn’t be surprised to see a 5 to 10 percent drawdown from now to year-end.”

Adams expects corporate profits to keep improving, which should help support stocks, but he points to several events that could jolt markets. Besides the uncertainty about what will happen on the Korean peninsula or in Washington, upcoming elections in the United Kingdom, France and potentially Italy could also upset what’s become a lazy ride for markets.

The euro rose to $1.0978 from $1.0924 late Friday. The dollar rose to 113.68 Japanese yen from 113.41 yen, and the pound rose to $1.2895 from $1.2879.

The 10-year Treasury yield ticked up to 2.34 percent from 2.33 percent late Friday. The two-year yield rose to 1.30 percent from 1.29 percent, while the 30-year yield rose to 3.01 percent from 2.99 percent.