Project

General

Profile

Redmine down sometimes

Added by Defferrari Suporte Suporte about 15 years ago

Hello,

I have the Redmine installed in a cPanel Server, with 1.8.5, and sometimes the application down.
Stoping and start the Ruby application, all function again normaly.

In the logs the message is:
Error sending file /data/home/redmine/public_html/redmine/public/images/true.png: Too many open files - /data/home/redmine/public_html/redmine/public/images/true.pngThu Dec 04 23:15:27 -0200 2008: Reaping 4 threads for slow workers because of 'too many open files'

Some help to me?


Replies (5)

RE: Redmine down sometimes - Added by Defferrari Suporte Suporte about 15 years ago

Nothing???

Defferrari Suporte Suporte wrote:

Hello,

I have the Redmine installed in a cPanel Server, with 1.8.5, and sometimes the application down.
Stoping and start the Ruby application, all function again normaly.

In the logs the message is:
Error sending file /data/home/redmine/public_html/redmine/public/images/true.png: Too many open files - /data/home/redmine/public_html/redmine/public/images/true.pngThu Dec 04 23:15:27 -0200 2008: Reaping 4 threads for slow workers because of 'too many open files'

Some help to me?

RE: Redmine down sometimes - Added by Robert Cerny about 15 years ago

Sorry it looks like server issue than redmine issue.

RE: Redmine down sometimes - Added by Defferrari Suporte Suporte about 15 years ago

Why the server Robert? I don't have any problems with other applications, just with Redmine.

RE: Redmine down sometimes - Added by Robert Cerny about 15 years ago

Well,
to find max available open files on the system use command:
$ sysctl -a |grep maxfiles

this command returns 12200 on my macbook pro. It's very unlikely that redmine would open recursively so many files and apache would not complain.

You can try two steps:
  1. assign higher value to kern.maxfiles
  2. check which process have weird number of opened files

The easiest way to check number of opened files per process is via lsof

lsof | perl -lane '$x{"$F[0]:$F[1]"}++;
END { print "$x{$_}\t$_" for sort {$x{$a}<=>$x{$b}} keys %x}'

RE: Redmine down sometimes - Added by Defferrari Suporte Suporte about 15 years ago

I have the same still.

I already configure the limits in the system, and the problem is same.

Maybe the Redmine use several files, and don't close?

What's the directory tmp/sessions? May be related to the problem?

    (1-5/5)