Linux ulimit default is 1024.
Append:
ulimit -HSn 4096
To:
/etc/profile
Append:
fs.file-max = 8192
To:
/proc/sys/fs/file-max
Shell:
lsof -n |awk '{print $2}'|sort|uniq -c |sort -nr|more
Display: size, ps
131 24204
57 24244
57 24231
56 24264
Shell:
ulimit -a
Display: item, value
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 128161
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 800000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 128161
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
-----邮件原件-----
发件人: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 代表
Erron Austin
发送时间: 2008年10月23日 2:46
收件人: Velocity Users List
主题: Re: Too many open files
We are using jboss with Apache Proxy running in front on jdk 1.5.
Adrian,
Thanks for the suggestion.
On Wed, Oct 22, 2008 at 11:57 AM, Glenn Holmer
<[EMAIL PROTECTED]>wrote:
> On Wed, 2008-10-22 at 10:43 -0400, Erron Austin wrote:
> > We are experiencing a "too many open files error" in our application
> running
> > on Linux using Velocity Engine 1.5 and Velocity Tools 1.4.
>
> What app server? What HTTP server? Using mod_jk?
>
> --
> ____________________________________________________________
> Glenn Holmer [EMAIL PROTECTED]
> Software Engineer phone: 414-908-1809
> Weyco Group, Inc. fax: 414-908-1601
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]