We characterize the asymptotic cone of the solution set of a convex composite optimization problem. We then apply the obtained results to study the necessary and sufficient conditions for the nonemptiness and compactness of the solution set of the problem. Our results generalize and improve some known results in literature.