You need to figure out what is going on when it slows down. It would be a good start to tell us about your hardware and your operating system configuration.
Are you testing this as an ordinary student or as some elevated role (which can be slower)?
What (if anything) have you done to see what the server is up to when it goes slow? Run 'top' (assuming Linux)? Have monitoring (e.g. munin) running?