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:
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!