TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-26-2010, 09:53 PM   #1 (permalink)
The Contributor
 
Join Date: Feb 2007
Posts: 64
Thanks: 9
Killswitch is on a distinguished road
Default How much memory use is too much?

I was just curious as to how much memory use per page load is too much? I know this may vary depending on the resources of the server, so for general purposes let's just compare this to a virtual dedi. setup with 512 MB of memory.

In an app I am writing, without caching the page load is generally around 2 - 3 MB per page load (KohanaPHP framework). Is this too high or will it cause performance issues? I know this is per page load, and in my case I probably won't see several hundred thousand users per day ( prob. more around 2 thousand a day ).

I also understand some caching methods will use more memory but probably less CPU. Anyone have any insight into memory/cpu usage in your projects?
Killswitch is offline  
Reply With Quote
Old 01-26-2010, 11:50 PM   #2 (permalink)
Super Moderator
Advanced Programmer 
 
bluesaga's Avatar
 
Join Date: Sep 2007
Posts: 165
Thanks: 0
bluesaga is on a distinguished road
Default

Quote:
Originally Posted by Killswitch View Post
I was just curious as to how much memory use per page load is too much? I know this may vary depending on the resources of the server, so for general purposes let's just compare this to a virtual dedi. setup with 512 MB of memory.

In an app I am writing, without caching the page load is generally around 2 - 3 MB per page load (KohanaPHP framework). Is this too high or will it cause performance issues? I know this is per page load, and in my case I probably won't see several hundred thousand users per day ( prob. more around 2 thousand a day ).

I also understand some caching methods will use more memory but probably less CPU. Anyone have any insight into memory/cpu usage in your projects?
We use Zend Framework which is far heavier than 3mb per load and we have no problems on our servers, we do have a lot of RAM though.

Generally speaking RAM is much cheaper than CPU to upgrade and CPU tends to degrade much quicker than RAM (until you begin to hit the swap file and then your going to have troubles). RAM will be consistent up until you hit swap, whereas CPU usage does not scale anywhere near as well.

Hope that helped.
__________________
Halo 3 Cheats
bluesaga is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
pass by reference allworknoplay Absolute Beginners 33 05-08-2009 10:41 AM
Getting structure of resultset in memory Dave MySQL & Databases 3 05-24-2008 12:53 PM
virtual memory leak shiggle Absolute Beginners 2 02-26-2008 08:55 AM
Firefox slowness caused by memory fragmentation Wildhoney General 22 12-09-2007 04:36 PM
Memory Management with Declare Wildhoney Advanced PHP Programming 2 10-18-2007 03:44 PM


All times are GMT. The time now is 01:51 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design