Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have an issue with my tomcat service, for more background info click here.

What I am here about is that i suspect it has to do with my ulimit as my application does use rabbitmq and similar problems were spoken about in this stackoverflow thread

I then did more research and found this about ulimits.

The output of my command was "lsof | awk '{if(NR>1) print $3}' | sort | uniq -c | sort -nr" was:

330424 root
4260 rabbitmq
788 mem
103 txt
103 rtd
103 cwd

And my output from ulimit -a

core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 177092
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 177092
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

The open files for root and rabbitmq are way above the default value of 1024.

OS=Debian 7

RAM=20GB

Does this open file limit of 1024 affect the root if so taking into consideration the high number of open files for root and the RAM limitations i have, what is an optimal value or provide me with a method to arrive at this value.

The following link doesn't give much information how to get the ulimit value.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.