# Between php5 and MySQL they eat memory and swap

**URL:** <https://forums.percona.com/t/between-php5-and-mysql-they-eat-memory-and-swap/861>\
**Category:** Other MySQL® Questions\
**Created:** [August 3, 2008, 11:25am UTC](https://forums.percona.com/t/between-php5-and-mysql-they-eat-memory-and-swap/861 "2008-08-03T11:25:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fher98](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/fher98/32/784_2.png) [@fher98](https://forums.percona.com/u/fher98)\
**Post date:** [August 3, 2008, 11:25am UTC](https://forums.percona.com/t/between-php5-and-mysql-they-eat-memory-and-swap/861/1 "2008-08-03T11:25:35Z")

</div>

Hi!

I have a debian lenny running on a little 512ram 64x personal system, everything was running smoothly until recently. I have a couple of blogs and some friends blogs running, DB are less than 20MB. And the mangos DB about 130MB.

Heres my performance:

Output from TOP command:  
SWAP DATA COMMAND  
233m 46m php5-cgi  
199m 194m mysqld

#vmstat 5 2

procs -----------memory---------- —swap-- -----io---- -system-- ----cpu----  
r b swpd free buff cache si so bi bo in cs us sy id wa  
0 0 360908 4408 2220 45256 4 3 31 17 89 182 0 0 96 3  
0 0 360908 4416 2228 45204 9 0 9 10 556 824 0 0 99 0

I guess since today is sunday performance its ok, but I can get swap filled up to 70% and i/o waits up to 100% for 15 or more seconds.

Can I get a little help to get the swap use i/o waits down?

thanks!
