Hi James,
First off, CakePHP is heavy... I was surprised too when I realised my application was occupying nearly 32MB according to memory_get_usage. I have confidence the next releases will be leaner. Answering to the topic 2. It ain't really CakePHP's responsability to share any resources among several webserver connections. It'd be PHP's... And PHP does not share anything by default, actually PHP lacks a Database Pool Queue, for instance. You have anything worth sharing between simultaneous connections, you may use IPC messaging or smhop functions. I hope have helped. []s Dérico Filho On Dec 5, 4:01 pm, James <[email protected]> wrote: > I recently had some memory leak issues with my site. Php wasn't > releasing Simplepie's feed. > > Through the process of debugging, I started thinking about the memory > consumption of my site. Which brought up a couple of questions. > > 1. On my dev system, the default baked app uses around 9MB; on my site > the heaviest page uses around 20MB, and the lightest page uses about > 15MB. Is this normal? If not does anybody have any suggestions as to > where to look for optimization techniques? > > Default Baked App. > xdebug_memory_usage(): 8,925,408 bytes, 8.51 MB > xdebug_peak_memory_usage(): 9,149,064 bytes, 8.73 MB > > My heaviest page (loads simplepie rss + database query) > xdebug_memory_usage(): 21,420,048 bytes, 20.43 MB > xdebug_peak_memory_usage(): 21,660,360 bytes, 20.66 MB > > My lightest page (no database calls) > xdebug_memory_usage(): 15,549,928 bytes, 14.83 MB > xdebug_peak_memory_usage(): 15,687,840 bytes, 14.96 MB > > 2. This memory usage is base on one user connecting to the site. If > two users connect to the site, does the memory usage double, or does > cakephp share any resources? Does anybody have any suggestions as to > how to test how much memory multiple concurrent users take up? > > Thanks for any ideas. > > James 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
