Page 1 of 1
Mem leak?
Posted: 2009-06-23 00:52
by sniperNZSAS
Hi I'm not 100% sure if this is a PR bug but im pretty sure. This has happened twise now.
I will be playing PR for a while, then my frame rate will take a shit, and things start getting ugly and pausing and jumping all the time, until i freeze for so long that pr will kick me for heart beat stopping. When this happened today, I checked my task manager and saw that I was using 3.7GB of ram ( Im only XP and can only utilise 3.25GB out of my 4GB ). After closing PR, I checked the ram usage again, and idling, my system was using 1.85GB of ram, with nothing showen in the processes tab using more than 30mb. after a restart, my systen idled at its normal 251mb.
I was wondering if perhaps instead of dumping the memory that PR is suppost to, instead it just uses more and more? I am to the understanding this is called a Memory Leak? correct?
Here the reason I blame PR. The only background program running was ventrilo, daemon tools, nvidia control pannel and my hd realtek drivers. This is pretty much a fresh install of xp, with no anti virus or firewall, or anything else that could posibly use such a large amount of ram.
Let me know if there is anything I can change to sort this out, or whether I can download something so that windows can recognise all 4gb of ram
Cheers
Re: Mem leak?
Posted: 2009-06-23 01:19
by LithiumFox
PR uses up to 4gb of memory at some moments.
there is a EXE fix for this... let me find it fast ^_^
https://www.realitymod.com/forum/f27-pr ... ost1055731
towards the bottom
the downloads are
THIS for the CD version and
THIS for the EA Downloader version > >
Just backup your old BF2.exe as bf2.exe.old and put that BF2.exe in your Battlefield 2 folder (don't worry, punkbuster accepts it... usually > >.. i haven't had any problems ^_^)
EDIT: Added the downloads AND redid the post XD sorry i linked to this post haha
A: The most common cause of this is that you are running out of memory (though there are other causes). BF2 was a memory intensive game, and PR only increases on that.
First, you can try lowering your video settings, in particular, Textures. If that doesn't help or fix your issue, you can try increasing your virtual memory.
If that STILL doesn't work, you can try patching your bf2.exe to allow it to use more than 2GB of memory. This is only useful if you indeed do have more than 2GB of memory. Firstly, you want to backup your current bf2.exe in your "C:\Program Files\EA Games\Battlefield 2" (default install location) folder. To do this, simply rename it from bf2.exe to bf2.exe.original. You should back it up incase you have any issues in the future. Now you need to download the patched bf2.exe. This can be found in THIS zip file (THIS one if your using the EA Downloader version) (If you get a virus warning, ignore it, just a false positive). Then simply extract it next to bf2.exe.original, and your good to go.
This might not make sense, but BF2 doesn't use more than 2gb of ram. =) These EXE patches allow it to use more than 2 gigs ^.^
Re: Mem leak?
Posted: 2009-06-23 01:23
by bad_nade
sniperNZSAS wrote:Hi I'm not 100% sure if this is a PR bug but im pretty sure. This has happened twise now.
I will be playing PR for a while, then my frame rate will take a shit, and things start getting ugly and pausing and jumping all the time, until i freeze for so long that pr will kick me for heart beat stoppings
That sounds more like overheating processor and/or graphics card than memory leak.
Re: Mem leak?
Posted: 2009-06-23 01:27
by sniperNZSAS
temps are all fine, i use an 8800GT and run an amd 9950 quad Black Edition, which has a heatsink like a beast and never runs higher than 45C. also run 3 case fans. Im using windows xp 32bit
Re: Mem leak?
Posted: 2009-06-23 01:30
by LithiumFox
Read my post. It uses "largeaddressaware" bf2.exe (thus allows it to use more memory)
Also, change your affinity for bf2.exe in your Task Manager to only ONE CPU. =) Should help a little too
Re: Mem leak?
Posted: 2009-06-23 01:32
by LithiumFox
Updated my first post. > > It should link to the FAQ's list... not back to this post XD
Re: Mem leak?
Posted: 2009-06-23 02:06
by sniperNZSAS
Cheers mate, ill let ya know if it solves the issue
Re: Mem leak?
Posted: 2009-06-23 02:08
by LithiumFox
=) alright, that was always my issue ^_^ also make sure you update your punkbuster. Reinstall it using the the PB installer (i forget what its called) like pbsv or something
and then update using PBSetup. =) sometimes Punkbuster can cause crashes ^_^
Gamebooster helps too. Turns off all useless applications and processes
If you can find out what's using 1.85 gigs that would help too =)
Re: Mem leak?
Posted: 2009-06-23 03:24
by Raptor007
Correct me if I'm wrong, but I don't think patching BF2.exe will change anything. PR 0.860 has its own executable, PR.exe, which runs instead of BF2.exe.
You might try installing the latest Nvidia drivers. I've heard that the Nvidia drivers like to allocate system memory to keep a copy of the textures that are loaded, which could explain why the wasted memory stayed around after quitting PR.
Re: Mem leak?
Posted: 2009-06-23 04:31
by LithiumFox
um... PR.exe only runs for it's own checks that they can't code into the game =/

