Error Reported When Specifying a PID for Hotspot Function Analysis
Symptom
When trying to specify a PID for hotspot function analysis in CLI mode, an error is reported stating "error: not enough memory."
Possible Cause
CPU cores can be specified for the analysis. It is found that a large number of FD files need to be opened for the analysis and the number of mmap files is large. As a result, the memory becomes insufficient.
Troubleshooting Procedure
Increase the system upper limit to collect data for the analysis.
1 2 | ulimit -n 300000 echo 300000 > /proc/sys/vm/max_map_count |
Parent topic: FAQs