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

  • SEARCH
  • Home
  • 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 7650081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:09:38+00:00 2026-05-31T11:09:38+00:00

I have problem with many sleeps scripts on apache. While i start apache, and

  • 0

I have problem with many sleeps scripts on apache. While i start apache, and clear cached memory to 13GB free, then free memory still falling to ap. 100MB free. Many php processes going to sleep and keeps cached memory ap. 19 MB on one script.

Sometime sleep script keep even 700MB from memory. Is some setting, how tell apache when script end, then process end to?

  • 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-31T11:09:40+00:00Added an answer on May 31, 2026 at 11:09 am

    No your problem isn’t “with many sleeps scripts on apache”, is that you are using sleeps scripts on apache. Sleeping is an anathema to most web servers which are designed with one purpose in mind: to receive and to respond to stateless HTTP(S) based web requests.

    Sleeping, per se, isn’t an absolute evil but if the total delay is more than a few seconds then you are doing something very wrong, and you need to explore alternative approaches.

    For example, phpBB implements a pseudo-cron type function where web requests schedules future work activities (e.g. to application-related table maintenance every hour, say) by using a queued-request table and a common check function. If a scheduled task is due a one-pixel image request is used to generate an async call-back to action the activity. (By doing an image load this request is decoupled from the URI that incidentally triggered it.

    Another approach is a variant which uses independent daemon or cron job to service this queued-request table.

    Another approach is simply to execute a child process which then forks to daemonise itself and detach from the Apache worker process.

    And another approach …

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

Sidebar

Related Questions

I have faced the same problem many times. The Same Problem was With This
This sounds like a problem many others have posted about, but there's a nuance
I have the problem that my view controller class has too many delegates and
I'm sure this is the kind of problem other have solved many times before.
This problem has bugged me so many times and i have now decided to
Here is my problem. I have created a pretty heavy readonly class making many
I've been working on this problem for a few hours and have used many
I have a problem that I have found many similar problems related to multi
I seem to have faced this problem many times and I wanted to ask
I’ve had this problem many times: I have a piece of source code, but

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.