Re: max connection issue

61 views
Skip to first unread message
Message has been deleted

Akshath

unread,
Mar 1, 2014, 12:58:11 AM3/1/14
to quick...@googlegroups.com
You must be hitting one of the OS limits (file [even sockets are files] or threads).. do check you OS limits using. 

ulimit -a


Do refer the following links for more info..


http://glassonionblog.wordpress.com/2013/01/27/increase-ulimit-and-file-descriptors-limit/

On Saturday, 1 March 2014 08:21:29 UTC+5:30, Sanjay Bharmoria wrote:
Hi I am using quick server 1.4.7,
I cannot go beyond 1022 Clint connection. I have set the MX limit is 2000 but still the issue is same...
OS RHEL5.5 32BIT 4GB RAM.

WHEN CONNECTION REACH 1022 AFTER that quick server is not responding to new client request

Message has been deleted

Akshath

unread,
Mar 1, 2014, 4:24:15 AM3/1/14
to quick...@googlegroups.com
The configuration looks okay. 

Can you share the application log (java logging).. do you have any error in there ? Also please do share your server xml file. Thanks

On Saturday, 1 March 2014 14:36:46 UTC+5:30, Sanjay Bharmoria wrote:
here is ulimit -a
i want to conenct 5000 client to quick server and h/w is IBM 3550 but it is not making more than  1022.

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

Akshath

unread,
Mar 2, 2014, 6:01:09 AM3/2/14
to quick...@googlegroups.com
Log looks fine.. I can't find any errors or exception.

XML File:
- max-connection value is 1500
But since you are looking up to 5k.. you may want to set this to 5200 (200 buffer)
- object-pool/max-active is set to 2000
    This should always be higher than max-idle value and since you are looking at 5k concurrent users.. set this around 5500
- object-pool/thread-object-pool/max-active is set to 3000
    This should always be higher than max-idle value and since you are looking at 5k concurrent users.. set this around 5500
Also what happens after 1022 client are connected.. does the new client
 1. Does the new client connect ? or You get connection refused ?
 2. If you are able to connection; do you get notification in your got connected method ?
 3. What error do you encounter at the client side ?

Other Tips on the xml:
- console-logging-level is set to DEBUG
This is not a valid value. Its always recommended you set this to WARNING or higher..  too much console logging can show your server down
- communication-logging
You may want to turn off this in production

On Sunday, 2 March 2014 12:05:45 UTC+5:30, Sanjay Bharmoria wrote:
Thanks Akshath... here is the xml file and log attached...
<?xml version="1.0"?>
<quickserver>
<name>OmcTcpServer </name>
<port>6790</port>
<bind-address></bind-address>

<client-event-handler>
com.hns.hss.nmf.server.tcp.MessageCommandHandler
</client-event-handler>
<client-bytebuffer-handler>
com.hns.hss.nmf.server.tcp.MessageCommandHandler
</client-bytebuffer-handler>
<!--<client-data>
</client-data>-->
<default-data-mode>
<data-type-in>Byte</data-type-in>
<data-type-out>Byte</data-type-out>
</default-data-mode>
<!--The Time out for Ghost Socket-->
<timeout>180000</timeout>
<max-connection>1500</max-connection>
<console-logging-level>DEBUG</console-logging-level>
<console-logging-formatter>
org.quickserver.util.logging.SimpleConsoleFormatter
</console-logging-formatter>
<communication-logging>
<enable>true</enable>
</communication-logging>
<init-server-hooks>
<class-name>
org.quickserver.util.logging.SimpleJDKLoggingHook
</class-name>
</init-server-hooks>

<server-mode>
<blocking>true</blocking>
</server-mode>

<object-pool>
<max-active>2000</max-active>
<max-idle>3000</max-idle>

<thread-object-pool>
<max-active>3000</max-active>
<max-idle>5000</max-idle>
</thread-object-pool>
</object-pool>

<advanced-settings>
<charset>ISO-8859-1</charset>
<use-direct-byte-buffer>true</use-direct-byte-buffer>
<byte-buffer-size>61440</byte-buffer-size>
<backlog>2048</backlog>
<socket-linger>-1</socket-linger>
<debug-non-blocking-mode>false</debug-non-blocking-mode> 
</advanced-settings>
<!-- Config QSAdminServer -->
<qsadmin-server>
<port>2223</port>
<server-banner>
QSAdminServer Started on port : 2223
</server-banner>
<command-shell>
<enable>true</enable>
</command-shell>
<communication-logging>
<enable>false</enable>
</communication-logging>
<server-mode>
<blocking>false</blocking>
</server-mode>
</qsadmin-server>
<!-- Config QSAdminServer -->
<!--<application-jar-path>../dist/tcpServer.jar</application-jar-path> -->
</quickserver>
Message has been deleted
Message has been deleted

Sanjay Bharmoria

unread,
Mar 3, 2014, 2:00:41 AM3/3/14
to quick...@googlegroups.com
Thanks Akshath for your kind support. 
Issue has been resolved. 
Reply all
Reply to author
Forward
0 new messages