I have a web app in a jboss application server that gives a not understandable error.

I’m 100% sure it is because it is trying to access a forbidden file system location. Is it possible to profile the program, in particular what is doing step by step (ex. Spawning processes, opening files, writing files, etc)

  • try jboss logs, lsof (to get list of files process is accessing) and jbossprofiler.jboss.org
    – Bart
    Jun 26, 2019 at 7:06
  • 3
    Or you can use strace if you really want low-level info.
    – muru
    Jun 26, 2019 at 7:06

2 Answers 2


In addition to strace, also consider sysdig. Sysdig is somewhat like a system-wide version of strace. You can find more information at Sysdig's Github Page


For the type of investigation that you outline (independent of language), strace is your friend. It will tell you what system call are happening. By default it does not trace across fork, but you can enable it.

Not the answer you're looking for? Browse other questions tagged .