run the game, check your task manager. PR.exe only takes up like.. 7000kb of memory. BF2.exe will still be running, as that is the game.

PR.exe runs side by side with BF2, cause it's technically illegal for them to make major modifications to the BF2.exe. =/ Most we can do is come up with "legal" fixes, such as this memory fix.
Re: Mem leak?
Posted: 2009-06-23 05:29
by Twisted Helix
LithiumFox wrote:um... PR.exe only runs for it's own checks that they can't code into the game =/
Yup, pr.exe is just a shell that runs bf2.exe.

PR.exe runs side by side with BF2, cause it's technically illegal for them to make major modifications to the BF2.exe.
Actually that would be 'technically impossible'. We don't have the source code.
Re: Mem leak?
Posted: 2009-06-23 05:38
by LithiumFox
[R-DEV]Twisted Helix wrote:Yup, pr.exe is just a shell that runs bf2.exe.
Actually that would be 'technically impossible'. We don't have the source code.
with NR2003 as my source..... reverse engineering

Re: Mem leak?
Posted: 2009-06-30 14:02
by Dosedmonkey
Yes I have found PR has caused this memeory leak problem on my original BF2.exe thanks for the help!

Re: Mem leak?
Posted: 2009-06-30 15:20
by MrScruff
I dont know why alot of people persist with problems when they have Computer more advanced than mine.
Im using a MacBook Pro (Laptop btw) 15 inch, 2.4GHz Intel Core 2 Duo, GeForce 8600M GT, 4GB RAM. Im running Mac, but Windows XP separately on Boot Camp 2.0 with 37GB of allocated HD space.
With this I can run PR flawlessly for 6 rounds before the occasional CTD.
Re: Mem leak?
Posted: 2009-06-30 16:50
by strickt
MrScruff wrote:I dont know why alot of people persist with problems when they have Computer more advanced than mine.
Im using a MacBook Pro (Laptop btw) 15 inch, 2.4GHz Intel Core 2 Duo, GeForce 8600M GT, 4GB RAM. Im running Mac, but Windows XP separately on Boot Camp 2.0 with 37GB of allocated HD space.
With this I can run PR flawlessly for 6 rounds before the occasional CTD.
And that helps him solve his memory leak problem HOW?
Re: Mem leak?
Posted: 2009-08-26 19:34
by Menigmand
I also often have the same problem. PR will run like a charm the first round, then a bit worse the second round - third round it crashes sometimes or might begin to run very choppily. A restart of the computer and rejoining the server fixes this problem - so I'm thinking it could be a memory leak!
I have 2 Gb of memory. And before you say thats too little, remember that the first round works perfectly. So should the subsequent ones, if the memory is recycled.
Re: Mem leak?
Posted: 2009-08-26 21:23
by Killer2354
a tip already stated above- try using game booster. it closes/stops all of the useless processes. for me it clears around...56bmbs of ram... though i'm not sure because i'm back to school :/