Seeing all the system calls that were made by a Java program

java, linux, system-calls

Solution

Use strace:

strace -f java your_program

or

strace -f -p <pid of your java program>

Problem

How can I see which system calls my Java program is making? Is there a tool that will do this on Linux?

Original source