After rebuilding tcl and naviserver (current) from source, with -ltcmalloc, my 
naviserver is stable.

One small thing: I can crash naviserver on ctrl-c exit fairly easily:
[02/Jan/2014:11:41:01][15491.7fee7ed75700][-conn:magnatune3:8] Fatal: 
nsthreads: pthread_join failed in Ns_ThreadJoin: Invalid argument

I conducted two stress tests that went well.

------

A trivial stress test with 200 threads in naviserver, calling a page that just 
does:
<%= [clock seconds] %>

ab -n 2000 -c 200 http://magnatune.com:9000/timer2.adp

yields
Requests per second:    150.44 [#/sec] (mean)

Performance did not substantially change as I upped concurrency, nor does it 
look at that different with tcmalloc linked in.  However, this tcl test might 
be too simple to see tcmalloc performance effects.

-----

A "long page load" test, of:
ab -n 2000 -c 200 http://magnatune.com:9000/timer.adp

against:
<%= [after 5000] %>
<%= [clock seconds] %>

was made to see what would happen if requests came in faster than they could be 
fulfilled.   A minthread of 5 was set, with a maxthread of 200.

Good news: naviserver did indeed spawn new threads to deal with the backlog.

----


------------------------------------------------------------------------------
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=84349831&iu=/4140/ostg.clktrk
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to