zhuangpeipei wrote: > HOST 1: SunV240,2 CPU,2G RAM,Solaris10 > HOST2:Intel PC,P4 2.66G,1G RAM,WindowsXP > the same web service (apache tomcat) installed on these two hosts,a client > program which is running in other host creates http connections .each > connection is a session.client program creates difference sessions to HOST1 > and HOST2 separately. the web service program will record the logs in > database after a simple dispose. > following parameters have been commited in SUN V240. > ndd -set /dev/tcp tcp_conn_req_max_q 1024 > ndd -set /dev/tcp tcp_conn_req_max_q0 4098
This is for the three-way handshake and those that have not yet been accept()ed > test results: the max connection received in SUN server is 350(equals MAX > incurrent process value is 350,the database recorded 350 logs),in windows pc > ,MAX value can exceed 500. > I want to know > 1.is sun server or solaris os have any max tcp connection limitation? No. Not by design, only by resource. But it is not clear what portion of the configuration is causing a problem--incoming connections, or connections to the DB. Or does each connection cause the launch of another process? > 2.are there any other parameters I should adjust? Your maximum file descriptors per process may be a limit, or in some cases, the number of privileged ports (rexec or rlogin can have that happen, not sure which) You should check out the tunables reference manual at this URL. The ones to look at for file descriptors are rlim_fd_cur and rlim_fd_max. Steffen > > > This message posted from opensolaris.org > _______________________________________________ > networking-discuss mailing list > [email protected] _______________________________________________ networking-discuss mailing list [email protected]
