Mob lag fix

Results 1 to 11 of 11
  1. #1
    ---- Flyer8472 is offline
    MemberRank
    Mar 2008 Join Date
    Earth.Location
    1,182Posts

    Mob lag fix

    -----
    Last edited by Flyer8472; 24-04-18 at 11:18 AM.


  2. #2
    (⌐■_■) NourAyman is offline
    MemberRank
    Feb 2012 Join Date
    Behind you :PLocation
    683Posts

    Re: Mob lag fix

    Actually idk what did he mean exactly but these may help.
    Code:
    debug.properties
    EnableActionsDebug = false
    
    network.properties
    network.debug = false
    
    webserver.properties
    debug = false
    
    database.properties
    allowDatabaseLogging = false

  3. #3
    ---- Flyer8472 is offline
    MemberRank
    Mar 2008 Join Date
    Earth.Location
    1,182Posts

    Re: Mob lag fix

    Only the database log was turned on, but thx :D I also gave the mongodb high priority in system, and it was helped a bit, but not much...

  4. #4
    Enthusiast prsp is offline
    MemberRank
    Feb 2018 Join Date
    37Posts

    Re: Mob lag fix

    Quote Originally Posted by Flyer8472 View Post
    Only the database log was turned on, but thx :D I also gave the mongodb high priority in system, and it was helped a bit, but not much...
    how to set this i have this problem too

  5. #5
    ---- Flyer8472 is offline
    MemberRank
    Mar 2008 Join Date
    Earth.Location
    1,182Posts

    Re: Mob lag fix

    In windows taskmanager -> wight click on the process(java.exe) set priority, also on mongodb... thats all...

  6. #6
    Enthusiast prsp is offline
    MemberRank
    Feb 2018 Join Date
    37Posts

    Re: Mob lag fix

    Quote Originally Posted by Flyer8472 View Post
    In windows taskmanager -> wight click on the process(java.exe) set priority, also on mongodb... thats all...
    have way to set automatic when run db server?

  7. #7
    ---- Flyer8472 is offline
    MemberRank
    Mar 2008 Join Date
    Earth.Location
    1,182Posts

    Re: Mob lag fix

    Edit gameserver and loginserver.bat and add /high parameter to start command...

    but also: LMGTFY

  8. #8
    Enthusiast prsp is offline
    MemberRank
    Feb 2018 Join Date
    37Posts

    Re: Mob lag fix

    i don't know what this parameters
    thread.pool_type = 2
    But i set
    thread.pool_type = 8
    This help me little mob can active to attack player faster and boss Lag little to attack player
    Last edited by prsp; 25-03-18 at 09:02 PM.

  9. #9
    Enthusiast feanturi is offline
    MemberRank
    Mar 2018 Join Date
    PolandLocation
    28Posts

    Re: Mob lag fix

    Hello!

    I have the same problem (NPC and moster lagged every few seconds) and was trying different things to solve this. Now, I'm very new to BDO server, but here's what I got till now:

    It seems that what was causing the lag was server locking with the mongo db because it was running out of available connections. You can increase number of allowed connections between server and mongo db here...

    database.properties:
    Code:
    connectionsPerHost = 10
    I changed this to...

    database.properties:
    Code:
    connectionsPerHost = 1000
    Now, 1000 may be a bit extream, but after (very) brief testing the lag is gone. On the other hand, since those are "local" connections between server and db going overboard with it shouldn't be an issue.

    Aside of that, I also changed JVM startup arguments for gameserver a bit. I suspect those don't have direct impact on this problem, but I list them here just in case.

    gameserver.bat:
    Code:
    "-server" "-XX:+DisableAttachMechanism" "-XX:+DisableExplicitGC" "-d64" "-Xms4G" "-Xmx12G"
    Mind you, I'm not very skilled with optimizing JVM and those are just setting I came up with after quick google search. The most important is -d64, since apparently without it JVM actually runs in 32 bit mode (just with Large Address Aware flag, maybe?). On the other hand, DisableExplicitGC moves memory management completly under JVM control, which seems to be doing better job than gameserver. With those changes process memory allocation acts a bit strange to me, though. When you run gameserver it allocates over 9 GB RAM, but after about 5 minutes of actual gameplay RAM usage drops under 4GB.

    Hope it'll work for you :)

    Cheers!

  10. #10
    Enthusiast prsp is offline
    MemberRank
    Feb 2018 Join Date
    37Posts

    Re: Mob lag fix

    Thanks for share i will try set up it :)

  11. #11
    Member ChuTszHin is offline
    MemberRank
    Jan 2014 Join Date
    HongKongLocation
    69Posts

    Re: Mob lag fix

    I referenced your value.And replaced the original value.We can see the difference between them.
    "-server" "-XX:+DisableAttachMechanism" "-Xms4G" "-Xmx6096m"
    "-server" "-XX:+DisableAttachMechanism" "-XX:+DisableExplicitGC" "-d64" "-Xms4G" "-Xmx12G"
    In addition, I also modified the memory allocation value of the login.I expect this to be of substantial help to my server.My server has a stable 20-person online game every day.With me.These settings have some optimization and help.thank you.



Advertisement