hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 朱韬 <ryanzhu...@163.com>
Subject Re:Re: how to get each task's process
Date Wed, 30 Mar 2011 13:45:32 GMT
         I  found that jvmManager.getPid(...) returned the pid of MapTaskRunner, but I want
to get the task's pid. For example, I ran the the example randomwrite, the pid of  task which
is writing is 8268, but jvmManager.getPid(...) seemed to be its parent pid. I can not figure
out the relationship between the taskrunner and the real task.

At 2011-03-30 01:17:30,"Harsh J" <qwertymaniac@gmail.com> wrote:

>I think jvmManager.getPid(...) is correct. It should give you the
>launched JVM's PID properly. In fact, the same is even used to kill
>the JVMs.
>2011/3/29 朱韬 <ryanzhutao@163.com>:
>> hi,guys:
>>       I want to monitor each tasks' io usage, do can I get each task's process id?
>>       I used  jvmManager.getPid(tip.getTaskRunner()); but it didn't seem to be the
task's process.
>>       Thanks
>Harsh J
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message