NEW YORK — Gasoline is near the highest it’s ever been for this time of year, just ahead of the Labor Day weekend.

The run-up in oil prices this year, combined with a rash of refining problems throughout the U.S., has boosted pump prices. The national average today is $3.629 per gallon. Drivers will pay more for gasoline this Sept. 1 than in any other year except 2008, when pump prices hit an average of $3.686.

In Maine, the average price of gasoline is even higher – $3.711 at 12:50 p.m. today, according to

Retail gasoline prices are rising in the U.S. even though motorists are buying less. Analysts say they have been pushed higher by a steady rise in international gasoline demand. Americans may be using less, but drivers in developing nations are using more.

“It’s all part of being in a global market,” said Tom Kloza, publisher and chief oil analyst at Oil Price Information Service.

The U.S. is using so little gasoline now that it has been a net exporter of refined fuels to other countries for the past nine weeks. That’s typical for OPEC countries, but it’s extremely rare in the U.S. “You have to go back years and years,” Kloza said. “I haven’t found a time when we’ve been a net exporter for that many weeks.”

Most of those exports head to Mexico and Canada. The U.S. also sends fuel to dozens of other countries; including the Netherlands, Singapore, Japan, Ecuador, Panama, Chile and Colombia.

In the energy markets, benchmark oil rose 95 cents to $89.76 per barrel in New York, while Brent crude increased 7 cents to $114.92 in London.

Heating oil was virtually unchanged at $3.0813 per gallon and gasoline futures climbed 3 cents to $2.9076 per gallon. Natural gas lost 3 cents at $4.021 per 1,000 cubic feet.