def get(self, pid): ''' get method ''' utils.str_cmd(['rm', '-rf', '/tmp/heap.bin'], None, None) body = utils.str_cmd(['jmap', '-dump:format=b,file=/tmp/heap.bin', str(pid)], None, None) utils.str_cmd(['chmod', '+r', '/tmp/heap.bin'], None, None) self.content_type = 'application/json' self.write(json.dumps(body)) self.finish()
def get(self, pid): ''' get method ''' utils.str_cmd(['rm', '-rf', '/tmp/heap.bin']) body = utils.str_cmd( ['jmap', '-dump:format=b,file=/tmp/heap.bin', pid]) utils.str_cmd(['chmod', '+r', '/tmp/heap.bin']) self.content_type = 'application/json' self.write(json.dumps(body)) self.finish()
async def get(self, pid): ''' get method ''' utils.str_cmd(['rm', '-rf', '/tmp/heap.bin'], None, None) body = utils.str_cmd( ['jmap', '-dump:format=b,file=/tmp/heap.bin', str(pid)], None, None) utils.str_cmd(['chmod', '+r', '/tmp/heap.bin'], None, None) self.content_type = 'application/json' await self.finish(json.dumps(body))
async def get(self, pid): ''' get method ''' body = utils.str_cmd(['jstack', pid], None, None) self.content_type = 'application/json' await self.finish(json.dumps(body))
def get(self, pid): ''' get method ''' body = utils.str_cmd(['jstack', pid], None, None) self.content_type = 'application/json' self.write(json.dumps(body)) self.finish()
def get(self, pid): ''' get method ''' body = utils.str_cmd(['pmap', '-pXX', pid], None, None) self.content_type = 'application/json' self.write(json.dumps(body)) self.finish()
def get(self, pid): ''' get method ''' body = utils.str_cmd(['jstack', pid]) self.content_type = 'application/json' self.write(json.dumps(body)) self.finish()