[Opensim-dev] OpenSim crashing why?
Clive Gould
cliveg at gmail.com
Tue May 4 11:10:13 UTC 2010
Normal clients appear to open 4 each connections with the server as
can be seen below:
[opensim at vleinternal ~]$ netstat -anput | grep 10.100.0.17:9000
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 10.100.0.17:9000 90.192.61.239:64113
ESTABLISHED 8036/mono
tcp 0 0 10.100.0.17:9000 90.192.61.239:64125
ESTABLISHED 8036/mono
tcp 0 0 10.100.0.17:9000 90.192.61.239:64121
ESTABLISHED 8036/mono
tcp 0 0 10.100.0.17:9000 90.192.61.239:64123
ESTABLISHED 8036/mono
tcp 0 0 10.100.0.17:9000 10.100.0.1:1721
ESTABLISHED 8036/mono
tcp 0 0 10.100.0.17:9000 10.100.0.1:1720
ESTABLISHED 8036/mono
tcp 0 0 10.100.0.17:9000 86.7.243.78:52777
ESTABLISHED 8036/mono
tcp 0 0 10.100.0.17:9000 86.7.243.78:52768
ESTABLISHED 8036/mono
tcp 0 0 10.100.0.17:9000 86.7.243.78:52786
ESTABLISHED 8036/mono
tcp 0 0 10.100.0.17:9000 86.7.243.78:52763
ESTABLISHED 8036/mono
tcp 0 0 10.100.0.17:9000 10.100.0.1:1739
ESTABLISHED 8036/mono
tcp 0 0 10.100.0.17:9000 10.100.0.1:1738
ESTABLISHED 8036/mono
Why on earth should one particular Imprudence client (temporarily
disallowed access using iptables) be opening connections spiralling
out of control?
On Tue, May 4, 2010 at 11:36 AM, Clive Gould <cliveg at gmail.com> wrote:
> Hi
>
> It seems that one particular remote client is causing OpenSim to open
> new connections over and over again.
>
> Is it possible a firewall setting on the client could be causing the
> number of open connections to spiral out of control?
>
> Anyone else have experience of this?
>
> Thanks very much
>
> Clive
>
>
>
>
>> ------------------------------
>>
>> Message: 4
>> Date: Tue, 4 May 2010 08:56:37 +0100
>> From: Clive Gould <cliveg at gmail.com>
>> To: opensim-users at lists.berlios.de
>> Cc: tedd at konge.net
>> Subject: Re: [Opensim-users] OpenSim crashing why?
>> Message-ID:
>> <h2h62a72a691005040056z1951e9b3ra4917cfac0e8e271 at mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hi
>>
>> The Linux command that finally did the trick was:
>>
>> netstat -anput
>>
>> Hi
>>
>> This showed that OpenSim was maintaining over 900 connections to the
>> remote IP 94.169.170.24
>>
>> [opensim at vleinternal ~]$ host 94.169.170.24
>> 24.170.169.94.in-addr.arpa domain name pointer
>> cpc3-croy18-2-0-cust535.croy.cable.virginmedia.com.
>>
>> By restarting OpenSim and blocking 94.169.170.24 in /etc/hosts.deny
>> these connections, which I suspect were crashing the simulator
>> periodically, have gone away.
>>
>> Does anyone know what could cause all these open connections???
>>
>> Thanks for all the help and advice
>>
>> Clive
>>
>>
>>
>>
>> On Mon, May 3, 2010 at 8:25 PM, <opensim-users-request at lists.berlios.de> wrote:
>>> Send Opensim-users mailing list submissions to
>>> ? ? ? ?opensim-users at lists.berlios.de
>>> ------------------------------
>>>
>>> Message: 4
>>> Date: Mon, 3 May 2010 21:25:34 +0200
>>> From: "Tedd Hansen" <tedd at konge.net>
>>> To: <opensim-users at lists.berlios.de>
>>> Subject: Re: [Opensim-users] OpenSim crashing why?
>>> Message-ID: <004901caeaf6$691ea1b0$3b5be510$@net>
>>> Content-Type: text/plain; ? ? ? charset="us-ascii"
>>>
>>> Hi
>>>
>>> netstat command will do that for you.
>>> Linux: netstat -nlap | less
>>> Windows: netstat -anb | more
>>>
>>> debian5:~# netstat -nlap | grep tcp | grep :8002
>>> tcp ? ? ? ?0 ? ? ?0 0.0.0.0:8002 ? ? ? ? ? ?0.0.0.0:* ? ? ? ? ? ? ? LISTEN
>>> 13841/mono
>>>
>>> Br,
>>> ?Tedd
>>>
>>> -----Original Message-----
>>> From: opensim-users-bounces at lists.berlios.de
>>> [mailto:opensim-users-bounces at lists.berlios.de] On Behalf Of Clive Gould
>>> Sent: 3. mai 2010 21:22
>>> To: opensim-users at lists.berlios.de
>>> Subject: Re: [Opensim-users] OpenSim crashing why?
>>>
>>> Hi
>>>
>>> Justin wrote: "By the look of it, something in OpenSim is failing to
>>> close connections. ?After 24 hours, the HttpServer embedded in OpenSim
>>> eventually finds that it runs out of sockets to play with."
>>>
>>> OpenSim is still crashing periodically.
>>>
>>> Any idea how I can find out how many connections the HTTP Server
>>> embedded in OpenSim thinks it has open at any one time?
>>>
>>> Is there a command from the Linux command line that will show this?
>>> (I've tried ps and netstat without success)
>>>
>>> Thanks very much
>>>
>>> Clive
>>>
>>>
>>>> Message: 2
>>>> Date: Thu, 29 Apr 2010 23:38:49 +0100
>>>> From: Justin Clark-Casey <jjustincc at googlemail.com>
>>>> Cc: opensim-users at lists.berlios.de
>>>> Subject: Re: [Opensim-users] OpenSim crashing why?
>>>> Message-ID: <4BDA0A79.5020105 at googlemail.com>
>>>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>>>
>>>> Clive Gould wrote:
>>>>> Hi
>>>>>
>>>>> We're successfully using OpenSim for student project work at Bromley
>>> College.
>>>>>
>>>>> OpenSim 0.6.8 standalone has just started crashing on us every 24 hours
>>> or so.
>>>>>
>>>>> Logins are disabled and the OpenSim.log file fills up the CentOS home
>>>>> partition very quickly with error messages.
>>>>>
>>>>> Killing all processes owned by the opensim user, deleting the
>>>>> OpenSim.log file, restarting the vnc session and the opensim
>>>>> application cures the problem, until the next time.
>>>>>
>>>>> I append relevent excerpts from the error log to this message.
>>>>>
>>>>> Does anyone have any idea what may be causing this??
>>>>
>>>> By the look of it, something in OpenSim is failing to close connections.
>>> After 24 hours, the HttpServer embedded in OpenSim eventually finds that it
>>> runs out of sockets to play with.
>>>>
>>>> I'm surprised to see this in standalone mode. ?Are you doing something
>>> with OpenSim in standalone mode that requires outbound connections (e.g.
>>> remote database, groups, etc.), or perhaps a script that regularly
>>> establishes an outbound connection?
>>>>
>>>> If this has just started crashing after being fine before then it suggests
>>> that something has changed locally to reveal a bug in OpenSim.
>>>>
>>>> -- Justin
>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>> Clive
>>>>>
>>>>> 2010-04-29 16:55:47,776 DEBUG - OpenSim.Region.Framework.Scenes.Scene
>>>>> [Scene] Adding new agent India Airie to scene Rookery_NW
>>>>> 2010-04-29 16:55:47,777 DEBUG - OpenSim.Region.Framework.Scenes.Scene
>>>>> [APPEARANCE]: Appearance not found in Rookery_NW, returning default
>>>>>
>>>>> 2010-04-29 16:55:55,132 DEBUG -
>>>>> OpenSim.Region.Framework.Scenes.SceneObjectGroup [SCENE]: Storing
>>>>> Primitive, 204f5d0d-a994-4d61-8fb1-4b8d3af433fd in Rookery_
>>>>> SW
>>>>> 2010-04-29 16:56:14,262 DEBUG -
>>>>> OpenSim.Region.Framework.Scenes.SceneObjectGroup [SCENE]: Storing
>>>>> Primitive, 9b4c39ad-eebe-4417-9fd9-12a3994f17bc in Rookery_
>>>>> SW
>>>>> 2010-04-29 16:57:30,449 DEBUG -
>>>>> OpenSim.Region.Framework.Scenes.SceneObjectGroup [SCENE]: Storing
>>>>> Primitive, 88551bb8-3fa2-4bd9-a2fb-78c74bf45f55 in Rookery_
>>>>> SW
>>>>>
>>>>> 2010-04-29 17:16:15,070 DEBUG -
>>>>> OpenSim.Region.Framework.Scenes.SceneObjectGroup [SCENE]: Storing
>>>>> Primitive, 9b4c39ad-eebe-4417-9fd9-12a3994f17bc in Rookery SW
>>>>>
>>>>> 2010-04-29 17:17:11,209 ERROR -
>>>>> OpenSim.Framework.Servers.HttpServer.BaseHttpServer [BASE HTTP
>>>>> SERVER]: HttpServer.HttpListener had an exception
>>>>> System.Net.Sockets.SocketException: Too many open files
>>>>> ? at System.Net.Sockets.Socket.Accept () [0x00000]
>>>>> ? at System.Net.Sockets.Socket+Worker.Accept () [0x00000]
>>>>> 2010-04-29 17:17:11,255 ERROR -
>>>>> OpenSim.Framework.Servers.HttpServer.BaseHttpServer [BASE HTTP
>>>>> SERVER]: HttpServer.HttpListener had an exception
>>>>> System.Net.Sockets.SocketException: Too many open files
>>>>> ? at System.Net.Sockets.Socket.Accept () [0x00000]
>>>>> ? at System.Net.Sockets.Socket+Worker.Accept () [0x00000]
>>>>> 2010-04-29 17:17:11,273 ERROR -
>>>>> OpenSim.Framework.Servers.HttpServer.BaseHttpServer [BASE HTTP
>>>>> SERVER]: HttpServer.HttpListener had an exception
>>>>> System.Net.Sockets.SocketException: Too many open files
>>>>> ? at System.Net.Sockets.Socket.Accept () [0x00000]
>>>>> ? at System.Net.Sockets.Socket+Worker.Accept () [0x00000]
>>>>> ockets.SocketException: Too many open files
>>>>> ? at System.Net.Sockets.Socket.Accept () [0x00000]
>>>>> ? at System.Net.Sockets.Socket+Worker.Accept () [0x00000]
>>>>>
>>>>
>>>>
>>>> --
>>>> Justin Clark-Casey (justincc)
>>>> http://justincc.org
>>>> http://twitter.com/justincc
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> Opensim-users mailing list
>> Opensim-users at lists.berlios.de
>> https://lists.berlios.de/mailman/listinfo/opensim-users
>>
>>
>> End of Opensim-users Digest, Vol 33, Issue 5
>> ********************************************
>>
>
More information about the Opensim-dev
mailing list