Background As the most common type of glaucoma, the etiology of primary open-angle glaucoma (POAG) has not been unified. Autophagy may affect the occurrence and development of POAG, while the specific mechanism and target need to be further explored.Methods The GSE27276 dataset from the Gene Expression Omnibus (GEO) database and the autophagy gene set from the GeneCards database were selected to screen differentially expressed autophagy-related genes (DEARGs) of POAG. Hub DEARGs were selected by constructing protein-protein interaction (PPI) networks and utilizing GSE138125 dataset. Subsequently, immune cell infiltration analysis, genome-wide association study (GWAS) analysis, gene set enrichment analysis (GSEA) and other analyses were performed on the hub genes. Eventually, animal experiments were performed to verify the mRNA levels of the hub genes by quantitative real time polymerase chain reaction (qRT-PCR).Results A total of 67 DEARGs and 2 hub DEARGs, HSPA8 and RPL15, were selected. The hub genes were closely related to the level of immune cell infiltration. GWAS analysis confirmed that the causative regions of the 2 hub genes in glaucoma were on chromosome 11 and chromosome 3, respectively. GSEA illustrated that pathways enriched for highly expressed HSPA8 and RPL15 contained immunity, autophagy, gene expression and energy metabolism-related pathways. qRT-PCR confirmed that the expression of HSPA8 and RPL15 in the rat POAG model was consistent with the results of bioinformatics analysis.Conclusions This study indicated that HSPA8 and RPL15 may affect the progression of POAG by regulating autophagy and provided new ideas for the pathogenesis and treatment of POAG.