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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:49:18+00:00 2026-05-14T03:49:18+00:00

I have switched on the Codeigniter profile (very useful) and I have noticed that

  • 0

I have switched on the Codeigniter profile (very useful) and I have noticed that a page of mine shows the memory used as:

2,405,496 bytes

That’s ~2MB and it’s for one request – does it mean if 1000 users accessed this page at the same time, memory usage will be 2GB?

Have I got my maths wrong or is there more to this than just multiplying two numbers?

Thanks all for any help

EDIT

Is this sort of memory usage normal for a script running 2 simple select queries? I do autoload helpers such as form, url and also Database and session classes.

  • 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-14T03:49:18+00:00Added an answer on May 14, 2026 at 3:49 am

    2MB is not that much — it doesn’t look surprising to me, at least ; I often see much higher values, when using a framework, even if not doing lots of SQL queries.

    Note that the memory_limit, which defines how much memory a PHP script can use, if often set to at least 8MB — and quite often 16 or even 32 MB.

    if 1000 users accessed this page at the same time

    First of all, are you sure your application will be successful enough to have one thousand users requesting a page at the same time ? Note that if you need need 1 second to generate a page (which is already a bit long), it means having 1,000 users requesting a page in that one second !

    Then, anyway, your server will probably never support that load — by default, I should add that Apache is generally configured to not serve more than something like 200 concurrent requests.

    If you really expect to have 1,000 users at the same instant on your application, you’ll have plenty of other problems, I’d say — and you’ll probably have to optimise a lot, and/or use more than one server.

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

Sidebar

Related Questions

As you may have known that I switched from ubuntu to windows from my
I am trying to have an advertisement block/div that will be switched to a
I recently switched to command-line git for my personal projects. I have used 3-way
Previously I have used mysql RubyGem in my app. Now I have switched to
We have a browser test page which is used to diagnose user problems. There
I have switched all html (and php) pages to utf-8. Before that everything looked
I have a problem in that I have switched my (working) multiple-database nhibernate solution
I have just switched from svn to mercurial and have read some tutorials about
We just switched to our new website redesign. We have a copy of the
I have a couple of Git branches: 'experimental', 'something' and 'master'. I switched to

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.