ScottM

Captcha images rendering slowly

Vote 0 Votes

I'm having a problem with the captcha images for mt-comments.cgi rendering. They are rendering very, very slowly.

For example, visiting the URL:

http://www.mydomain.com/cgi-bin/mt/mt-comments.cgi/captcha/214/BARMhWgYCoRUenR3xtwu3m9pMpS4r40u0FHmwW3b

results in the captcha image taking about 30 seconds to render.

Why is this taking so long? How can I resolve this?

Thanks

Reported on Movable Type 5

3 Replies

| Add a Reply
  • Hi Scott,

    Maybe your commenting script is flooded.

    You may like to change its file name and call the new commenting script file name using this configuration directive inside your mt-config.cgi file:

    CommentScript newFileName.cgi

    Then you would have to rebuild your entry archives so that the form would point to this new script name.

    Ideally you would stop providing the path to the script from inside the form coding that is inside your entry archives and pass that from the javascript index template, in pieces, not the full URL to the comment script.

    That way you would make sure that your new script file name won't be discovered by spam bots.

    Kind Regards,
    Mihai Bocsaru

    ----------------------------------
    Daily Movable Type Consultant

    Web Development
    Movable Type Consulting
    Six Apart Partner

    http://www.pro-it-service.com/
    ----------------------------------

    Movable Type Demo
    http://www.movabletypedemo.org/

  • I initially thought it might be flooding, but I don't think that's the case.

    I actually started blocking all connections to the server (using iptables on the server, I have root access). And only allowing my IP address to access the server.

    So, nobody else is running anything else on the server. Server load is essentially 0. There are no other connections to the server.

    Yet, when I visit:

    http://www.mydomain.com/cgi-bin/mt/mt-comments.cgi/captcha/214/BARMhWgYCoRUenR3xtwu3m9pMpS4r40u0FHmwW3b

    It takes about 30 seconds for the image to load.

    I don't know where the hold up is.

    The image renders, so ImageMagick is working. I'm just at a complete loss as to what is taking it so long to render.

    I don't think it is a performance issue with the server (although technically I can't rule that out) because everything else works fine. Other images render fine, webpages load fine, everything runs fine. Except for the 30 seconds it takes to render these captcha images.

  • What about the time it takes to post a comment?

    It might be something wrong with the server load, which might have very little resources for the mt-comments.cgi script.

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

695 2912

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

190 568

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012