BRUSSELS – The European Commission turned up the heat on Spain and Slovenia Wednesday, warning that the two struggling countries are facing “excessive” problems fixing their economies. Meanwhile, France’s government came under pressure to get its debt under control.

In its health-check of European Union countries with debt and deficit problems, the commission singled out Spain and Slovenia as countries where swift action was needed. Both countries have been hit by recession, high unemployment and ailing financial sectors.

The commission’s report recommended the two countries must both move swiftly to fix their ailing banking sectors — either through recapitalizing or winding down some banks — and further reform their economies.

As well as being the EU’s executive branch in Brussels, the commission is also the 27-country bloc’s economic watchdog, with the power to identify and pressure countries with vulnerable economies into taking action.

Unveiling the commission’s finding, Olli Rehn, the EU’s top economic official, said Spain must maintain the reform momentum since the country faces “formidable challenges.”

The report added that “high domestic and external debt levels continue to pose serious risks for growth and financial stability” in Spain.

Spain, the EU’s fifth-largest economy, is in its 18th month of recession with an unemployment rate of more than 26 percent. The country’s problems stem from its banking industry, which has been struggling under toxic property loans and assets since 2008.

Spain’s government has instituted harsh austerity measures to bring its deficit down from almost 7 percent of annual GDP.