Granulate / gprofiler

gProfiler is a system-wide profiler, combining multiple sampling profilers to produce unified visualization of what your CPU is spending time on.
https://profiler.granulate.io
Apache License 2.0
746 stars 54 forks source link

java: ETXTBUSY for the temporary script to check executability of directory #720

Open Jongy opened 1 year ago

Jongy commented 1 year ago
Traceback (most recent call last):
File "gprofiler/profilers/profiler_base.py", line 132, in _wait_for_profiles
File "concurrent/futures/_base.py", line 451, in result
File "concurrent/futures/_base.py", line 403, in __get_result
File "concurrent/futures/thread.py", line 58, in run
File "gprofiler/profilers/java.py", line 949, in _profile_process
File "gprofiler/profilers/java.py", line 357, in __init__
File "gprofiler/profilers/java.py", line 389, in _find_rw_exec_dir
File "gprofiler/utils/fs.py", line 47, in is_rw_exec_dir
File "gprofiler/utils/__init__.py", line 234, in run_process
File "gprofiler/utils/__init__.py", line 149, in start_process
File "subprocess.py", line 971, in __init__
File "subprocess.py", line 1847, in _execute_child
OSError: [Errno 26] Text file busy: '/proc/2082/root/tmp/gprofiler_tmp/t-945a25f5819bd0e1afa8.sh'

This is racy - happens on multiple deployments that I saw, but not consistent.