If it's going that lean, and knocking that much, it's probably lean.
check the MAF, TPS or the O2 to make sure they aren't on the fritz?