Openfire and Connection Manager limited at 940 users

Hello,

I have to configure my server because i think that I’ll have 40K user’s online.

But, on my tests, on test’s server with openfire server suported 940 connections like other pc with connection manager.

My servers have 2Gb, Dual core and Linux Bluewhite64 12.2 (version 64 bits of Slackware)

When I try to connect using Smack, after hit 940 connections the connection manager put in log that information:

538400 [SocketAcceptor-0] WARN org.apache.mina.common.support.DefaultExceptionMonitor - Unexpected exception.
java.io.IOException: Too many open files
at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.accept(Unknown Source)
at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.processSessions(Sock etAcceptor.java:273)
at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.j ava:225)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

So, what can I do in this case?

Thanks for all…

Dude!

You didn’t believe my guidance when you asked about this in the chatroom today and I said you need to increase the file descriptors?

daryl

Sorry,

but, the chat is down and I not have time to answer you… I’ll try to do that…

how to modify fd limited:

vi /etc/security/limits.conf and add two lines:

* soft nofile 65535
* hard nofile 65535

vi /etc/pam.d/login and add:

session    required     /lib/security/pam_limits.so

this worked for Redhat AS 4 .

or search google ‘too many open files’, there are many answers.

Thanks, that’s it!

Before starting my Openfire server and Connection Manager, i use “limit descriptors <num_of_descriptors>”.