Asymptotics for a class of weighted eigenvalue problems