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
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
Unable to change the program that handles the scan event from a network attached Canon/Brother printer/scanner. This means you'll always have to choose which program handles this action, e.g. ControlCenter4 (in the case of a Brother).
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

615 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