Questions tagged [fork]
19 questions
22
votes
4 answers
What's the best way to clean up after a fork bomb?
$ ls
bash: no more processes
Uh oh. Looks like someone made a fork bomb. Where I used to work, this pretty much meant that the shared server would need to be power-cycled, since even the sysadmins with root often couldn't get the problem cleaned…

raldi
- 987
- 4
- 11
- 13
20
votes
5 answers
APT FATAL -> Failed to fork
I saw a lot of questions regarding this, but mine seems a little different.
Here's what I receive:
/etc/cron.weekly/apt-xapian-index:
FATAL -> Failed to fork.
run-parts: /etc/cron.weekly/apt-xapian-index exited with return code…

MultiformeIngegno
- 1,687
- 9
- 26
- 31
8
votes
1 answer
Rsync and "ssh_exchange_identification: Connection closed by remote host"
I have a script which rsync's a local directory to about 10 remote servers. It basically has a list of the servers and for loops through each of them doing the rsync. To speed up the process I have it fork for each of the rsyncs, so that all 10…

Mediocre Gopher
- 803
- 1
- 13
- 24
3
votes
3 answers
How do you manage software's local forks?
As a system administrator, I often have to modify programs for my company.
Example:
We're using an web interface to manage our local DNS.
After downloading and extracting the tar.gz file from the internet, I have to do some changes: I added a LDAP…

SamK
- 1,356
- 3
- 14
- 28
2
votes
0 answers
Forking loads disk
I have a prefork/fork daemon. By atop I see, that master-process often consumes disk:
PID TID RDDSK WRDSK WCANCL DSK CMD
16830 - 7264K 48696K 18624K 10% our daemon
From strace I see, that it only forks in this time period:
1461316357.209106…

Denis Isaev
- 41
- 2
2
votes
2 answers
Find out what processes are forking
My server seems to be a bit slow, so I decided to install munin to see what is happening. One statistic that stands out is that the server is forking 50 times a second, which seems a little excessive for my server.
How do I find out what is forking…

Michael Buckley
- 121
- 4
2
votes
1 answer
Upstart, no feedback whether starting failed
I have a daemon in /opt/xyz/bin/xyz. Unfortunately it cannot fork itself into background and will not be able to do so within the next half year. My problem is the following: Entering
service xyz start
just returns
xyz start/running, process…

user694971
- 123
- 3
1
vote
1 answer
Do Zombie Process have adverse effects?
Yes, I have gone through a lot of answers, but they don't really specifically say if Zombie Processes will have any adverse effects in the longer run or not.
I have an application that creates a child on new connection and the child performs certain…

Dushyant Bangal
- 123
- 1
- 1
- 9
1
vote
1 answer
fork: Resource temporarily unavailable running JVM
I'm running a Tomcat 6 instance on a 34 GB EC2 instance. I've been struggling to keep the memory down but this thing services a lot of requests and the heap frequently gets up to 13 GB. But the heap is another story.
The real problem right now is…

sehugg
- 411
- 1
- 5
- 13
1
vote
1 answer
Docker-compose // OCI runtime create failed // pthread_create failed
Recently I have rent a VPS as private playground and for learning docker.
I want to host a few webservices behind nginx-proxy together with
docker-letsencrypt-nginx-proxy-companion.
Setup
The Server runs Ubuntu 18.04.4 LTS, Docker version 19.03.6,…

void
- 178
- 9
0
votes
1 answer
Unable to fork children even after exiting previous ones
I have a CentOS VM on which I'm running a php socket server, that forks on every connection. The child process does its job and then exits.
The parent is also waiting to reap the dead zombie process (I have checked the ps auxf…

Dushyant Bangal
- 123
- 1
- 1
- 9
0
votes
2 answers
Is there any way to start mongo-connector in linux as a background process?
I am using mongo-connector to synchronize data between MongoDB and SOLR. I am working in RedHat 7 OS Server, I wanted to run the mongo-connector command as fork process in Server OS, since i need a realtime synchronization without any…

Telen Stanley
- 155
- 1
- 2
- 7
0
votes
0 answers
fork/vfork are failing but return an out of bounds errno
I have a piece of software running on a 64 bit Cent 5.8 Final box, kernel 2.6.18. This piece of software using fork and vfork. Recently some failures occurred, and in my logging I can see that fork or vfork failed, emitting a return code of -1. …

kmarks2
- 192
- 1
- 2
- 12
0
votes
1 answer
How Puppet handles manifests in terms of processes?
I want to find out how Puppet handles manifests: in master process or Puppet forks it to execute in child process?
It necessary for me to know what exactly do puppet master while handling manifests, because I need to push some default configurations…

zerospiel
- 467
- 1
- 5
- 10
0
votes
1 answer
Forking and memory allocation question
I have inherited a Perl script that runs on an EC2 instance which basically crawls a bunch of URL's for data (aka scraping). The way this script is invoked is via a shell script that forks multiple of these perl scripts. There could be hundreds of…

Etienne
- 103
- 3