support jruby; add cacheserver ; add start_in_loop;