Re: Maximum connections to the server
Bill Biessman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I believe the standard NT workstation license limits you to 10 remote connections. The server licenses support as many connections as you pay for. I have a w2000 professional system that I use as a server and it also has a 10 connection limit. This was a big pain as more and more people started working in parallel. Whoever was number 11 got denied until one of the connections timed out. The default timeout on windows is huge (hours?) so you couldn't simply get a cup of coffee and try again. Efforts to change the timeout by messing with the registry failed. On my W2000 server I can keep-alive up to 35 connections simultaneously, if i try to create more the socket is closed by server. I ended up writing a script that uses some nt utilities to determine how many connections there are and how long each has been connected but idle. If it goes over a limit, I use another NT utility to kill the connection. This has pretty much solved my problem for my team of about 20 developers. I have not gotten the too many connections error or named pipe error in months. Thanks, but now I can't try it. I suggest you to try to upgrade your w2k professional to w2k server. By my side i'm gonna try on W2000 Advanced Server to see if the mazimun connections is superior bye Valerio Bottari Here's the script if you are interested. It's been hacked several times, so please forgive the style. Whenever I start the server I start this script (it is an endless loop) in a window. Bill ### #!/bin/bash typeset deleted_one=no typeset -i max_session_time=10 typeset -i num_sessions=0 net session get_num_sessions() { num_sessions=$(net session | wc -l) let num_sessions=$num_sessions-6 if [ $num_sessions -le 0 ] then let num_sessions=0 fi echo num_sessions=$num_sessions if [ $num_sessions -ge 8 ] then let max_session_time=6 fi } proc_line() { typeset -i hours typeset -i seconds typeset -i t typeset computer let hours=1$1 let hours=$hours-100 let minutes=1$2 let minutes=$minutes-100 let t=$hours*60 let t=$t+$minutes computer=$3 # echo proc_line( $* ) time=$t if [ $t -ge $max_session_time ] then echo connection time $t for $computer, kill net session $computer /delete /y deleted_one=yes else echo connection time $t for $computer, ok fi } proc_session() { typeset line while read line do proc_line $line done } kill_old_sessions() { net session net session \ | cut -c0-20,69-73 \ | awk '/\\/''{print $2 $1}' \ | sed 's///'\ | sed 's/:/ /' \ | proc_session } ### top() { echo html echometa http-equiv=Refresh content=30; url=ServerSessions.html echo title echo Server Connections Status echo /title echo body } middle() { echo pre date +Information gathered %D %T net session echo /pre } bot() { echo /body echo /html } gen_html() { top middle bot } ### sleep_a_while() { typeset -i x let x=$1 while [ $x -ge 1 ] do printf %3i\r $x sleep 1 let x=$x-1 done echo } ### # # run at least one pass # if an argument is passed, run continuously, once # every five minutes # while true do tput home tput clear get_num_sessions echo $num_sessions killsession.txt date kill_old_sessions rm -f e:/tools/apache/apache/htdocs/ServerSessions.html gen_html e:/tools/apache/apache/htdocs/ServerSessions.html if [ $deleted_one = yes ] then deleted_one=no net session fi echo echo echo sleeping before next search for connections if [ $1 = ] then break else sleep_a_while 60 fi done echo goodbye sleep 5 ### -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Larry Jones Sent: Tuesday, March 26, 2002 12:13 PM To: jazzvale Cc
Re: Maximum connections to the server
please give me an answer [EMAIL PROTECTED] (jazzvale) wrote in message news:[EMAIL PROTECTED]... Hello, I'm developing a CVS client for CVS4NT. To increase performance, I use a kind of connection pooling. So, there is a pool with a lot of opened connection and client use these ones to perform CVS operations. I'm wondering about connection timeout and connection limit. So, the questions are: does the connection have a timeout (how long is it?) and is there a limit of maximum connections to the server? Are these properties settable? Thanks a lot, regards, Valerio ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
failed to move file out of the attic: Permission denied
I got the error: failed to move `D:/CVSReps/ ... /xxx,v' out of the attic: Permission denied when I try to resurrect a file previously deleted. I've read that it has been a big bug of cvs but has been already solved... The user has full permission on all the directories on the cvs-server... The server is the last version running on Windows 2000 (CVSNT 1.11.1.3 rc2 (Build 55)), but i got this problem with version 1.11.1.2(build 41) too Can someone help me? Regards Valerio Bottari PS:Here is the socket comunication i make: 07/mar/2002 11:30:31.931 [main] - C: BEGIN AUTH REQUEST 07/mar/2002 11:30:31.931 [main] - C: /uno 07/mar/2002 11:30:31.941 [main] - C: admin 07/mar/2002 11:30:31.941 [main] - C: Aye%?= 07/mar/2002 11:30:31.941 [main] - C: END AUTH REQUEST 07/mar/2002 11:30:34.425 [main] - S: I LOVE YOU 07/mar/2002 11:30:34.435 [main] - C: Root /uno 07/mar/2002 11:30:34.435 [main] - C: Valid-responses E M ok error Valid-requests Created Merged Updated Update-existing Removed Remove-entry New-entry Checked-in Checksum Copy-file Notified Clear-sticky Set-sticky Clear-static-directory Set-static-directory 07/mar/2002 11:30:34.445 [main] - C: UseUnchanged 07/mar/2002 11:30:34.445 [main] - C: Argument -m 07/mar/2002 11:30:34.445 [main] - C: Argument pvs commit 07/mar/2002 11:30:34.445 [main] - C: Directory . 07/mar/2002 11:30:34.455 [main] - C: /uno/mod1/Sanremo/Giovani 07/mar/2002 11:30:34.455 [main] - C: Entry /alexia.jpg/0/// 07/mar/2002 11:30:34.455 [main] - C: Modified alexia.jpg 07/mar/2002 11:30:34.465 [main] - C: u=rw,g=r,o=r 07/mar/2002 11:30:34.465 [main] - C: 6436 07/mar/2002 11:30:34.465 [main] - C: Sending data... 6436 bytes 07/mar/2002 11:30:34.465 [main] - C: 6436 bytes successfully sent 07/mar/2002 11:30:34.475 [main] - C: Argument alexia.jpg 07/mar/2002 11:30:34.475 [main] - C: ci 07/mar/2002 11:30:34.915 [main] - S: E cvs server: failed to move `D:/CVSReps/uno/mod1/Sanremo/Giovani/Attic/alexia.jpg,v' out of the attic: Permission denied 07/mar/2002 11:30:35.016 [main] - S: error ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
CVS Socket comunication problem
We are developing a Java CVS client comunicating via Socket with cvs-server. All works good, but we don't know how to recover a file that has been deleted. The problem is that we don't know how to retrieve the names of the files that has been deleted for a folder (is there a way to log a whole folder and retreive allso the names of the deleted files?). Further this: how do we get the stream of a deleted file? We can't perform an update ... this is an example of an our comunication: C: BEGIN AUTH REQUEST C: d:/cvs3 C: admin C: Aye%?= C: END AUTH REQUEST S: I LOVE YOU C: Root d:/cvs3 C: Valid-responses E M ok error Valid-requests Merged Updated Update-existing Removed Remove-entry New-entry Checked-in Checksum Copy-file Notified Clear-sticky Set-sticky Clear-static-directory Set-static-directory C: UseUnchanged C: Directory . C: d:/cvs3/rep1/vers1/pirla C: Entry /phile7.txt/1.1/=// C: Argument phile7.txt C: update S: E cvs server: phile7.txt is no longer in the repository S: Removed ./ S: d:/cvs3/rep1/vers1/pirla/phile7.txt S: ok phile7.txt is the file that we're trying to recover, but it seems that cvs doesn't want to retreive the version 1.1 of this file!!! Does anybody can help us? Is some documentation avialable somewhere? Thanks Valerio Note: We're running the latest version of cvs-server on WINNT. ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
CVS login time
We're developing a java application to store and get files into a cvs server. We do this using the cvs comunication protocol. The application works good, but we have serious speed problem because every time we login into the cvs-server the it waits about 2.2 seconds to authorize the user. Does anyone know how to decrease this dead time? INFO: At the moment the cvs-server is running on a W2000 server, but in a few weeks we will start testing on lynux. The server is 1.11.1.2 - Build 41 for NT This is how we log: 14:28:07.166 [main] - C: BEGIN AUTH REQUEST 14:28:07.166 [main] - C: d:/cvs2 14:28:07.176 [main] - C: admin 14:28:07.196 [main] - C: Aye%?= 14:28:07.196 [main] - C: END AUTH REQUEST 14:28:09.469 [main] - S: I LOVE YOU Thanks Valerio ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs