Quick workaround sunspot solr + too many open files error

This link is very helpful to fix solr- Too many open files error.
http://ithubinfo.blogspot.com/2013/07/how-to-increase-ulimit-open-file-and.html#chitika_close_button

Max Number of ulimit open file : It’s provide open file resource
availability in linux

Increase max number of ulimit open file in Linux.

1- Step : open the sysctl.conf and add this line fs.file-max = 65536

vi /etc/sysctl.conf add end of line
fs.file-max = 65536

save and exit.

  1. Step : vi /etc/security/limits.conf and add below the mentioned
  •      soft     nproc          65535
    
  •      hard     nproc          65535
    
  •      soft     nofile         65535
    
  •      hard     nofile         65535
    

save and exit check max open file ulimit

3.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) 127358
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65535

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs