Lockheed Martin’s job growth stalled in August after a record month for hiring in July, but the aerospace company reported another strong month for real estate jobs.

Lockheed Martin posted job gains of 15,000 positions last month, down from 21,000 in July.

Lockheed also reported a 13 percent jump in its real estate business, a strong sign that the company is continuing to expand its portfolio of property and office buildings.

Lockheed has been adding more and more office buildings to its portfolio, as it has tried to get out from under a decades-long slump in building capacity.

In the past few years, the company has built or completed about 4,000 office buildings, but it also has been building and closing many of its buildings.

The company has reported its first quarterly job gains since 2007.

Lockheed expects the full-year job gain to be between 12,000 and 15,500, with the number of full-time positions expected to climb to about 13,000.

The defense contractor posted a solid increase in revenue, but there was a drop in net profit for the first time in six years.

Earnings per share fell to $5.10 from $5,500 a year ago.

Lockheed’s shares rose 2.8 percent to $26.10 in extended trading Wednesday.