You should use xdebug - it will show you where your bottlenecks are. Extremely useful:
http://www.xdebug.org/ Also see Matt Curry's Cake-specific post about it: http://www.pseudocoder.com/archives/2007/04/24/how-to-really-use-xdebug-to-speed-up-your-app/ - Jamie On Sep 8, 9:08 am, ioustinos <[email protected]> wrote: > If 20mb is fine, then it should reasonable not to be able to handle > 400 concurrent users with 8gb of ram? > The app is pretty complicated, its the official site for the Greek > football league and the queries are quite heavy (but cached). > > On Sep 8, 1:18 pm, majna <[email protected]> wrote: > > > > > view render is about 4mb. check how many helpers are loaded. > > try model Lazy loadhttp://github.com/phally/lazy_model/ > > > For big apps 20mb is just fine... > > cake version? you can lazy load helpers in 1.3... > > > On Sep 8, 11:56 am, ioustinos <[email protected]> wrote: > > > > i added this function to many places in cakes code for a specific page > > > request > > > function mmm($t=''){ > > > $MMMEM[] = $t .' - ' . ByteSize(memory_get_usage(true)); > > > > } > > > > example of call....mmm('component start'); > > > > this is what i got. > > > is this reasonable? > > > thanks > > > > webroot index start - 256.00 KB > > > included boostrap - 4.00 MB > > > dispatcher start - 4.00 MB > > > controller construct start - 4.25 MB > > > controller construct end - 4.25 MB > > > dispatcher end - 4.25 MB > > > dispatcher invoke start - 4.25 MB > > > controller constructClasses start - 4.25 MB > > > controller constructClasses before component init - 4.25 MB > > > component loading: Session - 4.25 MB > > > component loading: Auth - 4.75 MB > > > component loading: Session - 5.00 MB > > > component loading: RequestHandler - 5.00 MB > > > component loading: Acl - 5.00 MB > > > model constructor start: Aro - 7.00 MB > > > model constructor start: Aco - 8.25 MB > > > model constructor start: Permission - 8.25 MB > > > component loading: Cookie - 8.75 MB > > > component loading: RequestHandler - 9.00 MB > > > component loading: Imagecomp - 9.00 MB > > > component loading: Filter - 9.00 MB > > > component loading: Search - 9.00 MB > > > component loading: Myobj - 9.00 MB > > > component loading: Email - 9.00 MB > > > controller constructClasses after component init - 9.50 MB > > > model constructor start: Season - 9.50 MB > > > model constructor start: Competition - 10.00 MB > > > model constructor start: Leg - 10.00 MB > > > model constructor start: Game - 10.50 MB > > > model constructor start: Court - 10.50 MB > > > model constructor start: Team - 10.50 MB > > > model constructor start: Club - 10.75 MB > > > model constructor start: Trainer - 10.75 MB > > > model constructor start: Country - 11.00 MB > > > model constructor start: Player - 11.00 MB > > > model constructor start: Position - 11.00 MB > > > model constructor start: GamesPlayer - 11.25 MB > > > model constructor start: Article - 11.50 MB > > > model constructor start: User - 11.50 MB > > > model constructor start: Group - 11.50 MB > > > model constructor start: Image - 11.75 MB > > > model constructor start: Mypage - 11.75 MB > > > model constructor start: Mylayout - 11.75 MB > > > model constructor start: Mysetting - 12.00 MB > > > model constructor start: - 12.00 MB > > > model constructor start: - 12.00 MB > > > model constructor start: Video - 12.00 MB > > > model constructor start: - 12.00 MB > > > model constructor start: Pdf - 12.00 MB > > > model constructor start: Article - 12.25 MB > > > model constructor start: - 12.25 MB > > > model constructor start: - 12.25 MB > > > model constructor start: - 12.25 MB > > > model constructor start: - 12.25 MB > > > model constructor start: - 12.25 MB > > > model constructor start: - 12.25 MB > > > model constructor start: - 12.25 MB > > > model constructor start: GamesTeam - 12.50 MB > > > model constructor start: CompetitionsTeam - 12.50 MB > > > model constructor start: - 12.75 MB > > > model constructor start: - 12.75 MB > > > model constructor start: Player - 12.75 MB > > > model constructor start: Team - 12.75 MB > > > model constructor start: Team - 12.75 MB > > > model constructor start: Trainer - 12.75 MB > > > model constructor start: Referee - 12.75 MB > > > model constructor start: Referee - 12.75 MB > > > model constructor start: Referee - 12.75 MB > > > model constructor start: Referee - 12.75 MB > > > model constructor start: Officer - 13.00 MB > > > model constructor start: Livegame - 13.25 MB > > > model constructor start: Event - 13.25 MB > > > model constructor start: Eventtype - 13.25 MB > > > model constructor start: Liveplayer - 13.50 MB > > > model constructor start: - 13.50 MB > > > model constructor start: - 13.50 MB > > > model constructor start: - 13.50 MB > > > model constructor start: Rating - 13.50 MB > > > model constructor start: Ratingsrec - 13.50 MB > > > model constructor start: Assoc - 13.75 MB > > > model constructor start: - 13.75 MB > > > controller constructClasses after $uses loaded - 13.75 MB > > > dispatcher invoke after controller constructClasses - 13.75 MB > > > dispatcher invoke after controller initialization - 13.75 MB > > > model constructor start: Mylayout - 14.25 MB > > > model constructor start: Mypage - 14.25 MB > > > model constructor start: Competition - 14.25 MB > > > model constructor start: Competition - 14.50 MB > > > model constructor start: Mypage - 14.75 MB > > > model constructor start: Competition - 14.75 MB > > > dispatcher invoke after controller beforeFilter - 15.00 MB > > > dispatcher invoke adter controller startup - 15.00 MB > > > dispatcher invoke after controller dispatchMethod - 16.25 MB > > > dispatcher invoke after controller render - 20.00 MB > > > dispatcher invoke after afterFilter - 20.00 MB > > > dispatcher invoke end - 20.50 MB > > > the end - 20.50 MB 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
