that's not proper way to implement streaming. setting interval=1 for poll means that you will send ajax request every millisecond. but that request will be processed about 20-50 milliseconds in better case. And you should also consider that mediaoutput also uses assync requests to load it's data. so your server just overloaded with different requests using that code.