Memory Leak upon creating a new post. Dial-up speeds to create a post.

  • Unknown's avatar

    You have an AJAX, Gravator.com-related memory leak on your site. It’s causing perpetual performance problems. It happens when you click the “New Post” button on one’s blog. When I open Chrome Dev Tools and click on the Network tab, I notice that random gravatar images keep loading on a second-to-second basis to my browser, even though I have stopped typing and interacting with the browser. It is causing my typing to lag to a turtling pace. These images are random, too — of stock photos, logos, etc. that I don’t recognize. Please fix this. I’m ready to just create my own blogging CMS instead.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    I think these photos that keep getting loaded into my browser are real-time uploads from other users of gravatar.com… in which case, you have thread-unsafe code somewhere.

    Good luck fixing it.

  • Unknown's avatar

    Here is the AJAX request that keeps getting repeated:

    HTTP Response —

    Request URL:http://wordpress.com/wp-admin/admin-ajax.php?action=follow_recos_get_recos&exclude%5B%5D=16482470&exclude%5B%5D=26024774&exclude%5B%5D=28300860&exclude%5B%5D=30162557&number=8&follow_source=reader_sidebar&_=1377476657710
    Request Method:GET
    Status Code:200 OK
    Request Headersview source
    Accept:*/*
    Accept-Encoding:gzip,deflate,sdch
    Accept-Language:en-US,en;q=0.8
    Cache-Control:no-cache
    Connection:keep-alive
    Cookie:wordpress=amycode%7C1378686255%7C25de6a75ec2309e01e2b15168d49b873; __gads=ID=1936226bcc424c1f:T=1332486490:S=ALNI_MbynRCz32QqQwQuEaf0fqNJ5OY5Og; __qca=P0-2070390816-1332486491082; km_lv=x; grvinsights=d139b42929ab3616a33abaa5da5115ef; optimizelyEndUserId=oeu1348841340825r0.6368735644500703; SSE-Visitor_no-options-on-signup=no-choice; ki_u=2187b041-94b1-5aeb-3047-dfb7f67d6b0f; SSE_DotMe_Domain_Pricing_Test_20130617=discount; SSE_Signup_Redesign_Test_20130624=original; wp-settings-53019280=editor%3Dhtml; wp-settings-time-53019280=1374173127; _ga=GA1.2.348590056.1364688509; SSE_Signup_Redesign_Test_20130722=original; wp-settings-50763064=editor%3Dhtml; wp-settings-time-50763064=1375659766; wordpress_homepage=existing; SSE_Signup_Redesign_Test_20130807=original; ref=newdash-myblogs-sidebar; ki_r=http%3A//wookiespeak.com/; ki_s=100710%3A0.0.0.0.1%3B101277%3A0.0.0.0.0%3B105244%3A0.0.0.0.0%3B105246%3A2.0.0.0.1; anonymous_stats=W33%26j%5Bt%5DXXStOO-z9V%5BCZ76WbDrYpwe%2CLDIz31bozXY%5BNNR6aXiEA4LuTc98lkZJECoG%3D10a%7CnMi%2CW%7Enygj2dd6UU%25rZVghd%7CpS%25U-GUm_c9m6-ceuG%5B3MgT8qVZedFCA%3DqkXSt1W%3DjY%5Bs01yckj06%7Csp%2C2lCWzMHg84%5BJw%2C5We2%2C-G63w%25hecSens%3Fihld%2FLXmSp%2F%7CAP0H4pGR%26%2BAXC%7E4FtG%3D.sAoD_QCjmByw%5DJ%2C%2BQmn%3D0US%7Cm%5DyUnJFbkj%3DT%5D%5DCxS%2C_k3rTHI%7EtC%7C-%7CKrHGJk2C1jG%5DQ6Jk3T%7Equ%7C%3D%258q%3Fb-%7Eu83vv%7E3MoqQWwbLmetpOfIJOPHBn%2F09NRFKi%7EQOS%7E74vDPJ9%3F%2C_hJc-ly35.GVM6.Xn9ryey%3F%3F%2FWIFx0w%2B-q6OY1Z7y%7Et9qgHjZU%3F%5DNkecP3a_RF5chAWkHCe6A%2Ft.O6uI01Bre3W4yHqpRBrnuWwv8Mo4ngSTxYahKp%7Cr1Doo%5Dy8pV7%7C5G5b-qij2jkNq4R%26HlnU2-b5%2CPM4qV%2B9c%25IWUPyiuXpCH%3FSTWnzX%5Bm6dxSx%2FeAwtyQ-v%3DQ47brcpS%2B%2FBN%2FhytIH5HLrzYwhLj3REZt7l7dX-Pz_Ep%2FH1%3DQ.z7ksWiDK0z%3D%3Dm7hFEPpJpl4esxz%2FU%2B2-%3Dly_o9Q%2510JcpBBngjdkQBB2CA35%25QZ%5BOBM%3DSHKiMgQKl06wimjhbatGdla%26O31RX_F%2FJJ%255J%7CKWMFG%2BGUFMeIb0q%5B32%7CX8VKAXp0uLf6Itzrfo%2C%25vmyx.9a2pw_uK-ZsD0%26%2BsNBSIjlC%2FB9%2F5Fxk%3D4TmC4I%2BCEv20QCH%26o%7CFZuuk%2FJqt8%7Ctt_0KTWHqWwCfHEd%5Dum%5BhWIQOD_E2k957Pbx%2By66kKiAZJ-h.7%2F6B%7ERc%5Bym67s%2FPh%2C7%259ba%3D%2Btey3s-gfLNRA%7Egmx%258LD4kYrw8%7C-n%2BlGt%26XW%2Fw6%26d%2Fwr.-B16OCE4_ON.9-%2CxD8Z%5BEjH%3FTqK1xC.KyM%2B%3DI%3FXBL%2Fha.%3FqTBOm33uOOi291qSEvvVewMFfaE%5B1fh6iLe%2C%2Bn%7EuKia7U%25%5B84gjSpFRDMy30%2F%3FyqQ8X4yy.j%2BKlM%3F74wISI%2BLw%2C%2FZ47aL%2FA2E948BQ%2F9O%2Bj%5D3%7ED%2Bj_Ntzmt%7CP5I%257lj9W6tr0%26gxA0P%7EioGRECIn%2BoK%7Cbu8rr3NQi6.U%3DqX%2Bjtfq%2Cw_d0; wp-settings-49390920=editor%3Dhtml%26hidetb%3D1; wp-settings-time-49390920=1377468578; TinyMCE_ipteditor_size=cw%3D579%26ch%3D547; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in=amycode%7C1378686255%7C4b0d99d1a88d2d6561533e6f8b9ac9a0; ki_t=1368590006511%3B1377468432167%3B1377476657759%3B41%3B130; wp-settings-35366179=editor%3Dhtml%26wplink%3D1; wp-settings-time-35366179=1377476656; optimizelySegments=%7B%22178845731%22%3A%22false%22%2C%22178855892%22%3A%22gc%22%2C%22179190226%22%3A%22search%22%7D; optimizelyBuckets=%7B%22103785501%22%3A%22103779541%22%2C%22246144450%22%3A%22246374052%22%2C%22268330372%22%3A%22268384173%22%7D; kvcd=1377477449733; km_ai=amycode; km_ni=amycode; km_uq=; wordpress_eli=1; __utma=11735858.348590056.1364688509.1377477465.1377477465.1; __utmb=11735858.2.10.1377477465; __utmc=11735858; __utmz=11735858.1377477465.1.1.utmcsr=en.support.wordpress.com|utmccn=(referral)|utmcmd=referral|utmcct=/contact/; wpc_wpc=account=amycode&avatar=https%3A%2F%2F0.gravatar.com%2Favatar%2Fce9332bb65e2a1457c5c4e9c27960197%3Fs%3D25%26amp%3Bd%3Dhttps%253A%252F%252Fs2.wp.com%252Fwp-content%252Fmu-plugins%252Fhighlander-comments%252Fimages%252Fwplogo.png&email=huaa%40uchicago.edu&link=http%3A%2F%2Fwww.amyhua.me&name=amyhuaster&uid=35366179&access_token=62155f8691d72ae4a02130aef175b264115c979e
    Host:wordpress.com
    Pragma:no-cache
    Referer:http://wordpress.com/
    User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36
    X-Requested-With:XMLHttpRequest
    Query String Parametersview sourceview URL encoded
    action:follow_recos_get_recos
    exclude[]:16482470
    exclude[]:26024774
    exclude[]:28300860
    exclude[]:30162557
    number:8
    follow_source:reader_sidebar
    _:1377476657710
    Response Headersview source
    Cache-Control:no-cache, must-revalidate, max-age=0
    Connection:keep-alive
    Content-Encoding:gzip
    Content-Type:text/html; charset=UTF-8
    Date:Mon, 26 Aug 2013 00:41:48 GMT
    Expires:Wed, 11 Jan 1984 05:00:00 GMT
    Pragma:no-cache
    Server:nginx
    Transfer-Encoding:chunked
    Vary:Accept-Encoding
    X-Content-Type-Options:nosniff
    X-Frame-Options:SAMEORIGIN
    X-hacker:If you're reading this, you should visit automattic.com/jobs and apply to join the fun, mention this header.
    X-Robots-Tag:noindex

    Response:

    [{“follow_source”:”reader_sidebar”,”blog_id”:34935665,”follow_reco_id”:”freshly_pressed”,”image”:”http://0.gravatar.com/avatar/f3e5d90f98c62d304005dd1688e460d5?s=96&d=retro&r=G”,”nonce”:”7d98053bc7″,”reason”:”Featured on Freshly Pressed”,”score”:0.01,”title”:”Sheridan’s Shorts”,”title_short”:”Sheridan’s Shorts”,”url”:”http://public-api.wordpress.com/bar/?stat=follow_recos_click_to_blog&bin=reader_sidebar&redirect_to=http%3A%2F%2Fsheridansshorts.com&sr=0&signature=5180bc9f5919335965e19e596f37982b”},{“follow_source”:”reader_sidebar”,”blog_id”:30596060,”follow_reco_id”:”freshly_pressed”,”image”:”http://1.gravatar.com/avatar/49137bdd7084413e912c134573477a56?s=96&d=retro&r=G”,”nonce”:”26ff805663″,”reason”:”Featured on Freshly Pressed”,”score”:0.01,”title”:”mantisandme”,”title_short”:”mantisandme”,”url”:”http://public-api.wordpress.com/bar/?stat=follow_recos_click_to_blog&bin=reader_sidebar&redirect_to=http%3A%2F%2Fmantisandme.com&sr=0&signature=6c647ee50d33ad2765fb9176901c1d0a”},{“follow_source”:”reader_sidebar”,”blog_id”:37669007,”follow_reco_id”:”freshly_pressed”,”image”:”http://1.gravatar.com/avatar/462a7de68ac18522697401d00a5e3814?s=96&d=retro&r=G”,”nonce”:”f8b6230858″,”reason”:”Featured on Freshly Pressed”,”score”:0.01,”title”:”the upright monkey”,”title_short”:”the upright monkey”,”url”:”http://public-api.wordpress.com/bar/?stat=follow_recos_click_to_blog&bin=reader_sidebar&redirect_to=http%3A%2F%2Ftheuprightmonkey.wordpress.com&sr=0&signature=e4e7737a9d41e6c6365a142eeea554b0″},{“follow_source”:”reader_sidebar”,”blog_id”:28008960,”follow_reco_id”:”freshly_pressed”,”image”:”http://0.gravatar.com/blavatar/2e507773de9b84aba7188942e2157f25?s=116″,”nonce”:”226ffcd827″,”reason”:”Featured on Freshly Pressed”,”score”:0.01,”title”:”Lucyu2019s Football”,”title_short”:”Lucyu2019s Football”,”url”:”http://public-api.wordpress.com/bar/?stat=follow_recos_click_to_blog&bin=reader_sidebar&redirect_to=http%3A%2F%2Flucysfootball.com&sr=0&signature=6f6e8373e045888608505adf4519e08f”},{“follow_source”:”reader_sidebar”,”blog_id”:41615319,”follow_reco_id”:”freshly_pressed”,”image”:”http://1.gravatar.com/blavatar/76b21ed8374256e913cf988631fbecba?s=116″,”nonce”:”b356c9ec0c”,”reason”:”Featured on Freshly Pressed”,”score”:0.01,”title”:”HEY BEERGUT!!”,”title_short”:”HEY BEERGUT!!”,”url”:”http://public-api.wordpress.com/bar/?stat=follow_recos_click_to_blog&bin=reader_sidebar&redirect_to=http%3A%2F%2Fthecougarden.wordpress.com&sr=0&signature=a48c5014fd517280ee2af5ffc5c8062d”}]

    Preview:

    74 requests  ❘  272 KB transferred
    admin-ajax.php?action=follow_recos_get_recos&exclude%5B%5D=16482470&exclude%5B%5D=26024774&exclude%5B%5D=28300860&exclude%5B%5D=30162557&number=8&follow_source=reader_sidebar&_=1377476657734
    /wp-admin
    290 ms1 ms
    admin-ajax.php?action=follow_recos_get_recos&exclude%5B%5D=16482470&exclude%5B%5D=26024774&exclude%5B%5D=28300860&exclude%5B%5D=30162557&number=8&follow_source=reader_sidebar&_=1377476657735
    /wp-admin
    396 ms1 ms
    admin-ajax.php?action=follow_recos_get_recos&exclude%5B%5D=16482470&exclude%5B%5D=26024774&exclude%5B%5D=28300860&exclude%5B%5D=30162557&number=8&follow_source=reader_sidebar&_=1377476657736
    /wp-admin
    275 ms1 ms
    admin-ajax.php?action=follow_recos_get_recos&exclude%5B%5D=16482470&exclude%5B%5D=26024774&exclude%5B%5D=28300860&exclude%5B%5D=30162557&number=8&follow_source=reader_sidebar&_=1377476657737
    /wp-admin
    302 ms0 ms
    7988?http_envelope=1
    public-api.wordpress.com/rest/v1/sites/35499892/posts
    565 ms60 ms
    admin-ajax.php?action=follow_recos_get_recos&exclude%5B%5D=16482470&exclude%5B%5D=26024774&exclude%5B%5D=28300860&exclude%5B%5D=30162557&number=8&follow_source=reader_sidebar&_=1377476657738
    /wp-admin
    283 ms0
    HeadersPreviewResponseCookiesTiming
    [{follow_source:reader_sidebar, blog_id:34935665, follow_reco_id:freshly_pressed,…},…]
    0: {follow_source:reader_sidebar, blog_id:34935665, follow_reco_id:freshly_pressed,…}
    blog_id: 34935665
    follow_reco_id: "freshly_pressed"
    follow_source: "reader_sidebar"
    image: "http://0.gravatar.com/avatar/f3e5d90f98c62d304005dd1688e460d5?s=96&d=retro&r=G"
    nonce: "7d98053bc7"
    reason: "Featured on Freshly Pressed"
    score: 0.01
    title: "Sheridan's Shorts"
    title_short: "Sheridan's Shorts"
    url: "http://public-api.wordpress.com/bar/?stat=follow_recos_click_to_blog&bin=reader_sidebar&redirect_to=http%3A%2F%2Fsheridansshorts.com&sr=0&signature=5180bc9f5919335965e19e596f37982b"
    1: {follow_source:reader_sidebar, blog_id:30596060, follow_reco_id:freshly_pressed,…}
    blog_id: 30596060
    follow_reco_id: "freshly_pressed"
    follow_source: "reader_sidebar"
    image: "http://1.gravatar.com/avatar/49137bdd7084413e912c134573477a56?s=96&d=retro&r=G"
    nonce: "26ff805663"
    reason: "Featured on Freshly Pressed"
    score: 0.01
    title: "mantisandme"
    title_short: "mantisandme"
    url: "http://public-api.wordpress.com/bar/?stat=follow_recos_click_to_blog&bin=reader_sidebar&redirect_to=http%3A%2F%2Fmantisandme.com&sr=0&signature=6c647ee50d33ad2765fb9176901c1d0a"
    2: {follow_source:reader_sidebar, blog_id:37669007, follow_reco_id:freshly_pressed,…}
    blog_id: 37669007
    follow_reco_id: "freshly_pressed"
    follow_source: "reader_sidebar"
    image: "http://1.gravatar.com/avatar/462a7de68ac18522697401d00a5e3814?s=96&d=retro&r=G"
    nonce: "f8b6230858"
    reason: "Featured on Freshly Pressed"
    score: 0.01
    title: "the upright monkey"
    title_short: "the upright monkey"
    url: "http://public-api.wordpress.com/bar/?stat=follow_recos_click_to_blog&bin=reader_sidebar&redirect_to=http%3A%2F%2Ftheuprightmonkey.wordpress.com&sr=0&signature=e4e7737a9d41e6c6365a142eeea554b0"
    3: {follow_source:reader_sidebar, blog_id:28008960, follow_reco_id:freshly_pressed,…}
    blog_id: 28008960
    follow_reco_id: "freshly_pressed"
    follow_source: "reader_sidebar"
    image: "http://0.gravatar.com/blavatar/2e507773de9b84aba7188942e2157f25?s=116"
    nonce: "226ffcd827"
    reason: "Featured on Freshly Pressed"
    score: 0.01
    title: "Lucy’s Football"
    title_short: "Lucy’s Football"
    url: "http://public-api.wordpress.com/bar/?stat=follow_recos_click_to_blog&bin=reader_sidebar&redirect_to=http%3A%2F%2Flucysfootball.com&sr=0&signature=6f6e8373e045888608505adf4519e08f"
    4: {follow_source:reader_sidebar, blog_id:41615319, follow_reco_id:freshly_pressed,…}
    blog_id: 41615319
    follow_reco_id: "freshly_pressed"
    follow_source: "reader_sidebar"
    image: "http://1.gravatar.com/blavatar/76b21ed8374256e913cf988631fbecba?s=116"
    nonce: "b356c9ec0c"
    reason: "Featured on Freshly Pressed"
    score: 0.01
    title: "HEY BEERGUT!!"
    title_short: "HEY BEERGUT!!"
    url: "http://public-api.wordpress.com/bar/?stat=follow_recos_click_to_blog&bin=reader_sidebar&redirect_to=http%3A%2F%2Fthecougarden.wordpress.com&sr=0&signature=a48c5014fd517280ee2af5ffc5c8062d"
  • Hi,

    I’m investigating this issue for you. My initial investigation indicates that these gravatars may be of users being featured on the page that you’re on. Which page were you on when capturing this response?

    For example, the http://wordpress.com/#!/read/fresh/ page will return the gravatars of everyone who has been featured on the page, and if you have scrolled down, it will return a new set of featured sites.

    Is that consistent with what you’re seeing?

    In addition to WordPress.com, you may want to check out WordPress.org, which is the software that is the core behind WordPress.com and you can host on your own server. If would save a lot of time from building something from scratch!

    Please let me know if you have any other questions or need anything else. Thanks!

  • The topic ‘Memory Leak upon creating a new post. Dial-up speeds to create a post.’ is closed to new replies.