About memory, crashes, and /LARGEADDRESSAWARE and Win2003

Here you can post threads specific to the current release of the core (099)

Moderator: POL Developer

Post Reply
CrazyMan
Expert Poster
Posts: 71
Joined: Wed Apr 05, 2006 8:08 am
Contact:

About memory, crashes, and /LARGEADDRESSAWARE and Win2003

Post by CrazyMan »

Hi.
In 99 POL developers use /LARGEADDRESSAWARE for supprting more than 2GB of memory.

So, when your POLServer use more than 2GB memory you will get error:

Code: Select all

[03/19 11:38:49] error in create_thread: 12 8 "Not enough space" "Not enough space" 0 6090448 SocketClientThread 6104704 0 2074923528
And after this your memory will be corrupted. Something like that

Code: Select all

[03/19 11:53:35] Exception in: pkg/autoquest/nabeg/brain/brain.ecl.: bad allocation
 PC < nLines: (ken: 1332:  1332: get member id 'z' (2)

or that 
[03/19 11:53:37] Exception in: pkg/systems/brain/brain.eclile.cfg: bad allocation
 PC < nLines: (ber(123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~6328:  6328: get member id 'z' (2)
And players cant play anymore. Saves will be corrupted too.

So what we need to do ?
First step - http://msdn.microsoft.com/en-us/library ... S.85).aspx
Add to your boot.ini param /3GB
And after reboot POL will can use 3Gb of memory, and your uptime will be longer.

What we need for second step:
1. Optimise script base
2. Create some memory profiling for finding problem places and scripts.
2. Find and solve memory leaks
3. x86_64 version


There is some leaks :)
There is chart of consumed memory
There is chart of consumed memory
chart2.php.png (30.97 KiB) Viewed 2824 times
Post Reply