This is on Linux? This should help:
echo fs.file-max = 16384 >> /etc/sysctl.conf
On some distro's like Debian it seems you also have to add these settings to
security.conf, otherwise it may not persist between reboots or even shell
sessions:
echo "systems hard nofile 16384
systems soft nofile 16384" >> /etc/security/limits.conf
> Hi,
>
> I am using solrj and for connection to server I am using instance of the
> solr server:
>
> SolrServer server = new CommonsHttpSolrServer("
> http://localhost:8080/solr/core0");
>
> I noticed that after few minutes it start throwing exception
> java.net.SocketException: Too many open files.
> It seems that it related to instance of the HttpClient. How to resolved the
> instances to a certain no. Like connection pool in dbcp etc..
>
> I am not experienced on java so please help to resolved this problem.
>
> solr version: 3.4
>
> regards
> Jonty