Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 947569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:06:05+00:00 2026-05-15T23:06:05+00:00

I am having a frustrating issue. My web service has an email to php

  • 0

I am having a frustrating issue. My web service has an email to php module. Briefly, once my user sends an email to his dedicated email address, my mail server captures the email, pipes it to a PHP script running on my server. This PHP script opens a MySQL connection and saves the email content to the database.

So far so good. The problem starts to occur once my MySQL connection limit set in /etc/my.cnf is exceeded. It’s set to 500. If 500 or more users sends emails at the same time, my MySQL gets unable to handle new connections.

What do you suggest? Should I use a persistent MySQL connection or any other method like writing the received email content to a txt file and then saving them into the db with a cron job?

Thanks for your suggestions!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T23:06:05+00:00Added an answer on May 15, 2026 at 11:06 pm

    Another suggestion is to run PHP script like a daemon, which connects to DB only once and waits for input to process in endless loop.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having a rather frustrating issue trying to call a web service that
I am currently having an issue with the JSF pages that the Visual Web
We are having a rather frustrating issue wherein WebLogic takes its usual 3-5 minutes
I'm having an issue with databinding to a service class in WPF. My service
Having been a PHP developer on LAMP servers for quite a while, is there
Having read the threads Is SqlCommand.Dispose enough? and Closing and Disposing a WCF Service
I'm having a really frustrating error trying to secure an ASP.NET application using the
Hey guys, I'm using GWT for a data-driven web application, and I'm having issues
I am having this issue and I am hoping that it is so simple
I've been having a frustrating time trying to sort out the logging in my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.