I did some tests, some interesting results

my processes no longer seem to be 300mb. which is good. however, when that happened, i was seeing a 300mb process and then 6mb in a child. now i'm back to seemingly unshared memory.

based on my tests below, i *think* that it may have been because i was doing apachectl restarts, and not clean stop/starts

i've noticed that my parent and works take on an additional 30mb of memory every time an apachectl restart is issued.

i thought to myself, ugh - "thats what you get for not using a graceful"

well , graceful does the same thing.

i'm more lost now than i was yesterday

---------------

StartServers      1
MinSpareServers    1
MaxSpareServers    1
MaxClients       2
MaxRequestsPerChild  10000

===========

Trial 1

        start

                @end of startup.pl      
                        GTop    (2207) 23457792
                        ps aux  
                                root      2210  0.0  5.5 59488 55284
                                www       2214  0.0  5.5 59548 55340

                        Note: ps-aux should be larger.
a) in almost every other trial it was showing something closer to Gtop
                                b) it is post-init
                
                
                @four requests
                
                
                        GTop            
                
                                preview_check Size Before: (2241) 48320512
                                preview_check Size After: (2241) 48398336
                                handler Size Pre- Page: (2241) 48410624
                                handler Size Post- Page: (2241) 48484352
        
                                preview_check Size Before: (2214) 48582656
                                preview_check Size After: (2214) 48582656
                                handler Size Pre- Page: (2214) 48582656
                                handler Size Post- Page: (2214) 48582656        
                


                                Note:
preview_check is run on the init, checks cookies and sets up the ctx object/page user. redirects to login screen if request invalid, redirects to preview site if not in alpha test
                                
                                        handler is the content generation phase
                                        
on both the first value is from first line of the handler, the second value is the last line
                                                
                        ps aux  
root 2210 0.0 5.5 59488 55284 ?? Ss 3:21PM 0:02.53 / usr/local/sbin/httpd www 2214 0.0 5.5 59900 55608 ?? S 3:21PM 0:00.10 / usr/local/sbin/httpd www 2241 0.0 5.5 59860 55584 ?? S 3:26PM 0:00.08 / usr/local/sbin/httpd
                


Trial 2

        apachectl restart
        
        @end of startup.pl - console
                GTOP            (2256) 23457792

        @end of startup.pl - logs
                GTOP            (2210) 70836224
                
                ps aux
                        root      2210  0.0  7.7 81776 77484
                        www       2261  0.0  7.7 81832 77556
                        
        @ four requests
        
                GTOP

                        preview_check Size Before: (2261) 72237056
                        preview_check Size After: (2261) 72237056
                        handler Size Pre- Page: (2261) 72237056
                        handler Size Post- Page: (2261) 72237056
                
                ps aux
                        root      2210  0.0  7.7 81776 77484
                        www       2261  0.0  7.8 82956 78640
                        

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

StartServers      2
MinSpareServers   5
MaxSpareServers   10
MaxClients       10
MaxRequestsPerChild  10000

===========


        start

                @end of startup.pl      
                        GTop    (2307) 23457792
                        ps aux  
                                root      2310  2.4  5.5 59488 55284
                                www       2314  0.0  5.5 59548 55340
                                www       2315  0.0  5.5 59548 55340
                                www       2320  0.0  5.5 59548 55340
                                www       2323  0.0  5.5 59548 55340
                                www       2324  0.0  5.5 59548 55340


                @ four requests
                
                        preview_check Size Before: (2320) 48734208
                        preview_check Size After: (2320) 48734208
                        handler Size Pre- Page: (2320) 48734208
                        handler Size Post- Page: (2320) 48734208

        restart
                
                @ startup.pl -
                        console
                                GTop
                                 (2343) 23457792
                        log
                                GTop
                                 (2310) 70836224

                ps aux
                        root      2310  0.0  7.7 81776 77484
                        www       2348  0.0  7.7 82184 77872
                        www       2349  0.0  7.7 82184 77872
                        www       2354  0.0  7.7 82184 77872
                        www       2357  0.0  7.7 82184 77872
                        www       2358  0.0  7.7 82184 77872            


                @ four requests
                
                 preview_check Size Before: (2349) 71454720
                 preview_check Size After: (2349) 71454720
                 handler Size Pre- Page: (2349) 71454720
                 handler Size Post- Page: (2349) 71454720

                        root      2310  0.0  7.7 81776 77484
                        www       2348  0.0  7.7 82184 77872
                        www       2349  0.0  7.7 82184 77872
                        www       2354  0.0  7.7 82184 77872
                        www       2357  0.0  7.7 82184 77872
                        www       2358  0.0  7.7 82184 77872            
                                



Reply via email to