Memory leak.

Discussion in 'Software' started by Spock96, Jul 5, 2012.

  1. Spock96

    Spock96 Major Geek 'Spocky'

    Ok,
    I've had horrible lagg on my minecraft server.
    Think I narrowed it down to a memory leak.
    My brother had the same issue, so he restarted his machine and it fixed it.
    I wasn't so lucky Haha.
    I have no idea how to prove that it's a memory leak, or where to look. How do I fix it?

    Thanks,
    Spock96
     
  2. pwillener

    pwillener MajorGeek

    Sorry, I have no idea what "minecraft server" is. Is it something that runs on Windows?

    How do you guess that it's a memory leak; does it use excessive memory that is never released? Of course, restarting Windows will release any memory, but it will accumulate again as soon as the application runs again.

    You can only fix memory leaks by fixing the application that is leaking.
     
  3. Spock96

    Spock96 Major Geek 'Spocky'

    Let me rephrase this.
    Minecraft is a game can be seen here.
    http://www.minecraft.net/
    I have a server set up so I can play with my brother and a friend.
    I've recently been experiencing very bad lagg, but only when I'm doing a certain action like digging, mining, or fighting monsters. General walking around, jumping, swimming all work with no lagg.
    It just started out of the blue. We had it set up with a "creative" map, where you had everything and could build whatever, I had no lagg what so ever there. We changed it to a "survival" map. The actual game, and I started lagging. I thought it may have been a bad cable. Got a brand new one, and the problem is still there. We checked the memory and that being used by the game, and I'm actually running better than my friend who has the same computer, same RAM, Video card, CPU, Etc and he experiences no lagg at all.
    My brother had a very bad lagg issue, it was a memory leak, he restarted his machine and it fixed it for him. I tried it and it didn't work for me. I have un installed the game and re installed it and the problem still remains.

    I hope that clears up an confusion that my first post might have created.
    Spock96
     
  4. Spock96

    Spock96 Major Geek 'Spocky'

    memtest86

    I think that I have a memory leak see thread below for more details.
    http://forums.majorgeeks.com/showthread.php?t=261369

    I was talking to my IT instructor about it and he told me to run memtest and see if it registers anything.
    I've heard it mentioned around the forum and I downloaded it from here, it came as an .ISO, is that right?

    How do I run it?
    Spock96
     
  5. Earthling

    Earthling Interplanetary Geek

    Re: memtest86

    You have to burn it to CD using burn as ISO, not just copying the file to a CD, and boot your comp from the CD. If you don't have a burning program we can suggest one or two.
     
  6. Earthling

    Earthling Interplanetary Geek

    Re: memtest86

    Running a memory test will prove that the physical process of writing to and reading from RAM is working OK, error free. When read/write errors do occur they usually cause a crash, or at least a corrupt file that will prevent a program from working normally from then on.

    Memory leaks are where your available RAM progressively lessens until the program eventually locks up, and are caused by badly written software. If others are using the same software without issues then it isn't a memory leak.

    You need to leave memtest running for several hours to get a 100% reliable result.
     
  7. Goldenskull

    Goldenskull I can't follow the rules

    Re: memtest86

    Alot of stuff i download is coming as ISO's off this site and i have no idea way that is.
     
  8. Earthling

    Earthling Interplanetary Geek

    Re: memtest86

    ISOs are just used for bootable CDs. Otherwise you get an installation file, zip or exe usually.
     
  9. Goldenskull

    Goldenskull I can't follow the rules

    Re: memtest86

    I know that but it should not be a ISO to begin with.

    I have had some files that i downloaded that came as ISO's but where not suppose to be.

    They where suppose to be installer packs.I sent a Asked Question to {MA} to see what is going on with some of the downloads.
     
  10. Spock96

    Spock96 Major Geek 'Spocky'

    Re: memtest86

    I don't think it's just a memory leak with that game. Now my internet is lagging.
     
  11. Earthling

    Earthling Interplanetary Geek

    Re: memtest86

    Could be your comp is simply becoming congested. Time to run Ccleaner perhaps?
     
  12. Spock96

    Spock96 Major Geek 'Spocky'

    Re: memtest86

    I ran it, it got rid of 4,000 or so MB and My internet isn't lagging, but that game still is.
     
  13. satrow

    satrow Major Geek Extraordinaire

    Re: memtest86

    Spock, can you follow the instructions here and upload the required zip file(s) < you may need to split the files, *.dmp's can go in one, the autoruns.arn and MSInfo file in another. Also fill in the suggested machine specs in the reply.

    From the resulting data, we should be able to pick out what's been going on and how best to proceed.

    (Any real IT person should know that Memtest won't detect any kind of memory leak, as already stated, you need to track down the program with the memory leak - then figure out what's causing it.)
     
  14. Spock96

    Spock96 Major Geek 'Spocky'

    Re: memtest86

    I got to step 3 but where is what they are asking for?
     
  15. satrow

    satrow Major Geek Extraordinaire

    Re: memtest86

    Code:
    BSOD Posting Instructions
    Windows 7 - Vista
    
    1. Download these 2 files; save to Documents
    · A. [URL="http://majorgeeks.com/Microsoft_Autoruns_d4686.html"]Microsoft SysInternals AutoRuns[/URL]
    · B. [URL="http://sysnative.com/0x8/BSOD_Windows7_Vista_v2.64_jcgriff2_.exe"]jcgriff2 BSOD File Collection app[/URL]
    
    2. RIGHT-click on B, select "Run as Administrator"
    · Output = new folder Windows7_Vista_jcgriff2 in Documents
    
    3. Run System Health Report -
    START | type perfmon /report | save as HTML file
    
    4. Zip up the entire output folder + PERFMON; and attach the file in your thread.
    
    Please do not modify the output files
    
    5. Please provide answers for -
    Read More:
    · OS - Vista/ Windows 7 ?
    · x86 (32-bit) or x64 ?
    · What was original installed OS on system?
    · Is the OS an OEM version (came pre-installed on system) or full retail version (YOU purchased it from retailer)?
    · Age of system (hardware)
    · Age of OS installation - have you re-installed the OS?
    
    · CPU
    · Video Card
    · MotherBoard
    · Power Supply - brand & wattage
    
    · System Manufacturer
    · Exact model number (if laptop, check label on bottom)
    (modified the above slightly to suit the circumstances)

    The output folder you mean? That should be Windows7_Vista_jcgriff2 in Documents, see #2. Or is it Perfmon? Start > Run > perfmon /report > Enter.
     
  16. Spock96

    Spock96 Major Geek 'Spocky'

    Re: memtest86

    I meant these 2 steps.
     
  17. Spock96

    Spock96 Major Geek 'Spocky'

    Re: memtest86

    Yes, What/Where is that?
     
  18. satrow

    satrow Major Geek Extraordinaire

    Re: memtest86

    You get an error message when trying to run Perfmon from the Run menu? Or from a Command box?

    Which OS are you running?
     
  19. Spock96

    Spock96 Major Geek 'Spocky'

    Re: memtest86

    I found it, and I went to zip the files, but I didn't have a program for that, went and downloaded 7zip. Zipped the folder, it put it as a Winrar archive. Tried to upload the archive and the HTML file, but it just sits there saying uploading flies. It's done it for, oh about 15 minutes now. Did I do something wrong?
    Spock96
     
  20. satrow

    satrow Major Geek Extraordinaire

    Re: memtest86

    All you needed to do was to right-click the folder and select Send to > Compressed folder to create the zip file.

    My guess is that the holdup is because the rar file is too big to attach here; try copying the *.dmp's can go into one zip and the autoruns.arn and MSInfo file in another then the remaining files into a third zip. Hopefully, they'll all be small enough to attach to one post.

    EDIT: I'll suggest to jcgriff2 that he might check the way the instructions are worded, it does look like they could be made clearer.
     
  21. Spock96

    Spock96 Major Geek 'Spocky'

    Re: memtest86

    It still zips it as a Winrar Archive.
     
  22. Spock96

    Spock96 Major Geek 'Spocky'

    Re: memtest86

    I got rid of winrar, the .zip file is 1.11 MB under the 2.00MB limit, but still won't upload.
     
  23. satrow

    satrow Major Geek Extraordinaire

    Re: memtest86

    Can you try it from a different browser? Or use somewhere like ge.tt?
     
  24. Spock96

    Spock96 Major Geek 'Spocky'

    Re: memtest86

    View attachment Windows7_Vista_jcgriff2.zip
    View attachment perfmon.zip
    There we go. Haha
    Now on the perfmon report it says I do not have an anti-virus. I do, it's up to date. I run the free version of Avast.

     
  25. pwillener

    pwillener MajorGeek

    What is your display adapter, device driver version & date?
     
  26. satrow

    satrow Major Geek Extraordinaire

    Re: memtest86

    You have CCleaner set to run on a schedule, if you ever want any analysis based on debugging crashes, please modify the way CCleaner is set - the more logs etc. there are to upload, the better we can see what's been happening and work out a fix.

    Getting down to basics, the 'cleaner' Windows is, the more efficient and faster it runs. The fewer 'utility' software drivers there are loading, the better.

    If we move specifically to ping times and lag, it's a similar scenario. In your Startups I see several that don't need to be there and 1 that I consider to be scamware - Xionix 'Registry Defense' - uninstall it!

    Other unnecessary Startups that might affect networking traffic: Pando Media booster, SunJavaUpdateSched (Java is only updated 3 or 4 times per year, better to check manually every week as part of your security routine), Logmein Hamachi (I'd uninstall this and stick to your Teamviewer, it's relatively passive and less likely to be involved in problems), Ask Updater (uninstall the Ask toolbar) and iTunes/Apple stuff - do you really need these running on boot?

    Additionally, I would disable or set the following Windows Services to Manual: Bonjour and rpcapd.

    You have drivers loading that could interfere also: VboxNetAdp - looks like an orphan, uninstall or disable it from Device Manager and/or remove it from the Properties of your network adapter(s) and NPF (part of the rpcapd - probably better to uninstall the software it belongs too).
     
  27. Spock96

    Spock96 Major Geek 'Spocky'

    Re: memtest86

    Got rid of the Ask toolbar, not even sure how I got it. Got rid of Registry Defense.

    I don't see them in my task manager processes.

    I need the Hamachi, to use my Minecraft Server, since I wasn't allowed to play with the port forwarding on my router.

    How do I do that?

    I went into my processes and ended the process tree for it, but it came back. How do I get them to stop at start up?
    I have no idea what any of that is, to be honest. Could you explain a bit?
     
  28. Spock96

    Spock96 Major Geek 'Spocky'

    That is one of the things we checked and they are up to date.
     
  29. pwillener

    pwillener MajorGeek

    Re: memtest86

    If you have CCleaner installed, go to Tools | Startup, and disable it from there (probably under the Context Menu tab).

    SunJavaUpdateSched (jusched.exe) is under the Windows tab.

    Pando Media booster - don't know what that is; you have to look for it yourself.

    P.S. before you make too many changes, I recommend that you perform a System Restore Point.
     
  30. pwillener

    pwillener MajorGeek

    Re: memtest86

    Control Panel | Administrative Tools | Services; right-click on the services you want to disable (Bonjour and rpcapd) | Properties, then change the Startup-type to Manual or Disabled.
     
  31. Spock96

    Spock96 Major Geek 'Spocky'

    Re: memtest86

    Changed them.

    I found Bonjour, but couldn't find rpcapd.
     
  32. satrow

    satrow Major Geek Extraordinaire

    You're doing fine Spock, if you look at the MSInfo32.nfo file you collected earlier and navigate to the Software information section then into Program groups, you'll see Start Menu\Programs\WinPcap Public:Start Menu\Programs\WinPcap Public <-- looks like this is the source of the rpcapd and probably the NPF. If you don't need it, uninstall it.

    Autoruns (you downloaded it as part of the collection process) can also be used instead of MSConfig or CCleaner to control any startup programs, it's actually preferred over most alternatives - but it is a very powerful tool - one that is well worth learning to use - carefully.

    Good ping times/low latency requires minimizing unneeded network traffic and filtering, think about what's running and whether it's needed - at least for testing or the duration of the gaming session.

    You also need to get a handle on what Avast! may be doing, check that the auto-sandbox feature is set to always ask - you don't want it interfering without about it in advance.
     
  33. Spock96

    Spock96 Major Geek 'Spocky'

    I have yet to look into that, with my schedule.
    Just had a though though. If it came down to it, would a reinstall of windows possibly be a solution?
     
  34. satrow

    satrow Major Geek Extraordinaire

    A wipe/reinstall yes, repair install no.
     
  35. Spock96

    Spock96 Major Geek 'Spocky'

    Ok, That's what I'm gonna do now.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds