Seiden Group
Modern Development & Open Source for IBM i
  • Link to LinkedIn
  • Link to Mail
  • Home
  • Seiden PHP+
    • Seiden PHP+
    • Install & Learn
    • SmartSupport
    • PHP Migrations & Upgrades
    • Success Stories
    • Free PHP Assessment
    • Documentation
    • What’s New (Changelog)
  • IBM i Services
    • Development
    • Training & Mentoring
    • Open Source Setup & Upgrades
    • SSL/TLS Install & Learn
    • Performance
  • Support
    • Open Source & PHP
    • VS Code for i
    • Developer Support
    • Support Success Stories
  • VS Code for i
    • Support
    • Training
    • Code for i Resource Guide
    • Getting Started Videos
    • Code for IBM i Fridays
  • Free Stuff
    • IBM i Strategy & Tips
    • PHP Upgrade Assessment
    • CNX Valence Assessment
    • VS Code for IBM i Resources
    • Code for IBM i Fridays
    • QCachegrind Download
    • PHP Toolkit for IBM i Resources
    • Qshell on i Library
  • Blog
  • About
    • About Our Team
    • About Alan Seiden
    • Speakers & Sessions
    • In the News
  • Contact
  • 201.447.2437
  • Search
  • Menu Menu

Seiden Group Blog

Configure IBM i Apache Threads For Higher Traffic

May 9, 2018/0 Comments/in Apache /by Alan Seiden

When your site gets busy, your web server may need a configuration change to handle the load. We often start with the Apache web server’s ThreadsPerChild directive.

ThreadsPerChild controls how many connections can exist at once. Defaulting to 40, its value can be set in your Apache instance configuration file (for example, /www/zendphp7/httpd.conf):

1
2
# Add this directive to change default value of 40 to something larger
ThreadsPerChild 100

How can we know what value to specify, other than by trial and error?

IBM provides a page of real-time server statistics, including “Active Threads” and “Idle Threads,” as part of its HTTP configuration dashboard in IBM Web Administration for i. The administration dashboard is the one that uses port 2001 and requires starting the *ADMIN web instance. For more information, see IBM’s guide to starting IBM Web Administration for i.

In the screen shot below, Active threads are zero (0), meaning there are no active connections. Idle threads are 40, meaning all 40 default threads are available. With a more active web server instance, the mix might be 23 and 17, or even 40 and 0, if the instance is at its maximum capacity. If you see all threads active, that means it’s either time to restrict access or to increase ThreadsPerChild.

Real Time Server Stats in Apache on IBM i

Real-Time Server Statistics

We recommend reviewing real-time server statistics at various times of day, including peak times, to learn whether you should change ThreadsPerChild or other settings on your Apache instance. If you decide to permit more traffic, be sure also to increase any application limits such as PHP’s maximum child count in fastcgi.conf, or the equivalent for your application or language. Perform load testing, too, to ensure that your application can keep up.

A critical part of user experience and customer satisfaction, performance can be measured and configured at many levels: network, web server, application, database, operating system, hardware. To ensure excellent performance and scalability of your applications, contact us.

Tags: Apache, IBM i, IBMi, performance, scalability, threads, threadsperchild
Share this entry
  • Share on Facebook
  • Share on X
  • Share on Pinterest
  • Share on LinkedIn
  • Share on Tumblr
  • Share on Reddit
  • Share by Mail
https://www.seidengroup.com/wp-content/uploads/2017/03/SeidenLogo-180.png 0 0 Alan Seiden https://www.seidengroup.com/wp-content/uploads/2017/03/SeidenLogo-180.png Alan Seiden2018-05-09 14:21:222020-03-05 15:32:13Configure IBM i Apache Threads For Higher Traffic
Alan Seiden

About Alan Seiden

Alan works to preserve your investment in IBM enterprise systems by designing and implementing modernization strategies that leverage your existing business logic.

With a passion ...Read More

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

SUBSCRIBE
Open Thinking
Monthly IBM i Strategy & Tips
  • This field is for validation purposes and should be left unchanged.

IBM i Development

  • RPG, COBOL, SQL, Node,
    PHP, Python, Valance, etc.
  • Modernization. Integration.
  • Web and API Solutions
  • Legacy Maintenance
    ...
LET'S GET IT DONE!

Recent Posts

  • Do You Need IBM i Observability?
  • PHP 8.6 is Coming Soon to IBM i
  • Safer npm installation is on the way for Node.js (and all JavaScript)
  • Access Modern Security for IBM i and Connected Web Environments
  • IBM i: A Natural Platform for Agentic AI
  • PHP on IBM i in 2026: The Modernization Engine
  • Your “AS/400” Is a Modern IBM i Platform
  • MCP + AI for IBM i Teams (with a MongoDB example)
  • GnuPG PHP Extension for IBM i: Now Included with Seiden Support
  • Getting Started with Code for IBM i: A Lunch & Learn Video

SEIDEN GROUP: Modern Development & Open Source for IBM i

Home   |   Seiden PHP+   |   IBM i Services  |   Support   |   VS Code for i   |   Free Stuff   |   Blog  |   Privacy Policy  |   Contact         201.447.2437

© 2026 Seiden Group, LLC
  • Link to LinkedIn
  • Link to Mail
Link to: UX Challenge: What Would You Do? Link to: UX Challenge: What Would You Do? UX Challenge: What Would You Do? Link to: Is Your Zend Server Environment Showing Its Age? Link to: Is Your Zend Server Environment Showing Its Age? Is Your Zend Server Environment Showing Its Age?
Scroll to top Scroll to top Scroll to top