Re: oprofile on mapreduce tasks (java)

Maynard Johnson <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
On 08/14/2014 06:09 PM, Tommy wrote:
> Hi,
> 
> I am trying to profile mapreduce task using operf.
> I have some troubles with getting correct symbols of java threads.
> 
> What I did was to operf the tasktracker which spawns map and reduce tasks (threads).
> I did like the following to start the tasktracker.
> *operf /usr/lib/jvm/java-oracle/bin/java -agentlib:jvmti_oprofile ......*
> 
> However, only the tasktracker thread gets the correct symbols for all addresses. I found that only one ".jo" file is created for the tasktracker, not the child threads that inherit the tasktracker, such as map and reduce tasks. All the child threads get "anon".
It sounds like some additional JVMs are being spawned . . . so you need to be sure to pass the -agentlib on those invocations. And how that can be done is not something we can help with.  It requires knowledge of the application structure.

-Maynard
> 
> Please help me to resolve the issue.
> Thank you very much.
> 
> Tommy
> 
> 
> ------------------------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> oprofile-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oprofile-list
> 


------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.