Large servers getting "Out of Memory Exception"
If your server meets the following requirements for the "Out of memory exception" then you can try this to resolve it.
Right now most servers are running with probaby 2 GB of RAM, of which .NET can only use 1.2 GB, so your shard if it is very large, you could see a crash when the application is using close to or 1.2 Gigabytes of RAM.
Here are the steps to alleviate it:
At this point RunUO will now be able to use 2.4 Gigabytes of RAM!
Thanks!
If your server meets the following requirements for the "Out of memory exception" then you can try this to resolve it.
Right now most servers are running with probaby 2 GB of RAM, of which .NET can only use 1.2 GB, so your shard if it is very large, you could see a crash when the application is using close to or 1.2 Gigabytes of RAM.
Here are the steps to alleviate it:
- Upgrade to 4 Gigabytes of RAM (this is a must to go over 1.2 GB of RAM).
- Add the /3GB switch to your boot.ini file as detailed below
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINNT="????" /3GB
- Load a command line window (Start -> Run -> cmd).
- Run the following command: cd "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin"
- Copy your Server.exe or RunUO.exe from the RunUO install to the current directory (C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin).
- Run the following command: link -edit -LARGEADDRESSAWARE server.exe
- Copy your Server.exe or RunUO.exe from the VC7\bin directory back to your RunUO Install Directory
At this point RunUO will now be able to use 2.4 Gigabytes of RAM!
Thanks!