Ok here is some more information that i should have provided in the beginning (i asked my technician) 1) We do user containable 2) We do use cake cache. Hence minimal queries are being used 3) We do user persistant model 4) We do use op code 5) We do cache queries 6) EACH page takes around 20mb of RAM...hence its not a single script leak.
I have no clue about APC (is that the op code?) but will check and let you know. Thank you for your help so far and looking forward to your ideas On Sep 8, 11:41 am, Keve Kutner <keve.kut...@gmail.com> wrote: > If the number of mysql threads increase rapidly before your server crashes, > that means you need to introduce caching since all of the threads request > the same data. You can also use APC so that Cake itself will not have to be > compiled all the time. > > 2010/9/8 ioustinos <ioustinos.sar...@gmail.com> > > > > > Very usefull information. > > Does anyone know how much RAM should each connection occupy. > > I have 20.000 hits per day, but there is one specific moment each week > > when i get at about 500 concurrent users. And its then that we have > > the problem. > > > On Sep 8, 9:16 am, Crazy <crazy...@gmail.com> wrote: > > > Have you also looked at your apache config?, configuring the prefork/ > > > worker settings? > > > Those also have a big impact on how much memory each process takes. > > > > Running cake with 8gb ram and have between 350.000 and 450.000 > > > pageviews/day and it's an db intensive site. > > > So you should be just fine if you optimize here and there. > > > > Are you running any opcode cachers?, turn on gzip? tune apache(only > > > load what you need), if it still not enough, use xdebug to find out > > > where you can optimize. > > > > On Sep 8, 6:24 am, Keve Kutner <keve.kut...@gmail.com> wrote: > > > > > Around 800.000 hits / day here with 7GB. Try to look into your queries, > > > > maybe you need to use containable. > > > > > On Sep 8, 2010 2:03 AM, "ioustinos" <ioustinos.sar...@gmail.com> > > wrote: > > > > > Hi there, > > > > We are using the CakePhp framework for a website we have built. > > > > A few days ago, at an expected peak of concurrent traffic our server > > > > with 8GB of RAM crashed due to insufficient RAM resources!! > > > > While trying to see what caused this problem, we found out that each > > > > page load uses up to 20mb of ram without taking into account mysql's > > > > ram usage. > > > > > I find those 20MB of RAM way too high for php files, and i would not > > > > expect a widely used framwork to perform in that manner, so i guess we > > > > have done something wrong. > > > > > Can anybody guide me to find out what i am doing wrong?? If i am doing > > > > something wrong... > > > > > Thank you very much! > > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers > > > > with their CakePHP related questions. > > > > > You received this message because you are subscribed to the Google > > Groups > > > > "CakePHP" group. > > > > To post to this group, send email to cake-php@googlegroups.com > > > > To unsubscribe from this group, send email to > > > > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.c > > > > om> > > <cake-php%2bunsubscr...@googlegroups.c om>For > > > > more options, visit this group athttp:// > > groups.google.com/group/cake-php?hl=en > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others > > with their CakePHP related questions. > > > You received this message because you are subscribed to the Google Groups > > "CakePHP" group. > > To post to this group, send email to cake-php@googlegroups.com > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.c > > om>For more options, visit this group at > >http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en