[Opensim-users] Intermittent crashing - System.OutofMemoryException

Gary Banham banham1 at telus.net
Mon Feb 20 11:43:19 UTC 2012


Fleep I found it very easy I just set the main port on the Opensim instance

EG normally the port is 9000 so I incremented them as needed

I set up a common ini file for the Opensim instance as well as grid common

I moved the region ini files into the new instance limiting the number say
to 4

some I have only one region

as long as each instance was still pointing to the same database it worked
well

 

 

hope this is helpful

Gary

From: opensim-users-bounces at lists.berlios.de
[mailto:opensim-users-bounces at lists.berlios.de] On Behalf Of Fleep Tuque
Sent: Monday, February 20, 2012 4:34 AM
To: opensim-users at lists.berlios.de
Subject: Re: [Opensim-users] Intermittent crashing -
System.OutofMemoryException

 

I'm worried that you may be right about that and it's just a matter of time
before adding more content becomes a problem, in which case it sounds like
perhaps instead of running all the regions on a single opensim instance I
should split them up across several as Gary mentioned above?

 

I'm not sure exactly how that works, I guess, and I'm trying to understand
how that would use less memory instead of more..  Would I simply copy the
contents of the opensim directory to multiple locations and break the
regions up in the regions.ini file or..?  

 

I'd like to experiment with it on FleepGrid first before I hose our campus
install, but the HGAC group is coming for a visit in a couple days so if
anyone has pointers about how to do that splitting up process before I break
anything, I'm all ears.  :)

 

- Chris/Fleep

 

 

Chris M. Collins (SL/OS: Fleep Tuque)

Center for Simulations & Virtual Environments Research (UCSIM)

UCIT Instructional & Research Computing

University of Cincinnati

406A Zimmer Hall

315 College Drive

PO BOX 210088

Cincinnati, OH 45221-0088

chris.collins at uc.edu

(513) 556-3018

 

http://ucsim.uc.edu

 

 

On Thu, Feb 16, 2012 at 10:19 PM, Justin Clark-Casey
<jjustincc at googlemail.com> wrote:

I would actually be rather surprised if errors during the OAR import were
related to your memory problems.  I think that it's more likely that the
content of the OAR in some way pushed you beyond memory boundaries and
wiping it has reset things.

Still, if the problem is solved then that's what matters :)



On 16/02/12 22:50, Fleep Tuque wrote:

Hi all,

After going through the log files and trying to figure out what changed in
the time period when the out of memory errors
began, we traced it back to an OAR file import. (Thanks to whoever suggested
that might be an issue earlier in this
thread!)

I'd ported over a copy of the FleepGrid Plaza region so my students could
easily grab some of the freebies I'd created,
and it looks like something got horked during the import to the UCSIM grid:

012-02-07 09:12:05,991 ERROR -
Flotsam.RegionModules.AssetCache.FlotsamAssetCache [FLOTSAM ASSET CACHE]:
Failed to
update cache for asset 3d0b3a52-40e5-48fe-8595-b72e163917fa.  Exception The
process cannot access the file
'c:\Opensim\bin\assetcache\3d0\3d0b3a52-40e5-48fe-8595-b72e163917fa' because
it is being used by another process.    at
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights,
FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES
secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize)
   at System.IO.File.OpenFile(String path, FileAccess access,
SafeFileHandle& handle)
   at System.IO.File.SetLastAccessTimeUtc(String path, DateTime
lastAccessTimeUtc)
   at
Flotsam.RegionModules.AssetCache.FlotsamAssetCache.UpdateFileCache(String
key, AssetBase asset)

Shortly after that, we begin to see the first out of memory errors..

2012-02-07 09:15:17,453 DEBUG - OpenSim.Region.ScriptEngine.XEngine.XEngine
[XEngine] Loaded script LK-Stool-Sit
#2.poseball-zero-lag, script UUID e73e1114-297a-43a7-b4b8-dd423cd83b95, prim
UUID 2ae59628-943d-49ec-9673-ee3465bd0242 @
<168.1464, 156.7953, 26.90887>.UCSIM Staff 1
2012-02-07 09:15:17,984 ERROR - OpenSim.Region.ScriptEngine.XEngine.XEngine
[XEngine] Exception creating app domain:
 System.OutOfMemoryException: Exception of type
'System.OutOfMemoryException' was thrown.
   at System.AppDomain.nCreateDomain(String friendlyName, AppDomainSetup
setup, Evidence providedSecurityInfo, Evidence
creatorsSecurityInfo, IntPtr parentSecurityDescriptor)
   at System.AppDomain.CreateDomain(String friendlyName, Evidence
securityInfo, AppDomainSetup info)
   at OpenSim.Region.ScriptEngine.XEngine.XEngine.DoOnRezScript(Object[]
parms)

And we see those out of memory errors stack up until eventually the
application crashed..

When we realized it was probably the OAR file that was the source of the
issue, I wiped the region by importing a fresh
"blank" OAR and we haven't had the out of memory exception since.

Looks like the problem is resolved and super thanks again to everyone who
helped with pointers and info in this thread -
much appreciated!

- Chris/Fleep


Chris M. Collins (SL/OS: Fleep Tuque)
Center for Simulations & Virtual Environments Research (UCSIM)
UCIT Instructional & Research Computing
University of Cincinnati
406A Zimmer Hall
315 College Drive
PO BOX 210088
Cincinnati, OH 45221-0088

chris.collins at uc.edu <mailto:chris.collins at uc.edu>
(513) 556-3018 <tel:%28513%29%20556-3018> 

http://ucsim.uc.edu




On Thu, Feb 16, 2012 at 2:16 PM, R.Gunther <rigun at rigutech.nl
<mailto:rigun at rigutech.nl>> wrote:

   There's a 3e option. Munin.
   http://munin-monitoring.org/


   On 2012-02-16 16:49, BlueWall wrote:

       The rrdtools is very good for storing and organizing the data for
statistics and it will also produce graphs
       from that data. It relies on external scripts to collect the data -
that's where Cacti comes in. It has the
       scripts and templates to graph your system (and snmp devices) in the
distribution. I have done it on Linux and
       they claim to work on Windows too.

       You could also write scripts and templates to graph OpenSim. I
haven't tried that, though. There is
       documentation included in the distro, and scattered across the Cacti
user forums.

       -BlueWall

       On 02/16/2012 09:55 AM, Rick Anderson wrote:

           One question about Cacti, and RDDTools. The sites describe them
as
           general purpose graphing tools. Is there any documentation or
tutorial
           for configuring them to monitor system status. Maybe, it's really
           simple, and I'm over complicating it.

           -_Rick



   _________________________________________________


   Opensim-users mailing list
   Opensim-users at lists.berlios.de <mailto:Opensim-users at lists.berlios.de>

   https://lists.berlios.de/__mailman/listinfo/opensim-users
<https://lists.berlios.de/mailman/listinfo/opensim-users>






_______________________________________________
Opensim-users mailing list
Opensim-users at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-users

 


-- 
Justin Clark-Casey (justincc)
http://justincc.org/blog
http://twitter.com/justincc

_______________________________________________
Opensim-users mailing list
Opensim-users at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-users

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20120220/1c3b6abf/attachment.html>


More information about the Opensim-users mailing list