etherpad-lite icon indicating copy to clipboard operation
etherpad-lite copied to clipboard

importing big files / lot of text make pads hang (on client side), although pads seem to be correctly handled at server side

Open disy-mk opened this issue 14 years ago • 3 comments

I observed a pad appearing to hang if one imports big documents. E.g. the bible, being plaintext file around 4 mb in size (find at http://corpus.canterbury.ac.nz/descriptions/), leads to such observation for my installation of epl.

However, this somehow depends. I thought this is related to the network bandwidth, i.e, from home I only have DSL which takes quite long to upload. Because of that, the pad itself does not show the content, after i (successfully) imported the mentioned file. But if I load, sometimes the pad shows up.

Another try from my office with very fast upload however did not solve that timeout problem I experienced. Although the file is uploaded within seconds, the pad does not load; however, CPU utilization is like 100% consumed by the browser (chrome), or more exactly by the renderer i guess. (my office machine is slower that my computer at home)

I tried firefox and surprisingly the text some text appears from the first second, as FF or its renderer/engine seems to somehow update the page/pad content after periodically.

So on one hand, this is a client side think in my opinion. It would be interesting if there is some limitation for files to be uploaded and parsed, like a max amount of letters/words/bytes, or perhaps something like a rule of thumb, e.g "pad parsing/text size limitations are 2mb plaintext or 3 million words" or whatever.

disy-mk avatar Oct 24 '12 04:10 disy-mk

Yea you can basically make the server "hang" just by trying to import a large HTML file. I'm looking into this now.

JohnMcLear avatar Nov 24 '14 14:11 JohnMcLear

This is due to the jsdom issue we have. https://github.com/ether/etherpad-lite/issues/2125

JohnMcLear avatar Nov 24 '14 14:11 JohnMcLear

I'm gonna close this as it's not a direct duplicate but fixing #2125 will fix this

JohnMcLear avatar Nov 24 '14 16:11 JohnMcLear