Example #1
0
 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()
Example #2
0
 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()
Example #3
0
 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))
Example #4
0
 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))
Example #5
0
 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()
Example #6
0
 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()
Example #7
0
 def get(self, pid):
     ''' get method '''
     body = utils.str_cmd(['jstack', pid])
     self.content_type = 'application/json'
     self.write(json.dumps(body))
     self.finish()