CGI-BIN slow response

Posted on 2003-03-02
Medium Priority
Last Modified: 2013-12-24
I have implemented cgi-bin with a formail script. The script processes user input and emails me. My delima is SLOW response times. What can i do to speed up this process. When someone accesses the webpage, inputs thier data and presses submit, it takes up to a minute for the form to process and the redirect thankyou.html to be displayed.

Question by:falkloned
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 15

Accepted Solution

samri earned 200 total points
ID: 8055537
I maybe due to the mail transmission is slow.

I'm not that familiar with formmail script, but I suspected that it's something to do with how the mail is sent.  

Try to send mail from a shell prompt, and see if it is slow there too.
LVL 15

Assisted Solution

periwinkle earned 200 total points
ID: 8060945
Samri is on the right track - the problem is that your script is currently waiting for sendmail to complete prior to redirecting to the thankyou.html file.  Try changing your sendmail command to:

"/usr/sbin/sendmail -oi -t -odq"

(using your correct path to sendmail, of course) - the -odq will place the email in the mail queue instead of trying to directly try the email immediately.  

Your host's sendmail settings will direct sendmail to periodically check the queue and process the emails.  It might mean that the email doesn't go out as quickly, but the user will see the thank you in a more timely fashion.

Expert Comment

ID: 8081601
what formmail script are you using?  double check the configuration.

LVL 15

Expert Comment

ID: 9779012
recommendation: points to periwinkle

Featured Post

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question