<% if _get["choice"] == "dogarbagecollect" _hb.clean GC.start #Clean all Knj::Objects used in the application. ObjectSpace.each_object(Knj::Objects) do |objects| objects.clean_all end Knj::Web.redirect("?show=debug_memory_usage") end %>

Memory usage

Hayabusa sessions

Active sessions <%=_hb.num(_hb.sessions.length, 0)%>
Total sessions <%=_hb.num(_hb.ob.list(:Session, "count" => true), 0)%>

<% Knj::Memory_analyzer.new.write %>