There are several reason where the memory isn't restored back : - Spidermonkey Garbage collector - APE allocate a pool of socket for concurent users with a "n*2" schema :
Base memory is 2 sockets slot : - 2 users connect => no memory allocation - 1 more user connects : Base memory * 2 (4 slot reserved) - 2 more user connect (5 active users) => Base memory * 2 (8 slot reserved) - And so forth. This scheme avoid APE to malloc/free too often. The fact is , does your memory increase because of message sent, or because of user connection (there is a memory leak if your 2.4MB was caused by the first). On Fri, 5 Nov 2010 19:20:32 -0400, Felix Filozov <[email protected]> wrote: > I just tried the jaegerape branch, and the result is the same. It climbs > to 2.4MB of usage, and stays there. > I'll be more than willing to direct the traffic to one of your > installations. > > On Fri, Nov 5, 2010 at 4:17 PM, wrote: > Hey, > > Your APE is compiled using some compile optimization (-O2), leading to > some invalid valgrind output. > BTW, can you please check if you still have the same behaviour using > the > "jaegerape" branch : > https://github.com/APE-Project/APE_Server/commits/jaegerape [2] > > Thanks > > Anthony > > On Thu, 4 Nov 2010 17:29:56 -0400, Felix Filozov > wrote: > > Here's some Valgrind output I captured http://pastebin.com/uDcp43Xf > [4] [1] > > > > On Thu, Nov 4, 2010 at 3:25 PM, Felix Filozov wrote: > > I just used the Move demo to do a test on APE 1.0 and APE Git > (latest > > APE in Git). > > > > I had thousands of connection attempts to APE 1.0, and memory > increased > > to 4MB and it stayed there even after all those connections were > broken. > > > > Similarly, I had thousands of connection attempts to APE Git, and > memory > > increased to 2MB and it stayed there as well. > > > > I don't know if memory is immediately deallocated, or later on. If > the > > former, it doesn't seem to work. > > > > On Thu, Nov 4, 2010 at 2:28 PM, Johnathan Leppert wrote: > > What version are you running? > > > > On Thu, Nov 4, 2010 at 2:25 PM, Ecrofom wrote: > > I believe I'm experiencing the same thing. After about 24 hours, I > > noticed ape was using over 300MB of ram. This didn't happen before > but > > I did change how I was using ape. > > > > Before: The default standard setup as shown in the chat demo on > your > > site. Memory usage was pretty much constant and low. > > > > Currently: I'm having chat messages sent via inline push and now > see > > memory usage by ape keep on growing. I have about 50-100 users > online > > at any time with about 100-200 messages being sent via inline push > > every minute. > > > > I dunno if this helps > > > > -- > > You received this message because you are subscribed to the Google > > Groups "APE Project" group. > > To post to this group, send email to [email protected] > [5] [5] > > To unsubscribe from this group, send email to > > [email protected] [6] [6] > > For more options, visit this group at > > http://groups.google.com/group/ape-project?hl=en [7] [7] > > --- > > APE Project (Ajax Push Engine) > > Official website : http://www.ape-project.org/ [8] [8] > > Git Hub : http://github.com/APE-Project/ [9] [9] > > > > -- > > You received this message because you are subscribed to the Google > > Groups "APE Project" group. > > To post to this group, send email to [email protected] > [10] [10] > > To unsubscribe from this group, send email to > > [email protected] [11] [11] > > For more options, visit this group at > > http://groups.google.com/group/ape-project?hl=en [12] [12] > > --- > > APE Project (Ajax Push Engine) > > Official website : http://www.ape-project.org/ [13] [13] > > Git Hub : http://github.com/APE-Project/ [14] [14] > > > > -- > > You received this message because you are subscribed to the Google > > Groups "APE Project" group. > > To post to this group, send email to [email protected] > [15] > > To unsubscribe from this group, send email to > > [email protected] [16] > > For more options, visit this group at > > http://groups.google.com/group/ape-project?hl=en [17] [15] > > --- > > APE Project (Ajax Push Engine) > > Official website : http://www.ape-project.org/ [18] [16] > > Git Hub : http://github.com/APE-Project/ [19] [17] > > > > > > Links: > > ------ > > [1] http://pastebin.com/uDcp43Xf [20] > > [2] mailto:[email protected] [21] > > [3] mailto:[email protected] [22] > > [4] mailto:[email protected] [23] > > [5] mailto:[email protected] [24] > > [6] mailto:ape-project%[email protected] [25] > > [7] http://groups.google.com/group/ape-project?hl=en [26] > > [8] http://www.ape-project.org/ [27] > > [9] http://github.com/APE-Project/ [28] > > [10] mailto:[email protected] [29] > > [11] mailto:ape-project%[email protected] [30] > > [12] http://groups.google.com/group/ape-project?hl=en [31] > > [13] http://www.ape-project.org/ [32] > > [14] http://github.com/APE-Project/ [33] > > [15] http://groups.google.com/group/ape-project?hl=en [34] > > [16] http://www.ape-project.org/ [35] > > [17] http://github.com/APE-Project/ [36] > > -- > You received this message because you are subscribed to the Google > Groups "APE Project" group. > To post to this group, send email to [email protected] [37] > To unsubscribe from this group, send email to > [email protected] [38] > For more options, visit this group at > http://groups.google.com/group/ape-project?hl=en [39] > --- > APE Project (Ajax Push Engine) > Official website : http://www.ape-project.org/ [40] > Git Hub : http://github.com/APE-Project/ [41] > > -- > You received this message because you are subscribed to the Google > Groups "APE Project" 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/ape-project?hl=en [42] > --- > APE Project (Ajax Push Engine) > Official website : http://www.ape-project.org/ [43] > Git Hub : http://github.com/APE-Project/ [44] > > > Links: > ------ > [1] mailto:[email protected] > [2] https://github.com/APE-Project/APE_Server/commits/jaegerape > [3] mailto:[email protected] > [4] http://pastebin.com/uDcp43Xf > [5] mailto:[email protected] > [6] mailto:ape-project%[email protected] > [7] http://groups.google.com/group/ape-project?hl=en > [8] http://www.ape-project.org/ > [9] http://github.com/APE-Project/ > [10] mailto:[email protected] > [11] mailto:ape-project%[email protected] > [12] http://groups.google.com/group/ape-project?hl=en > [13] http://www.ape-project.org/ > [14] http://github.com/APE-Project/ > [15] mailto:[email protected] > [16] mailto:ape-project%[email protected] > [17] http://groups.google.com/group/ape-project?hl=en > [18] http://www.ape-project.org/ > [19] http://github.com/APE-Project/ > [20] http://pastebin.com/uDcp43Xf > [21] mailto:[email protected] > [22] mailto:[email protected] > [23] mailto:[email protected] > [24] mailto:[email protected] > [25] mailto:ape-project%[email protected] > [26] http://groups.google.com/group/ape-project?hl=en > [27] http://www.ape-project.org/ > [28] http://github.com/APE-Project/ > [29] mailto:[email protected] > [30] mailto:ape-project%[email protected] > [31] http://groups.google.com/group/ape-project?hl=en > [32] http://www.ape-project.org/ > [33] http://github.com/APE-Project/ > [34] http://groups.google.com/group/ape-project?hl=en > [35] http://www.ape-project.org/ > [36] http://github.com/APE-Project/ > [37] mailto:[email protected] > [38] mailto:ape-project%[email protected] > [39] http://groups.google.com/group/ape-project?hl=en > [40] http://www.ape-project.org/ > [41] http://github.com/APE-Project/ > [42] http://groups.google.com/group/ape-project?hl=en > [43] http://www.ape-project.org/ > [44] http://github.com/APE-Project/ -- You received this message because you are subscribed to the Google Groups "APE Project" 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/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
