We have determined the density of threading dislocations in epitaxial layers GaN by by measuring x-ray diffuse scattering.