• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Mob lag fix

(⌐■_■)
Joined
Feb 2, 2012
Messages
681
Reaction score
102
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
 
Upvote 0
----
Loyal Member
Joined
Mar 26, 2008
Messages
1,038
Reaction score
412
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...
 
Upvote 0
----
Loyal Member
Joined
Mar 26, 2008
Messages
1,038
Reaction score
412
In windows taskmanager -> wight click on the process(java.exe) set priority, also on mongodb... thats all...
 
Upvote 0
----
Loyal Member
Joined
Mar 26, 2008
Messages
1,038
Reaction score
412
Edit gameserver and loginserver.bat and add /high parameter to start command...

but also:
 
Upvote 0
Newbie Spellweaver
Joined
Feb 24, 2018
Messages
37
Reaction score
0
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:
Upvote 0
Newbie Spellweaver
Joined
Mar 19, 2018
Messages
28
Reaction score
24
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!
 
Upvote 0
Newbie Spellweaver
Joined
Jan 15, 2014
Messages
69
Reaction score
20
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.
 
Upvote 0
Back
Top