1. add shm support, put stat counter into shared memory
2. adjust output format to JSON