16 Gig memory

Discussion in 'Bukkit Discussion' started by monir, Jun 10, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    monir

    [​IMG]

    I bought 16 G ram today and i have i5 2.8 and the precessor is on 25% only
    only 20 people on the server right now and still this spam text "cant keep up the system" can somebody explain this?
     
  2. Offline

    anonymous

    That message usually doesn't mean anything, there are plugins that make it so it wont show up if your getting annoyed.


    Also is this hosted on a home computer or a VPS/Dedi?
     
  3. Offline

    Acrobot

    What is your start .bat file?
    Did you install x64 java?
     
  4. Offline

    monir

    its like this :
    echo off
    java -Xmx12G -Xms12G -jar craftbukkit.jar nogui
    pause

    And i use x64 java

    It went up to 13G even when i have set it to 12G so i restarted the server why is that why does it take moore? it was only 20 players online. Now im testing rtoolkit and se if it works better
     
  5. Offline

    Zalastri

    Remove both xmx and xms and do -Xincgc 12G. Will probably help a little with both issues, more so with the RAM. I think what you're doing is telling it the initial minimum and total maximum RAM it can use is 12G, which seems conflicting to me, although I am not a java programmer.
     
  6. Offline

    monir

    echo off
    java -Xincgc 12G -jar craftbukkit.jar nogui
    pause


    like this?
     
  7. Offline

    Zalastri

    java -Xincgc12G -jar craftbukkit.jar nogui

    Notice I took out the space between Xincgc and 12G.
     
  8. Offline

    PhantomGamers

    Is that actually valid? Would you use that and just leave out xmx?

    EDIT: That doesn't work at all for me. :S
     
  9. Offline

    zipfe

    It doesn't work for you because Zalastri has no idea what he's talking about. Xincgc doesn't have a RAM value after it.

    Anyway, in your case, RAM is not the issue at all. You can easily run 20 players with 1.5 GB (or even less, depends on your plugins) without any lag.

    If you really do have lag, you must further investigate. If it's just the console spam that annoys you, get the BlockCantKeepUpSpam plugin.
     
  10. Offline

    monir

    I have tested to set the server to 12 G and still it goes over and take all the memory the server even crashed this night what can i do. Before when i had 8 G ram i gave the server 4 G it stopped there it never went over what maked this change i need to fix this and i dont have a clue what to do anymore
     
  11. Offline

    drakcore

    I'm currently using this for my server that also has 16GB of ram but you really don't need all that ram assign unless the plugins are leaking memory badly.
    You can also use this plugin to remove annoying can't keep up message and this one to increase performance especially if your hosting the system yourself.

    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx6G -jar craftbukkit860.jar
    PAUSE


    Anyone tell me if mine isn't right either, haven't had any issues with it so far. :p
     
  12. Offline

    monir

    Does it stop on 6 G?

    and what does this means? SET BINDIR=%~dp0
    CD /D "%BINDIR%" do u use Windows?

    Didnt now about this plugins thank you ;)
     
  13. Offline

    ichingpow

    I wrote a guide here. It might be able to fix the Can't keep up spam.
     
  14. Offline

    monir

    Nice guide but i dont have problem with lag or corrupt worlds. I have set the ram to java -Xmx12G -Xms12G -jar craftbukkit.jar nogui and Java is still taking moore Ram even when no players is online.
     
  15. Offline

    ichingpow

    Sorry, maybe you misunderstood but the guide should help getting rid of the can't keep up spam. (Hopefully)
     
  16. Offline

    Twisted

    CPU @ 25% total or one core ?

    If it's 25% total then that means the single core the server is running on is being maxed out.
     
  17. Offline

    drakcore

    Grabbed the code a while back from another forum but I'm sure it just forces to run from the program files (not the x86 which is the 32bit version) where the 64 bit version of java is located. I use both 32bit and 64bit java.
    I only use 6GB since the server has a very low population and I run other programs as well but you can use as much ram as you want just remember to leave some for the OS.
    Just change the 6 in "Xmx6G" to the amount of gigs you want to assign to it such as "Xmx12G" will assign 12GB of ram.

    *32bit java has a limit of "4GB" and java 64bit has 128GB limit.

    And if you haven't upgrade to the latest Recommended Build: 860 (MC: 1.6.6) located on the main page, fixes a lot of issues.
     
  18. Offline

    monir

    I have 4 core but i dont now if its running on total or one core How can i se that?
    I have uppgraded to latest build 860
    Its alreddy assigned to "Xmx12G" and xms 12 G thats why i dont understand why it takes moore ram this is so weird becouse before when i had 8 gig i didnt have this problem.
     
  19. Offline

    drakcore

    You can see under processes and if java.exe is running at 25% then you know it is maxing out the core of the CPU(if you have a 4 core CPU).
    Minecraft only uses 1 core of the CPU do all the bulk of the work so the speed of the processor is more important than how many cores you have since it only uses 1 core.

    Could be a plugin that is the cause but most of the time you can get false readings about how much ram it really is using at that moment.
    Also be careful maybe the HD you running from is being used by something else.
     
  20. Offline

    monir

    [​IMG]

    It looks like this its now CPU 41% 20 players only online at the moment. Ihave set to 11 G Ram and it takes more anyway! what can i do?
    The mc Server is on my C disk is that the problem?
     
  21. Offline

    Zalastri

    Heh, my bad. Forgot to look at what I was running myself. Figured he'd google it if he had problems.
     
  22. Offline

    jududdar

    You've got to have something leaking somewhere (imo). I run ~20 players without problem on a box much smaller than this, even with a lot of plugins. My setup is less than optimal, too (couple of old AMD dual cores, 8G ram). As has been mentioned before, here's what I use to start the server:

    Code:
    @echo off
    java -server -Xincgc -Xmx6G -jar craftbukkit.jar
    pause
    Also, turn perfmon off. Yes it gives cool statistics, but sometimes creates a lot of overhead as well. (this is not your problem, just a suggestion)
     
  23. Offline

    bluelunar

    Remember 11gB doesn't equal 11,000,000kB, it equals:

    11gb * 1024 * 1024 = 11534336kB

    so,

    4gB = 4194304 kB
    8gB = 8388608 kB
    12gB = 12582912 kB

    etc...


    So what it's using is perfectly normal. 100k or so for the program + 11gB for the heap

    Also,

    When you have -Xms11G, you're telling java that it should START with that much memory ((11gB). i.e, that's the MINIMUM it will use. -Xmx11G sets the maximum. So don't be surprised that java uses 11GB when you tell it that is the smallest amount it should use.

    For you, I'd probably use something like this:

    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xms1G -Xmx12G -jar craftbukkit-0.0.1-SNAPSHOT.jar

    It'll start with 1gb of memory, and can expand up to 12gb when needed. So when few or no one is logged on, it'll probably stay at 1gb.

    *PS

    If you want it to only use the amount of memory that it needs, don't specify a minimum. Omit the -Xms parameter.

    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx12G -jar craftbukkit-0.0.1-SNAPSHOT.jar

    Now it'll only use the minimum amount of memory it needs, up to 12gB.
     
  24. Offline

    monir

    if i want the server to take 4 gig smallest amount and 11 max is this the way to type? Is it not better to set minimum 6G and maximum12G?
    i tested this and the server started with 1G anyway or does it take time to get to 4 G lets say 40-50 people join at the same time when restarting the server what happens then does it get laggy when starting with 1 G? And what does Xincgc means i have never used this before is it needed?[​IMG]
     
  25. Offline

    Nathan C

    What processor are you using?

    EDIT: Good god, you are using Windows!

    Good luck with that...
     
    acetech09 likes this.
  26. Offline

    monir

    No problems with windows have been working fine for 7 months now:D
     
  27. Offline

    monir

    I dont understand this when the server reach like 10G with 20-40 players it gets laggy why is that? when giving so much ram is it not supposed to be god?I want java to take the ram that it need not moore becouse that dont seem to work god.

    I have like this:
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xms2G -Xmx11G -jar craftbukkit-0.0.1-SNAPSHOT.jar

    And this is not working for me:
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx12G -jar craftbukkit-0.0.1-SNAPSHOT.jar
     
  28. Offline

    Kainzo

    • You can run a lag free server on Windows 2k8
    • Having a lot of ram is not indicative of lag-free
    • Ram is highly related to chunks, map size and player size
    • CPU (frequency / cores) are related to physics/mob AI / lag
    • Start out with 4Gb put it on a ramdisk - try then.
    There are several different bottlenecks on a server - RAM is a common one but not the only one.
     
    Mikecom32 likes this.
  29. Offline

    Mikecom32

    If you think a Windows box makes a bad server, you're either talking out your ass, or haven't used a Windows server OS in 10 years.

    Linux is not the be-all end-all of servers. Get off your high horse.

    Monior,

    What are you using for disks? RAID? What level? How fast are the disks (RPM)?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
    Snipes01, Vhab, Streammz and 2 others like this.
  30. Offline

    monir

    Im using this https://www.inet.se/artikel/4303589/1tb-samsung-spinpoint-f3-hd103sj
    but i didnt have any problems when i used only 4 G memory it started when i bought 16 G i give the server 10G but when it reach 10 G it starts get laggy why is that and i must do a server restart every time. I thought moore memory less lagg?but in my case everything under 10 G works fine. I have tryed everything right now i have like this
    @echo off
    java -Xmx1G -Xms10G -jar craftbukkit.jar nogui
    pause

    When it loads full 10G sometimes its not so much people on the server and still its laggy.
     
Thread Status:
Not open for further replies.

Share This Page