[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fork. system login failure






>From: mulix <mulix@actcom.co.il>
>To: Stiven Andre <stiven_a@hotmail.com>
>CC: <linux-il@linux.org.il>
>Subject: Re: fork. system login failure
>Date: Mon, 26 Nov 2001 22:03:23 +0200 (IST)
>
>On Mon, 26 Nov 2001, Stiven Andre wrote:
>
> > I have some strange probelm.
> > I have server running rh7.2 that works 24hours a day and after adding 
>some
> > cron jobs I always recieve the following:
> >
> > When the server runs about 10-20 hours I recieve an error "sh: fork 
>Resource
> > temporary unavilable" for the first 3-4 commands I enter.
> > after that it goes normaly.
> > But if  I will leave server alone for 40-50 hours I can't even login 
>(Using
> > the console not remotly). When I type username and pass it logs me in 
>for
> > 2-3 secs after that writes something (not enough time too see what) and 
>logs
> > me out. The server still functionaling normaly all the services wotk as 
>it
> > should but I can't login.
>
>sounds to me like your cron jobs are creating processes which are then
>left hanging around, causing later forks to fail. the is a limit on the
>number of processes a system can have.
>
>what do your cron jobs do?
>--
>mulix
>

I have 2 cron jobs:

1: is an excutable to update the my vhost on www.no-ip.com
2: is for automaticly chmod/chown of the /home/ftp it is sctipt looks like 
this:
chown X-Kent:archive -R /home/ftp/mp3
chown X-Kent:archive -R /home/ftp/linux
chown X-Kent:archive -R /home/ftp/games
chmod -R a-rwx /home/ftp/mp3
chmod -R a-rwx /home/ftp/linux
chmod -R a-rwx /home/ftp/games
chmod -R u+rwx /home/ftp/mp3
chmod -R u+rwx /home/ftp/linux
chmod -R u+rwx /home/ftp/games
it is not the exact copy but it is very close, the original sctip has about 
10-12 commands.

they both places in /etc/cron/hourly
and both are marked as exutables.
May it confuse my 133mhz 32RAM machine ?

The root user also recieves much e-mails from (Cron Deamon)
saying: /usr/bin/run-parts: fork: Resource temporarily unavailable.

>http://www.pointer.co.il/~mulix/
>http://syscalltrack.sf.net/
>
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il