For the second straight month, the Bay Area lost thousands of jobs in September, making it the worst month for employment locally since February 2010.

The setback for the local economy comes as the crucial holiday shopping and hiring season draws near, and contrasts with a strong hiring picture statewide.

The Bay Area’s job losses stem from two distinct phenomena: Some employers are slashing positions, and others are unable to hire. Some economists attribute this second problem to structural barriers posed by skyrocketing housing costs. The lack of affordable places for workers to live appears to have hobbled the region’s ability to fill jobs as briskly as in prior years.

“Housing is the chain on the dog that is chasing a squirrel,” said Christopher Thornberg, principal economist and founding partner with Beacon Economics. “Once that chain runs out, it yanks the dog back.”

Overall, the Bay Area lost 4,700 jobs last month. While some smaller metropolitan areas in the region had job gains, employers shed 1,300 jobs in Santa Clara County, 1,700 in the San Francisco-San Mateo region and 2,600 in the East Bay, seasonally adjusted figures from the state’s Employment Development Department show.

The September losses, combined with 2,400 job losses reported by the EDD for August, paint an unsettling picture and lend credence to the assessment from a growing number of experts that the Bay Area’s job growth has begun to slow dramatically.

“The slowdown is real,” said Stephen Levy, director of the Palo Alto-based Center for Continuing Study of the California Economy. “There were times this year we thought that job losses here and there were just temporary. But the slowdown is a fact. It’s happening.”

The lack of housing also makes it tough for employees to live near their workplaces, forcing many into lengthy commutes on roads choked with traffic. Some prospective employees decide they’d rather not bother.

“The economy in the Bay Area has pushed up against the physical limits of a lack of housing and a lack of places for workers to live,” said Jeffrey Michael, director of the Stockton-based Center for Business and Policy Research at University of the Pacific.

Among smaller Bay Area urban centers, Marin County lost 200 jobs in September, while Solano County added 600 jobs, Napa County gained 300 positions and Sonoma County added 200, the EDD reported.

The EDD on Friday revised downward the number of Bay Area job losses that occurred in August from 4,700 to 2,400, but said the losses accelerated in September.

Stay up to date on breaking news with our mobile app from the Apple app store or the Google Play store.

The jobs picture for the technology sector also looked weak last month. Tech companies shed 100 jobs in Santa Clara County and 900 in the San Francisco-San Mateo area, although the East Bay eked out a gain of 500 tech jobs, a Beacon Economics analysis of EDD statistics showed.

Other areas of weakness: Santa Clara County lost 1,100 clerical and temp jobs, the East Bay lost 1,100 health care positions, and San Francisco-San Mateo lost 1,800 hotel and restaurant jobs, Beacon’s assessment revealed.

Over the 12 months that ended in September, the Bay Area added 50,400 jobs, a 1.3 percent increase in total payroll jobs during the one-year period.

By comparison, that’s less than half the growth of 2016. Bay Area job growth was 2.9 percent in 2016, 3.7 percent in 2015, 3.4 percent in 2014 and 3.5 percent in 2013, this news organization’s analysis of the EDD figures shows.

The Bay Area’s employment struggles contrasted sharply with statewide job trends.

California added 52,200 jobs in September, and the statewide unemployment rate remained unchanged at 5.1 percent, the EDD reported.

Despite the Bay Area’s increasingly sluggish picture, experts said Friday that the region doesn’t seem to be headed into a protracted downturn or outright contraction.

For more Bay Area housing affordability, home sales and other real estate news

follow us on Flipboard.

“It’s a dynamic economy in the Bay Area; it is fueled by a strong technology industry,” Michael said. “While growth has definitely gotten choppy, a consistent pattern of job losses will not emerge in the Bay Area.”

But some are finding the current job market tough. Steve Satariano, a San Jose resident and experienced worker in the information technology sector, said it appears tech employers frequently inquire about an applicant, but the interest doesn’t always lead to a job interview and almost never results in a full-time job with benefits. Now, his jobs consist of contract work and temporary projects.

“Things were a lot better in the tech industry a few years ago,” Satariano said, “and a lot of the job offers are for work in Sacramento or Los Angeles, but I don’t want to relocate. I’ve lived my whole life here in the South Bay.”

The vicious housing market has made it tough to find decent living circumstances, he said. Satariano is sharing housing with roommates.

“Growing up in Silicon Valley, I never pictured this for myself,” Satariano said. “I always thought that if I went into the tech industry, I could create a prosperous future for myself. But who wants to commute six hours a day? You should be able to afford a place to live near where you have to work.”