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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:22:08+00:00 2026-05-31T23:22:08+00:00

I have substitute my memcache with Redis. I use the phpredis client and the

  • 0

I have substitute my memcache with Redis. I use the phpredis client and the pconnect () for connecting.
I have also created a Redis class which implements the singleton pattern, but I keep on getting new client connections after a few refreshes of the home page.

More specifically, I have an application which gets some values from redis by given keys.
When I start redis-server I have 0 clients connected. I refresh the page and 1 client is connected. In the second refresh 2 clients are connected. After 2-3 more refreshes 3 clients are connected and so on, until it reaches 11 sometime 12 clients. Then it stops to increase their amount.

The time to render the home page is more or less the same (also with memcache) and it doesn’t consume more memory, but I was trying to find why it does have this weird behavior.

I run my application locally on MAMP 2.0.5 and I have redis-2.4.7.

  • 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-31T23:22:09+00:00Added an answer on May 31, 2026 at 11:22 pm

    You have 12 instances of apache workers running PHP with your script. That’s fine as long as you don’t see any clients disconnecting and reconnecting all the time.

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

Sidebar

Related Questions

I have a class that contains an object of type Object (which is used
If I have a class Person that implements Comparable (compares personA.height to personB.height ,
I have a planned use of Apache XML RPC Client in a java web
I have created a function which tells whether a variable hold jQuery object or
I have the following simple preloading function which substitute an image src attribute with
I have someone connecting to my repository using the url (substituted the IP address):
Have just started using Visual Studio Professional's built-in unit testing features, which as I
If I have the following code: var value : String = StringUtil.substitute(The value {0}
I have a templated class template <typename Data> class C { ..... } In
This has been driving me absolutely nuts. I have a substitute function like this:

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.