Mac report ZSH: fork failed: Resource Permanently (reason and solution)
MacOS version: 10.15.3 (19D76)
why
A few days ago, I used django-crontab
to do the timing task and forgot to delete the task, which led to the continuous creation of processes in the background, and finally the terminal kept reporting errors, and the new browser and files could not be opened.
Check the following command to see that there are 1000+ processes in the background
ps -ef | grep cron | wc -l
The solution
During this period, try to close crontab
directly, but cannot close it all the time
sudo /usr/sbin/cron stop # 关闭命令
cron: cron already running, pid: 177
Final solution
First of all, empty the crontab
task, delete what was created by what, for example, I passed django-crontab
So the command to remove the task is python manager.py crontab remove
Then batch delete the cron
process
ps -ef | grep /usr/sbin/cron |grep -v grep | cut -c 9-15 | xargs sudo kill -9
Solve it!!
conclusion
The Mac exception occurs because the thread or open file exceeds the system limit. If such an exception is reported as an error and is frequent, and the restart does not work, you need to consider whether there is some program frantically starting the process in the background. Don’t go to modify the Mac thread/file limit, to find the root cause, if indeed because development demand process, then can consider to modify the Mac itself limits, otherwise just solve the abnormal surface, but the process is still on your background, constantly eat your system resources.
Read More:
- Resolve – bash: fork: Retail: resource temporarily unavailable error
- Failed to execute / bin / bash: resource temporarily unavailable
- Su prompt when switching users: resource temporarily unavailable
- glassfish:Resource temporarily unavailable in tsStartJavaThread
- How to solve the resource temporarily unavailable error of the Linux host?
- Su – MySQL switch user, display error: resource temporarily unavailable
- Service temporarily unavailable due to an ongoing leader election. Please refresh
- The reasons and common solutions of vs flash back on the road of C + + Learning (with reasons attached)
- Chrome console reports Failed to load resource: net::ERR_BLOCKED_BY_CLIENT one of the solutions
- Failed to load resource: the server responded with a status of 503 (Service Unavailable)
- How to Solve Azkaban error (Reasons & Solutions)
- Sophus Library Issues (Reasons & Solutions)
- When Dbeaver starts on Mac, it reports an error: “fail to create java virtual machine”
- Mac compiles Doris with MVN and reports an error checkstyle
- Mac computer logs into docker and reports an error
- Use the Zsh plug-in ‘Zsh syntax highlighting’ to highlight your available Zsh commands
- [Solved] Source Zsh error: zsh problem: compinit:503: no such file or directory
- When the MAC M1 uiautomatorviewer is opened, it displays blank or reports an error
- Vs error prompt: “unable to open source file XXXX. H” possible reasons and Solutions
- Hadoop reports an error. Cannot access scala.serializable and python MapReduce reports an error