Last modified: 2014-10-29 23:07:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T74564, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72564 - Parsoid extremely slow to render a short article
Parsoid extremely slow to render a short article
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Parsoid Team
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-27 17:14 UTC by Kelson [Emmanuel Engelhart]
Modified: 2014-10-29 23:07 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kelson [Emmanuel Engelhart] 2014-10-27 17:14:53 UTC
Parsoid timeouts with the following (short) article:
http://parsoid-lb.eqiad.wikimedia.org/euwiki/Cebus?oldid=3949332

The PHP render works well:
https://eu.wikipedia.org/w/index.php?title=Cebus&oldid=3949332
Comment 1 Kelson [Emmanuel Engelhart] 2014-10-27 17:17:57 UTC
One information, my timeout configuration is at 120 seconds. If you wait longer you might get the HTML.
Comment 2 ssastry 2014-10-27 17:40:01 UTC
Interesting and rather odd.

I confirmed that using curl to get this page from Parsoid takes ~150 secs (It is now cached, and using curl returns the page rapidly -- so you have to force a refresh in the browser). But, if I take the wikitext and parse the wikitext via the parse.js script on the command-line, it renders in 5 secs. Could be the new timeout code?
Comment 3 ssastry 2014-10-27 17:40:25 UTC
(In reply to ssastry from comment #2)
> Interesting and rather odd.
> 
> I confirmed that using curl to get this page from Parsoid takes ~150 secs
> (It is now cached, and using curl returns the page rapidly -- so you have to
> force a refresh in the browser). But, if I take the wikitext and parse the
> wikitext via the parse.js script on the command-line, it renders in 5 secs.
> Could be the new timeout code?

Oh, never mind, that new timeout code hasn't been deployed yet.
Comment 4 ssastry 2014-10-27 17:42:07 UTC
I can reproduce the behavior on localhost:8000/
Comment 5 ssastry 2014-10-27 17:43:26 UTC
Could be this (timeout fetching wikitext for the page).

[info][euwiki/Cebus?oldid=3949332] started parsing
[warning/api][euwiki/Cebus?oldid=3949332] Failed API request, {"error":{"code":"ETIMEDOUT"},"retries-remaining":8}
[warning/api][euwiki/Cebus?oldid=3949332] Failed API request, {"error":{"code":"ETIMEDOUT"},"retries-remaining":7}
[warning/api][euwiki/Cebus?oldid=3949332] Failed API request, {"error":{"code":"ETIMEDOUT"},"retries-remaining":6}
[info][euwiki/Cebus?oldid=3949332] started parsing
[warning/api][euwiki/Cebus?oldid=3949332] Failed API request, {"error":{"code":"ETIMEDOUT"},"retries-remaining":5}
[warning/api][euwiki/Cebus?oldid=3949332] Failed API request, {"error":{"code":"ETIMEDOUT"},"retries-remaining":8}
[warning/api][euwiki/Cebus?oldid=3949332] Failed API request, {"error":{"code":"ETIMEDOUT"},"retries-remaining":4}
[warning/api][euwiki/Cebus?oldid=3949332] Failed API request, {"error":{"code":"ETIMEDOUT"},"retries-remaining":7}
[warning/api][euwiki/Cebus?oldid=3949332] Failed API request, {"error":{"code":"ETIMEDOUT"},"retries-remaining":3}
[warning/api][euwiki/Cebus?oldid=3949332] Failed API request, {"error":{"code":"ETIMEDOUT"},"retries-remaining":6}
[warning/api][euwiki/Cebus?oldid=3949332] Failed API request, {"error":{"code":"ETIMEDOUT"},"retries-remaining":2}
Comment 6 Kelson [Emmanuel Engelhart] 2014-10-27 17:56:50 UTC
What I can add: it was the only one in a range of 50.000 euwiki articles generating this timeout error.
Comment 7 Kelson [Emmanuel Engelhart] 2014-10-29 23:07:39 UTC
Here is my HTTP header dump for http://parsoid-lb.eqiad.wikimedia.org/euwiki/Cebus?oldid=3949332
===
GET /euwiki/Cebus?oldid=3949332 HTTP/1.1
Host: parsoid-lb.eqiad.wikimedia.org
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
DNT: 0
Cookie: GeoIP=CH:Dubendorf:47.3954:8.6184:v4
Connection: keep-alive

HTTP/1.1 200 OK
X-Powered-By: Express
Vary: Accept-Encoding
Access-Control-Allow-Origin: *
Cache-Control: private,no-cache,s-maxage=0
content-revision-id: 3949332
X-Parsoid-Performance: duration=270362; start=1414501238071
Content-Type: text/html; charset=UTF-8
Content-Encoding: gzip
X-Varnish: 497764938, 820175809
Via: 1.1 varnish, 1.1 varnish
Content-Length: 2646
Accept-Ranges: bytes
Date: Tue, 28 Oct 2014 13:05:08 GMT
Age: 0
Connection: keep-alive
X-Cache: cp1058 miss (0), cp1058 frontend miss (0)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links