Vauxhall Astra H - gearbox - plater

my astra will not rev past 2500 in all gears while driving and static with the clutch fully out ,but with the clutch depressed the vehicle revs normally. It acts like a miss and starts to judder past 2500. Have you any Ideas ?