Slow server

Discussion in 'Bukkit Help' started by Minamus, Mar 12, 2011.

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

    Minamus

    Ok i am running a 6core processor, and while running minecraft server at the same time of playing it, it is very slow and only running on 1 core with high ram use.
    it is the newest craftbukkit as well.

    i did hear you can put nogui somewhere to make it run on all processors but i dont know where

    here is my run.bat
    Code:
    @ECHO OFF
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles%\Java\jre6\bin\java.exe" -Xms1024M -Xmx1024M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86"  java -Xms1024M -Xmx1024M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
    
    PAUSE
    
     
  2. Offline

    woodzy

    EASY FIX!!! u see the numbers befor the 'M's change thos numbers to something bigger depending on the free ram that you have. example: -Xms1024M -Xmx 2G
     
  3. Offline

    Minamus

    but that doesnt fix the server and game only running off 1 core
     
  4. Offline

    woodzy

    im sorry i was mad tiryed when i asked that. what OS are u running?
     
  5. Offline

    Minamus

    its cool...im running win 7 32bit....newest java update and everything else is up to date
     
  6. Offline

    woodzy

    ok i also run windows 7 as well (2Xcoress) heres how u get the server to tak more cores per use the manual way (only way i know with bukkit)
    open ur task manager (alt+ctrl+delete), go to PROCESSES tab, right click the server process (javaw.exe) --(minecraftclient also uses javaw.exe), click set affinty (a window should open), click <All Processors> checkbox.
    if that doesnt work im sorry but ull have to ask someone else.
     
  7. Offline

    Minamus

    ok it wasn't the server but that info did help...its my minecraft game itself that only picks 1 core at a time for some reason....its java process is set to all processors but o well ill go on the minecraft forums and ask there....thank you
     
  8. Offline

    jududdar

    Mine caps all cores just fine when it needs to, didn't really do anything special... Windows 2003 Server 64-bit, only 64-bit java installed. My batch file:

    Code:
    @echo off
    java -server -Xms1G -Xmx6G -jar craftbukkit.jar
    pause
    I used to run the bat file below, but it seemed like it might have been collecting garbage too fast, using /home it'd have to reload everything, and load it super slow:

    Code:
    @echo off
    java -server -Xmn1G -Xms3G -Xmx6G -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=4 -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -jar craftbukkit.jar
    pause
     
  9. Offline

    TnT

    Try this:
    java -Xincgc -Xmx6G -jar craftbukkit.jar nogui

    It enables incremental garbage collection. I find it has helped keep my server running smooth, and I haven't noticed the issues you're seeing.
     
  10. Offline

    jududdar

    @TnT
    I'll try that, I had that running on my old server and guess it just kind of fell to the wayside when I bought the new box. Question, though: Is the -server parameter still needed with this, or was it ever? The old server was 32-bit only, so wasn't able to use it anyhow.
     
  11. Offline

    TnT

    If you are running on Windows Server, I would suspect it won't make any difference. You can try the -d64 flag (it doesn't work on W7/Vista, but *might* work on Windows Server).
     
Thread Status:
Not open for further replies.

Share This Page