1830348 Members
2686 Online
110001 Solutions
New Discussion

Re: strace <?>

 
Idham
Frequent Advisor

strace <?>

Hi, can anybody help me on how to run this command. Is it equivelant in struss in Solaris???
I need to trace a java program which got error.
5 REPLIES 5
smatador
Honored Contributor

Re: strace <?>

Hi
Just attach the strace to the java pid with
#strace -p
http://www.linuxmanpages.com/man1/strace.1.php
Ivan Krastev
Honored Contributor

Re: strace <?>

Java applications usually are multithreaded so use -F -f options.

regards,
ivan
Idham
Frequent Advisor

Re: strace <?>

Thanks... but if i issue the command:
# strace -p 10581
usage: [ mid sid level] ...

seems like HPUX use different method
Ivan Krastev
Honored Contributor

Re: strace <?>

What is the OS ? Version?

Unix strace is like mentioned:

#strace -p 5999
Process 5999 attached - interrupt to quit

regards,
ivan

Ivan Krastev
Honored Contributor

Re: strace <?>

It looks like you are using HP-UX, not Linux.

strace under HP-UX is different - http://docs.hp.com/en/B3921-90010/strace.1M.html

For tracing syscalls use tusc - http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=61086d6e1de021106d6e1de02110275d6e10RCRD


regards,
ivan