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 6778687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:17:43+00:00 2026-05-26T16:17:43+00:00

I am running 5 instances of a PHP script using Supervisord . Running 5

  • 0

I am running 5 instances of a PHP script using Supervisord. Running 5 processes is the optimal number to maximize the processing that my PHP script does. If I run more than 5 or less than 5, I get worse results.

I’m already profiling the PHP script itself with xdebug and webgrind.

I suspect that disk I/O is what’s preventing me from running more parallel processes as my CPU and Memory are not maxed out with 5 processes running. I have 4 virtual cores on an Amazon EC2 instance, and neither Mysqld nor Supervisord are using more than 50% CPU at any given time.

How does one profile disk I/O on a Linux Cent OS machine ( does this sound like the culprit )?

What other bottlenecks should I be looking for?

–SOLUTION–

I was unable to find any simple solutions that gave me very in depth information. I’m not exactly sure what I’m looking for though, so I apologize for this question and answer being vague.

  • 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-26T16:17:44+00:00Added an answer on May 26, 2026 at 4:17 pm

    I would look at iostat -c -n 1 while your script is running and see what is reported in the %util column on the far right. If your hunch is right, then the %util should be close to 100% while your processes are running.

    Does this script do any processing that fetches data over the network? That could also be a bottleneck.

    Its hard to say more without knowing a little more about what the script does. What is each process doing? How did you determine that 5 is the optimal number of processes?

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

Sidebar

Related Questions

I am running Apache on my localhost. From a PHP script run as www-user
I'm running a continuous PHP loop that executes another PHP file by using exec(php
A typical approach to avoid two instances of the same script running simultaneously looks
I have a server with a PHP script that pulls data from a source
I want to run a cron job every minute that will launch a script.
I'm trying to create a PHP file, which wouldn't run if it's already running.
I'm parallelizing a PHP script using Supervisor . When my script gets a certain
I'm wondering if it's possible to get a handle on running instances of a
I have two instances running of same Windows Service. They check the health of
We're looking into running multiple instances of Tomcat from the same copy of the

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.