macos – Fixed "fork: resource temporarily unavailable" on OS X El Capitan

I've had problems running Mac OS X El Capitan 10.11.6 that seemed to be related to resource limitation. I saw things like error: cannot spawn or unable to fork or

-bash: fork: retry: Resource temporarily unavailable
-bash: fork: Resource temporarily unavailable

Because my system was not completely freezing or spreading errors everywhere, I expected what was happening was that I had reached the limit number of processes that I could perform.

$ ulimit -u

709 is a lot of process, but I ran a lot of servers on my Mac, so it seemed possible to use as many. I have tried this command, which displays the number of processes performed by the user (actually, 1 more than the number of processes)

$ ps -xu $(id -ru) | wc -l
fork: Resource temporarily unavailable

OK, I could not execute this command, which creates 3 processes, so I was probably at the limit of the process. And the error message does not start with -bash so it was not about ulimit Is. I was hitting the system limit kern.maxprocperuid.

I was able to confirm this by running a shell like root:

$ id -ru
$ sudo -i
root# ps -xu 501 | wc -l

Yes, 706 <709, but mdworker the processes come and go routinely, so it was obvious enough to get closer to the limit.

How to increase the limit of the number of processes that I can execute? I looked for answers and found articles suggesting to create a file /Library/LaunchDaemons/limit.maxproc.plist with this content:


I did it and restarted and now

$ ulimit -u

Which would be great except

$ sysctl kern.maxproc

THIS IS DANGEROUS. This means that the entire system is always limited to a maximum of 1064 processes, but that an individual user is allowed to create more than that. When the system reaches the maximum number of processes, it usually hangs fast and very badly. It is therefore very important that no user is allowed to create enough processes to fill the process table. That's why, on the Mac, users are limited to 2/3 of the total number of processes.

I found similar suggestions regarding the maximum number of open files maxfiles and maxfilesperproc, which are even more dangerous, because a single process should absolutely not be allowed to open the limit of the total number of open files at the system level.

The other problem is that if 709 processes are not enough, it is unlikely that 1000 processes are too.

So, what is the good way to fix "Too many open files" or "fork: resource temporarily unavailable" on OS X El Capitan?

sharepoint online – The page you requested is temporarily unavailable. We apologize for the inconvenience. Please check in a few minutes.

I add and update 56 columns (include the People Picker column) and 4999 rows in the sharepoint list via Excel using the Rest API, but after a while, I get a temporary problem of regulation and it does not update nor add all the data.
"The page you requested is temporarily unavailable We apologize for the inconvenience, please come back in a few minutes."

Indian citizens – Can I work temporarily in the offices of my company located in the Schengen area with a Schengen type C visa and in the UK with a level 2 visa?

I am an Indian national working in the UK with a level 2 visa. I have recently received a French Schengen visa with multiple entries of 2 years and I have used it to travel to France.

My UK company has an office in the Schengen area (not in France) and as an employee I can be allowed to work there for a week or two to experience and know the team .

I understand that my Schengen visa would allow me to travel to any Schengen country for a business meeting, but is it ok to work as planned in my situation? If not, what visa do I need and its acquisition would cancel my current Schengen visa?

dnd 5th – How can I temporarily blind an opponent with the command spell?

I love the lot orderand I'm looking for a way to get someone to go blind temporarily. Yet, for my life, I can not find a solitary verb that means closing my eyes. It's funny how the English language is bad, haha.

What order can I give with the order a spell to temporarily blind an opponent?

installation – Can I temporarily install a package with apt

I often find myself interested in trying different packages to solve a problem, find the one I prefer and compare their benefits. A trivial example could be compare Emacs, vim, atom, nano, sublimeetc.

In doing so, I sometimes lose track of the different packages I have installed. It's annoying because I end up finding myself with a clutter that I do not use, and I'm not sure I'll need more.

Is it possible to use apt, or another package manager, which will allow me to mark as temporary a package that I have installed, so that it is:

  • Be removed when I restart
  • Be removed when I autoclean/autoremove
  • Be removed after a certain period

I am aware that packages can be marked as manually or automatically installed with apt, and this can sometimes allow them to be deleted automatically.

Would it work as expected?
Is it recommended?
Do I have other options?

How to temporarily disable comment feed in a single staff

I flood the comments in my plugin in a reasonable way:

function log_my_comments ($ post_id)
$ my_comments = get_my_comment_data ($ post_id);

foreach ($ my_comments as $ my_comment) {
wp_insert_comment (
& # 39; comment_post_ID & # 39; => $ post_id,
& # 39; comment_type & # 39; => $ my_comment,
& # 39; comment_type & # 39; => & # 39; my_comment & # 39 ;,
// ...
} // endforeach

add_action (& # 39; save_post & # 39 ;, & quot; log_my_comments & # 39 ;, 9);
add_action (& # 39; new_to_publish & # 39 ;, & quot; log_my_comments & # 39 ;, 9);

He will flood the comment No more of 5 in one transaction. Now, when I use my function for the user role "author", it blocks me with:

You post comments too quickly. Slow down.

and does the job at waiting.

I can easily solve the problem by adding capacity moderate comments to the user, but it's an essential feature, and I do not want to hack the default author role. I just want to solve the problem from a local and not a global perspective.

I have therefore taken the easiest way to proceed:

function log_my_comments ($ post_id)
$ my_comments = get_my_comment_data ($ post_id);

// Disable Flooding Comments
add_filter (& # 39; comment_flood_filter & # 39; __; return_false & # 39 ;, 11);

foreach ($ my_comments as $ my_comment) {
// wp_insert_comment ();

// Turn on the comment feed again
remove_filter (& # 39; comment_flood_filter & # 39; __; return_false & # 39;);

But it does not work. I have tried in priority 9 also. Need your suggestion, how can I fix this problem?

5th dnd – Is banishing a viable option for temporarily getting rid of a live spider?

In a fight against a live spider on a material level, would the Banning spell be a viable option to temporarily keep a live spider out of the fight?

According to the Banishing Spell, the target creature would be banned in a harmless destruction plan and would be disabled if it is native to the Material plane, but banished to its original plane if it originates from another plane.

Removing the spider phase from the fight for a minute would be the desired situation. But I do not know the birth plan of Phase Spiders. To banish him on the ethereal plane would produce an unsatisfactory result since it would allow Ethereal Jaunt to return directly to the fight.

woocommerce – How to fix the problem: "The resource you are looking for has been removed, if its name has been changed or is temporarily unavailable." after cleaning the malicious program

A few days ago, we were hired to optimize a WP site that manages a multi-vendor site on woocommerce. the site has been infected with malware and can not access ftp or cPanel because the owner does not have the information to do so. I searched the web and found the plug-in "Anti-Malware and Brute-Force Security by ELI".
After running the scan, it quarantines the following files:
enter the description of the image here

I logged out and now that I am trying to log in to work, the message "The resource you are looking for has been removed, if its name has been changed or is temporarily unavailable." On screen display.

The home page is open, but if you click on a link, the message will reappear.
The site is

I do not know exactly what plugin uses to connect, or if it's important, but I can not access the dashboard.

I hope you can help me.

Thank you and sorry for the bad english.

How to solve the WordPress error: temporarily unavailable

I had a problem with WordPress; an error appears here and there saying: temporarily unavailable. Whenever I try to access pages, publications or products, this error appears. In addition, all media files have disappeared from the dashboard although I can see them in the file manager. I've tried to change the theme and disable the plugins but the problem persists. Any help is greatly appreciated. Thank you.