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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:28:33+00:00 2026-05-26T11:28:33+00:00

I have a Lighttpd(1.4.28) web server running on Centos 5.3 and PHP 5.3.6 in

  • 0

I have a Lighttpd(1.4.28) web server running on Centos 5.3 and PHP 5.3.6 in fastcgi mode.

The server itself is a quad core with 1gb ram and is used to record viewing statistics for a video platform.

Each request consists of a very small bit of xml being posted and the receiving php script performs a simple INSERT or UPDATE mysql query. The php returns a very small response to acknowledge the request.

These requests are performed very frequently and i need the system to be able to handle as many concurrent connections as possible at a high rate of requests/second.

I have disabled keep alive as only single requests will be made and so I don’t need to keep connections open.

One of the things that concern me is that in server-status I am seeing a lot of connections in the ‘read’ state. I take it this is controlled by server.max-read-idle which is set to 60 by default? Is it ok to change this to something like 5 as I am seeing the majority of connections being kept open for long periods of time.

Also what else can I do to optimise lighttpd to be able to server lots of small requests

This is my first experience setting up lighttpd as I thought it would be more suitable than apache in this case.

Thanks

Irfan

  • 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-26T11:28:33+00:00Added an answer on May 26, 2026 at 11:28 am

    I believe the problem is not in the webserver, but in your PHP application, especially in MySQL part.

    I would replace lighty with apache + mod_php, and mysql with some NoSQL such Redis, which will queue the INSERT requests to the database. Then I would write a daemon / crontab that insert the data in MySQL.

    We had such thing before, but instead of Redis, we created TXT files in one directory.

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

Sidebar

Related Questions

We are running PHP with gettext on the lighttpd web server. When we update
I have two web-servers, both on Lighttpd + php (through fastCGI). [user@box ~]$ lighttpd
I have a website in PHP, Lighttpd. It uses also MySQL on Centos 5.
I have a Lighttpd server plus mod_fastcgi. And today I had Internal Server Error
I have a WordPress blog running on lighttpd-1.4.19, listening at www00:81. On the same
I have two websites: one with Lighttpd with PHP and second with Apache and
In line with this question: Lightweight web app server for PHP? The above question
I have a lighttpd server with website placed in /home/httpd/example.com/httpdocs and there I have
I have a tomcat server proxied by lighttpd 1.4. The problem is, that HttpServleTRequest.getRemoteAddr
I'm running Django as threaded fastcgi via flup, served by lighttpd, communicating via sockets.

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.