Generally, if you get a "Address and port already in use" and you know that no other service or program uses that address/port then you have a hanging process that hasn't shut down property. Check the Task Manager to see if the process is still running if it happens again. If it interacts with IIS then restarting that can clear it too (it may be that an ISAPI DLL is hung up if you are interacting with one).

My only guess as to the resources problem would be that it may be file handles it is running out of (since each TCP connection uses a file handle).

Either way it sounds like a connection or connections are not terminating correctly and leaving something hanging - possibly over and over, thereby eating up file handles.

Phil.

Phil Scadden wrote:
Panicing here a bit. Have a service running under windows XP that does two 
things.

First it runs an Indy TCPServer. Uses this for communication with remote
control apps.

Second, it runs manages a bunch a extremely cpu intensive processes,
starting them and stopping them as requested. It does this largely so
console application (written in fortran) can be started on machine startup
and run in background.

Now, first indicartion of problem was when got error from service as it
tried to start these processes.
System error - insufficient resources etc.

hmm. Not a memory problem. pretty of main memory, memory usage by
the service unchanging and small. Stop service, uninstall, install, start.
Fails to start. This time the event log says TCP Server failed to start -
"Address and port already in use". Say what?? The server was uninstalled.
Anyone know why address and port might be tied up. I have stopped and
started the service many many times without problems. Had to reboot in the
end.

The out of resources. What a strategy for finding out what resources its out
of? Does writing output to a filestream opened on "NL:" actually consume
any resource??

Any ideas welcome.



----------------------------------------------------------
Phil Scadden, Institute of Geological and Nuclear Sciences
764 Cumberland St, Private Bag 1930, Dunedin, New Zealand
Ph +64 3 4799663, fax +64 3 477 5232

_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi



begin:vcard
fn:Phil Middlemiss
n:Middlemiss;Phil
org:Vision Software, MTS Ltd
email;internet:[EMAIL PROTECTED]
title:Project Leader
tel;work:+64 7 3480001
tel;cell:+64 27 4592648
x-mozilla-html:TRUE
url:http://www.tumonz.co.nz
version:2.1
end:vcard

_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to