[Opensim-users] Intermittent crashing - System.OutofMemoryException
James Stallings II
james.stallings at gmail.com
Tue Feb 14 12:29:06 UTC 2012
Regardless the amount of RAM on your system, the .net runtime uses a memory
model of a specific size (2 GB) and cannot address more than that except
under special circumstances.
There is a hack around, involving the use of a Visual Studio C++ utility to
make a .net binary 'large memory aware', which will allow it to address 4
GB, but then only on operating systems that can address >2 GB (e.g., not 32
bit operating systems).
Note that such measures will only help if the memory exhaustion is being
caused by the amount/complexity of content. If the problem is truly a
memory leak, this workaround will only prolong the inevitable, as it will
simply provide more memory for the leaking.
I saw this problem *very* briefly in the 0.7.3 series about a month ago. I
never did have any indication of what was causing it, and it occurred day
over day, without significant changes to the content. It went away just as
fast as it came.
FYI this is on a 25 region megaregion with >50k prims and at least several
rather complex scripts in play.
Cheers
James/Hiro
On Mon, Feb 13, 2012 at 8:39 PM, Gary Banham <banham1 at telus.net> wrote:
> Fleep I’m running into exactly the same problem I check the flotsam cache
> to make sure I wasn’t using memory ****
>
> My server runs windows seven but has the same amount of memory I have
> about 8 regions on the server some with quite a few scripts****
>
> I rolled back the instance to 7.1.1 to see what would happen and it worked
> fine there must be something different in the way 7.2 release uses the
> memory****
>
> I’m in the process of distributing the regions over a number of 7.2
> instances I’m not sure if that’s going to cause other problems****
>
> ** **
>
> TC****
>
> Gary****
>
> ** **
>
> *From:* opensim-users-bounces at lists.berlios.de [mailto:
> opensim-users-bounces at lists.berlios.de] *On Behalf Of *Fleep Tuque
> *Sent:* February-13-12 11:06 AM
> *To:* opensim-users at lists.berlios.de
> *Subject:* [Opensim-users] Intermittent crashing -
> System.OutofMemoryException****
>
> ** **
>
> Hi all,****
>
> ** **
>
> Our campus opensim system (running version 0.7.2 Release in grid mode)
> seems to intermittently be crashing the last week or so and I can't figure
> out why or how to reproduce it. An out of memory exception doesn't make
> sense to me, the server has 24GB RAM and has very light load since we're
> still in pilot/testing phase. No more than 5 or 6 users concurrent, only a
> few sims with much content.. ****
>
> ** **
>
> Does this error mean anything to anyone?****
>
> ** **
>
> 012-02-11 18:18:33,738 ERROR - OpenSim.Application [APPLICATION]: ****
>
> APPLICATION EXCEPTION DETECTED: System.UnhandledExceptionEventArgs****
>
> ** **
>
> Exception: System.OutOfMemoryException: Exception of type
> 'System.OutOfMemoryException' was thrown.****
>
> at System.Threading.Thread.StartInternal(IPrincipal principal,
> StackCrawlMark& stackMark)****
>
> at System.Threading.Thread.Start()****
>
> at Amib.Threading.SmartThreadPool.StartThreads(Int32 threadsCount)****
>
> at Amib.Threading.SmartThreadPool.Enqueue(WorkItem workItem, Boolean
> incrementWorkItems)****
>
> at Amib.Threading.SmartThreadPool.QueueWorkItem(WorkItemCallback
> callback, Object state)****
>
> at OpenSim.Framework.Util.FireAndForget(WaitCallback callback, Object
> obj)****
>
> at
> OpenSim.Region.ClientStack.LindenUDP.LLUDPServer.PacketReceived(UDPPacketBuffer
> buffer)****
>
> at OpenMetaverse.OpenSimUDPBase.AsyncEndReceive(IAsyncResult iar)****
>
> at System.Net.LazyAsyncResult.Complete(IntPtr userToken)****
>
> at System.Net.ContextAwareResult.CompleteCallback(Object state)****
>
> at System.Threading.ExecutionContext.runTryCode(Object userData)****
>
> at
> System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode
> code, CleanupCode backoutCode, Object userData)****
>
> at System.Threading.ExecutionContext.RunInternal(ExecutionContext
> executionContext, ContextCallback callback, Object state)****
>
> at System.Threading.ExecutionContext.Run(ExecutionContext
> executionContext, ContextCallback callback, Object state)****
>
> at System.Net.ContextAwareResult.Complete(IntPtr userToken)****
>
> at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result,
> IntPtr userToken)****
>
> at
> System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32
> errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)****
>
> at
> System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32
> errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)****
>
> ** **
>
> Application is terminating: True****
>
> ** **
>
> Any pointers or advice 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****
>
> (513) 556-3018****
>
> ** **
>
> http://ucsim.uc.edu****
>
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
>
>
--
===================================
http://simhost.com
http://twitter.com/jstallings2
http://www.linkedin.com/pub/5/770/a49
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20120214/e0c254cc/attachment.html>
More information about the Opensim-users
mailing list