Python生产诊断
找出进程编号
ps aux | grep "python.*agents/main.py" | grep -v grep
sudo py-spy dump --pid 43091
Thread 0x2024A2C40 (idle): "MainThread"
wait (threading.py:359)
wait (threading.py:655)
_do_wait_suspend (pydevd.py:2257)
do_wait_suspend (pydevd.py:2188)
_do_wait_suspend (_pydevd_sys_monitoring.py:1955)
_stop_on_breakpoint (_pydevd_sys_monitoring.py:1318)
_internal_line_event (_pydevd_sys_monitoring.py:1517)
_line_event (_pydevd_sys_monitoring.py:1475)
process_request (agents/meeting_agent.py:96)
run_interactive_mode (agents/main.py:105)
main (agents/main.py:236)
_run_code (_pydevd_bundle/pydevd_runpy.py:118)
_run_module_code (_pydevd_bundle/pydevd_runpy.py:127)
run_path (_pydevd_bundle/pydevd_runpy.py:310)
run_file (debugpy/server/cli.py:358)
main (debugpy/server/cli.py:508)
_run_code (runpy.py:88)
_run_module_as_main (runpy.py:198)
Thread 0x16FE5F000 (idle): "pydevd.Writer"
wait (threading.py:359)
get (queue.py:180)
_on_run (_pydevd_bundle/pydevd_comm.py:390)
run (_pydevd_bundle/pydevd_daemon_thread.py:53)
_bootstrap_inner (threading.py:1075)
_bootstrap (threading.py:1032)
Thread 0x170E6B000 (active): "pydevd.Reader"
_read_line (_pydevd_bundle/pydevd_comm.py:227)
_on_run (_pydevd_bundle/pydevd_comm.py:245)
run (_pydevd_bundle/pydevd_daemon_thread.py:53)
_bootstrap_inner (threading.py:1075)
_bootstrap (threading.py:1032)
Thread 0x171E77000 (idle): "pydevd.CommandThread"
wait (threading.py:359)
wait (threading.py:655)
_on_run (pydevd.py:279)
run (_pydevd_bundle/pydevd_daemon_thread.py:53)
_bootstrap_inner (threading.py:1075)
_bootstrap (threading.py:1032)
Thread 0x172E83000 (idle): "pydevd.CheckAliveThread"
wait (threading.py:359)
wait (threading.py:655)
_on_run (pydevd.py:325)
run (_pydevd_bundle/pydevd_daemon_thread.py:53)
_bootstrap_inner (threading.py:1075)
_bootstrap (threading.py:1032)
Thread 0x173E8F000 (idle): "Thread-6"
wait (threading.py:355)
wait (threading.py:655)
_on_run (_pydevd_bundle/pydevd_timeout.py:43)
run (_pydevd_bundle/pydevd_daemon_thread.py:53)
_bootstrap_inner (threading.py:1075)
_bootstrap (threading.py:1032)
call (_pydev_bundle/pydev_monkey.py:1134)

浙公网安备 33010602011771号