If you ever wondered what goes on in a server

Discussion in 'Announcements' started by sk89q, 4 March 2013.

Tags:
  1. sk89q

    sk89q Administrator
    Staff Member

    Joined:
    1 December 2011
    Messages:
    2.490
    Likes Received:
    1.504
  2. LGuasso

    LGuasso Community Manager
    Staff Member

    Joined:
    12 March 2012
    Messages:
    465
    Likes Received:
    299
    Why had you never told us about that website before, sk? :O -lg failed, nvm

    Oh, I've just read the first paragrahs and they really seem cool! Thanks for sharing those informations, sk.

    By the way, I don't think I'm ever running a server but I think it's nice to know how everything works in a "deeper way", "under the surface" we are used to know and I liked the way you explained it was explained/taught!
     
  3. gknova61

    gknova61 Farbes Lover

    Joined:
    17 March 2012
    Messages:
    1.238
    Likes Received:
    350
    Consider a 'View Full' button on your site, this ain't workin' out :p
    [​IMG]
     
  4. sk89q

    sk89q Administrator
    Staff Member

    Joined:
    1 December 2011
    Messages:
    2.490
    Likes Received:
    1.504
    Yeah I know. I think it's fixed now.

    SOMEONE TELL ME.
     
  5. glitch80

    glitch80 Active Member

    Joined:
    26 March 2012
    Messages:
    345
    Likes Received:
    232
    A very good read.

    I've noticed, and have heard others comment about, extremely large numbers of squid building up in ocean chunks. It happens in areas that stay loaded for long periods of time (near player's bases mostly). This image is an example. If squid are pulled by flowing water even a small distance their numbers can build up rapidly. Even subsurface flowing water, caused by falling sand and gravel right after chunk generation, seem cause that kind of natural "squid spawner".

    Squid would probably be an ideal target for aggressive mob pruning. Anything more than a handful per chunk could be considered abnormal.
     
  6. gknova61

    gknova61 Farbes Lover

    Joined:
    17 March 2012
    Messages:
    1.238
    Likes Received:
    350
    Donk a donk.
     
  7. NolanSyKinsley

    NolanSyKinsley IRC lurker

    Joined:
    2 November 2012
    Messages:
    497
    Likes Received:
    179
    Very nice article, well written and very informative!
     
  8. sk89q

    sk89q Administrator
    Staff Member

    Joined:
    1 December 2011
    Messages:
    2.490
    Likes Received:
    1.504
    That's... a lot of squid.
     
  9. Cranimesao

    Cranimesao Administrator
    Staff Member

    Joined:
    1 December 2011
    Messages:
    618
    Likes Received:
    466
    My brain exploded.
     
  10. Chaeris

    Chaeris Active Member

    Joined:
    8 March 2012
    Messages:
    766
    Likes Received:
    89
    Nicely explained, good post, sk!
     
  11. krootlord

    krootlord A man walks in to a bar, ow...

    Joined:
    27 December 2011
    Messages:
    247
    Likes Received:
    22
    like if you looked at the pie chart then thought "**** this, im lazy and its too long" :p
     
  12. Chaeris

    Chaeris Active Member

    Joined:
    8 March 2012
    Messages:
    766
    Likes Received:
    89
    No, I really read everything, even downloaded Spigot for my server on my PC (it might incredibely increase fun with friends on my PC, my problem is ONLY my internet connection, because everything else run really fast!)
     
  13. hsun324

    hsun324 Programmer, Gamer

    Joined:
    14 May 2012
    Messages:
    362
    Likes Received:
    90
    Oh and a note on using VisualVM w/ the client:
    If it doesn't work initially, you just have to add
    Code:
    -Dcom.sun.management.jmxremote
    to the JVM arguments.
     
  14. Chaeris

    Chaeris Active Member

    Joined:
    8 March 2012
    Messages:
    766
    Likes Received:
    89
    This is all the JVW args I use, no bugs and I notice the difference, really smoother!

    Code:
    -server -Dcom.sun.management.jmxremote -XX:ParallelGCThreads=4
    -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -verbose:gc
    -Xmaxf1 -XX:+UseCompressedOops -XX:+DisableExplicitGC -XX:+AggressiveOpts
    -XX:+ScavengeBeforeFullGC -XX:CMSFullGCsBeforeCompaction=10
    -XX:CMSInitiatingOccupancyFraction=80 -XX:+UseParNewGC
    -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode
    -XX:+CMSIncrementalPacing -XX:+CMSParallelRemarkEnabled
    -XX:GCTimeRatio=19 -XX:+UseAdaptiveSizePolicy -XX:MaxGCPauseMillis=500
    -XX:+PrintGCTaskTimeStamps -XX:+PrintGCApplicationStoppedTime
    -XX:+PrintHeapAtGC -XX:+PrintTenuringDistribution -XX:+PrintGCDetails
    -XX:+PrintGCDateStamps -XX:+PrintGCApplicationConcurrentTime
    -XX:+PrintTenuringDistribution -Xloggc:gc.log
    BTW, I warn you about "ParallelCGThreads:" here you must enter your number of cores, mine is 4 (like most), but I could go up to 8 (logical cores)
     
  15. hsun324

    hsun324 Programmer, Gamer

    Joined:
    14 May 2012
    Messages:
    362
    Likes Received:
    90
    That is a lot of extra printing commands... I wish all of these miss would stop printing such unneeded messages to console because printing is somewhat memory expensive.