Debugging utilities for Linux process hang issues? -


I have a daemon process that makes configuration management. All other processes should interact with this daemon for their functionality. But when I perform a major action, after a few hours the daemon process is unresponsive for 2 to 3 hours. And after 2 to 3 hours it is working normally.

Problems with debugging utilities for the Linux process?

At which point the Linux process hangs?

  • strace can show last system call and their results
  • Lsof can show open files
  • If log messages are written to track progress, system logs can be very effective, allowing box to issue problems in small areas Also log system Relate to other messages from other system, this often results in interesting results
  • wire Use not use sockets to see Chatterjee wires.
  • ps ax + top can show if your app is in a busy loop, i.e. sleeping in the Io or blocked in the IO, is consuming the CPU using memory.

Each of these can give a small part of the information that simultaneously make a picture of the problem.

When gdb is used, it can be useful to trigger a core dump when the app is blocked then you have a static snapshot that you can post on your holiday debit debugging Can use analyze. You can trigger this by a script. You quickly create a set of snapshots that can be used to test your principles.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -