On 02/12/2013, at 12:10 AM, john skaller wrote: > I give up. I think it works, no leak.
But no, there is a leak. On the server: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 18779 felixweb 20 0 246m 47m 3132 S 0.3 9.6 1:35.41 webserver So that's 9.6% memory. When I started it gives: 8006 felixweb 20 0 139m 3712 2828 S 0.0 0.7 0:00.03 webserver After a few page loads: 8006 felixweb 20 0 205m 5788 3028 S 0.0 1.2 0:00.18 webserver Normally you'd expect some increase in memory use with a GC. However with the timer running the GC every 60 seconds, the static state should converge to a fixed maximum use. It isn't. Grrr,. I did some browsing of the C++ standard library using the webserver. No memory increase. Sitting on: 8006 felixweb 20 0 207m 8508 3068 S 0.0 1.7 0:01.01 webserver Now the Felix library .. *.flx files .. no memory increase. Woa! So I hit: http://felix-lang.org/$/usr/local/lib/felix/felix-latest/share/src/lib/std/strings/string.fdoc which is an fdoc file .. and it jumps immediately to: 8006 felixweb 20 0 210m 10m 3100 S 0.0 2.2 0:02.22 webserver Also the 0.3% CPU for normal pages jumps to 10% CPU, fdoc files require more processing.. and now 8006 felixweb 20 0 216m 16m 3100 S 0.0 3.3 0:03.85 webserver So the leak isn't in the webserver, but in the fdoc processing.. But this one doesn't seem to do it . http://felix-lang.org/$/usr/local/lib/felix/felix-latest/share/src/lib/std/dynlink.fdoc Hmm .. now string doesn't do it.. hmm .. is there a leak or not .. lol! -- john skaller skal...@users.sourceforge.net http://felix-lang.org ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language