FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » about memory usage with application written with php and mysql
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: about memory usage with application written with php and mysql [message #172505 is a reply to message #172496] Mon, 21 February 2011 13:11 Go to previous messageGo to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 21/02/2011 13:30, lovecreatesbeauty escribió/wrote:
> I'm writing code with PHP 5, Apache 2 and Mysql 5 on Debian 6.
>
> After system just starts up, it has this much memory:
> Mem: 514644k total, 494964k used, 375900k free,
>
> After playing with my web application written with PHP and Mysql for a
> while, the system shows the memory usage as this:
> Mem: 514644k total, 494964k used, 4876k free,
>
> ...
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 2184 www-data 20 0 65060 28m 2680 D 4.1 5.6 0:02.55 apache2
[...]
> 1564 mysql 20 0 139m 3500 792 S 0.6 0.7 0:04.24 mysqld
> 2185 www-data 20 0 40476 2352 888 S 0.0 0.5 0:00.01 apache2
> ...
>
> I wait a bit longer, it seems the system has more memory back now:
> Mem: 514644k total, 475472k used, 39172k free, 3600k
> buffers

I'm not sure about your exact question but Linux tends to consider free
memory as a wasted resource (why purchase RAM if you are not using it?)
so it normally tries to give it some use (cache or whatever). System
load is often a better indicator.



--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PHP currency converter with XML feed
Next Topic: fopen with URL *never* fails
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 10:55:40 GMT 2024

Total time taken to generate the page: 0.04063 seconds