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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:36:22+00:00 2026-05-11T18:36:22+00:00

We are tying to perf tune our drupal site. We are using Siege to

  • 0

We are tying to perf tune our drupal site.
We are using Siege to measure performance (as drupal visitor).

Env:
Nginx + FastCGI+ Memcache

Siege runs fine for a few seconds, and then we run into connection errors:
Example:

HTTP/1.1 200  29.18 secs:    5877 bytes ==> /
HTTP/1.1 200  29.39 secs:    5877 bytes ==> /
warning: socket: -1656235120 select timed out: Connection timed out
warning: socket: -1673020528 select timed out: Connection timed out

Using the same Siege test confiuration, Nginx + FastCGI+ Drupal Cache seems to work fine.
Example:

HTTP/1.1 200   1.41 secs:    5868 bytes ==> /
HTTP/1.1 200   1.40 secs:    5868 bytes ==> /

As you can see, Response time is much higher with MemCache, in addition to the connection errors.

Any idea what could be wrong here… and why Drupal is throwing errors with memcache under load?

Memcache runs on a separate instance. Allocated 2GB memory for MemCache.

  • 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-11T18:36:22+00:00Added an answer on May 11, 2026 at 6:36 pm

    I guess that You run out of memcached connections. Please run a check of Your memcached installation with a simple script every second. Then start Siege. I guess Your memcached stops responding after a while.

    Test memcache php script:

    <?php
     $memcache = new Memcache;
     $memcache->connect('localhost', 11211) or die ('Unable to connect');
     $version = $memcache->getVersion();
     echo 'Server version: '.$version;
    ?>
    

    What I guess is happening is that You have not disable the persistent connections in memcache and they hang around in the php threads. Memcached can serve ~1023 of them at a time and that might not be enough while Sieging.

    You might also try ab, apache benchmarking tool with the close look to the -c switch. Play around with it and see how the results change on different values.

    Finally, You should run a tcpdump on Your memcached port (usually 11211) on the php machine to find out what is happening to the connections. Does drupal start them? Does the other host respond with a RST or does it time out?

    There was a bug in the memcached php documentation api that said that the connections are non-persistent by default. They are persistent by default (well, they were at the time I had the problem with it).

    Feel free to comment this answer, I’ll read the comments and assist further if necessary.

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

Sidebar

Ask A Question

Stats

  • Questions 123k
  • Answers 123k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer SELECT `Item`.*, `Seat`.`Face_value` FROM `Item` JOIN `Event` ON `Event`.`Id` =… May 12, 2026 at 12:57 am
  • Editorial Team
    Editorial Team added an answer Pocket PCs are devices that run Microsoft Windows Mobile. Recently… May 12, 2026 at 12:57 am
  • Editorial Team
    Editorial Team added an answer The query is not part of the URL path that’s… May 12, 2026 at 12:57 am

Related Questions

We are trying to build a Help Desk ticketing system just for intranet. Deciding
We are working on a project that uses Flex and rails with WebORB .
Note: this is a different problem to https - it's related to privacy security
We are trying to create a web-service that we plan to pass a variable

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.