[DUG] Service hassles - out of resources
Dave O'Brien
dave at ICCS.CO.NZ
Fri Apr 28 10:42:35 NZST 2006
Have a search for "Active Ports". This will tell you which process is
bound to the port and may give you a hint...
David O'Brien
ICCS
P.O Box 1116
Palmerston North
027 442 1037
Computer sales and support services
Custom software design
-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]
On Behalf Of Phil Middlemiss
Sent: Friday, 28 April 2006 9:53 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Service hassles - out of resources
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
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
>
>
More information about the Delphi
mailing list