• 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 pagefor updates, or 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.)

4.7.5 game server lag spike every 3 or so minutes, help pls

Newbie Spellweaver
Joined
Jun 11, 2022
Messages
14
Reaction score
0
Hello,

I'd like help with figuring out why my game server i made on my local machine tends to lag spike every 3 minutes or so. I'm starting to think it may be due to the GS "sending current game time to all players and Game time saved" but i'm not 100% sure.

Data found in GS log:


10:29:46.201 INFO [pool-2-thread-18]: - Sending current game time to all players
10:29:46.201 INFO [pool-2-thread-18]: - Game time saved...
10:32:46.200 INFO [pool-2-thread-24]: - Sending current game time to all players
10:32:46.200 INFO [pool-2-thread-24]: - Game time saved...
10:35:46.202 INFO [pool-2-thread-1]: - Sending current game time to all players
10:35:46.202 INFO [pool-2-thread-1]: - Game time saved...
10:38:46.200 INFO [pool-2-thread-24]: - Sending current game time to all players
10:38:46.200 INFO [pool-2-thread-24]: - Game time saved...
10:41:46.200 INFO [pool-2-thread-24]: - Sending current game time to all players
10:41:46.200 INFO [pool-2-thread-24]: - Game time saved...
10:44:46.200 INFO [pool-2-thread-27]: - Sending current game time to all players
10:44:46.200 INFO [pool-2-thread-27]: - Game time saved...
10:46:45.832 INFO [pool-2-thread-8]: - Legion WH update task started.
10:46:45.832 INFO [pool-2-thread-8]: - Legion WH update: 0 ms, legions: 0.
10:47:46.201 INFO [pool-2-thread-30]: - Sending current game time to all players
10:47:46.201 INFO [pool-2-thread-30]: - Game time saved...
10:50:46.201 INFO [pool-2-thread-20]: - Sending current game time to all players
10:50:46.201 INFO [pool-2-thread-20]: - Game time saved...
10:53:46.200 INFO [pool-2-thread-7]: - Sending current game time to all players
10:53:46.201 INFO [pool-2-thread-7]: - Game time saved...

If you have anything you'd like me to check out on what it could be please let me know. Thanks in advance!
 
Solution
Change Default: truegameserver.gc.enable = true to Default: truegameserver.gc.enable = false
The server will then stop tearing every 3 minutes.
Newbie Spellweaver
Joined
Sep 3, 2019
Messages
90
Reaction score
12
Hi
Change how often the server saves.
You now have every 3 minutes and there is a skip time while saving.
The settings are in config / main / gamerver
 
Upvote 0
Newbie Spellweaver
Joined
Jun 11, 2022
Messages
14
Reaction score
0
Hi
Change how often the server saves.
You now have every 3 minutes and there is a skip time while saving.
The settings are in config / main / gamerver

Thanks for the reply!!! <3
Are you referring to the AC-Game\config\main\periodicsave.properties?
If so here's what i have:

# ----------------------------
# Periodic save intervals:
# ----------------------------
# WARNING:
# With 500 player online saving can be up to 10 seconds
# (it depends on hardware, changes in item locations, new acquisitions etc)
# Generally accepted interval is 15-20 minutes.
# Time in seconds for saving player data (player, abyss rank, quests, skills)
# Default: 900 (15 minutes)gameserver.periodicsave.player.general = 1800
# Time in seconds for saving player items and item stones
# Default: 900 (15 minutes)gameserver.periodicsave.player.items = 900
# Time in seconds for saving legion wh items and item stones
# Default: 1200 (20 minutes)gameserver.periodicsave.legion.items = 1200
# Time in seconds for saving broker
# Default: 1500 (25 minutes)gameserver.periodicsave.broker = 1500
# Time in seconds for saving/updating pet mood data
# Default: 5 (retail is 4-5 seconds)gameserver.periodicsave.player.pets = 5

What exactly needs to be adjusted?
 
Upvote 0
Newbie Spellweaver
Joined
Sep 3, 2019
Messages
90
Reaction score
12
Thanks for the reply!!! <3
Are you referring to the AC-Game\config\main\periodicsave.properties?
If so here's what i have:

# ----------------------------
# Periodic save intervals:
# ----------------------------
# WARNING:
# With 500 player online saving can be up to 10 seconds
# (it depends on hardware, changes in item locations, new acquisitions etc)
# Generally accepted interval is 15-20 minutes.
# Time in seconds for saving player data (player, abyss rank, quests, skills)
# Default: 900 (15 minutes)gameserver.periodicsave.player.general = 1800
# Time in seconds for saving player items and item stones
# Default: 900 (15 minutes)gameserver.periodicsave.player.items = 900
# Time in seconds for saving legion wh items and item stones
# Default: 1200 (20 minutes)gameserver.periodicsave.legion.items = 1200
# Time in seconds for saving broker
# Default: 1500 (25 minutes)gameserver.periodicsave.broker = 1500
# Time in seconds for saving/updating pet mood data
# Default: 5 (retail is 4-5 seconds)gameserver.periodicsave.player.pets = 5

What exactly needs to be adjusted?


These settings are inAC-Game\config\main\gameserver.properties

# ==========================================
# Memory Optimization Configs
#Default: true
# Default Time: every 5 Min
# ==========================================
gameserver.gc.enable = true - mix it with false to excessively save
gameserver.gc.optimization.time = 3 - or change to another time so it doesn't save frequently
 
Upvote 0
Newbie Spellweaver
Joined
Jun 11, 2022
Messages
14
Reaction score
0
These settings are inAC-Game\config\main\gameserver.properties

# ==========================================
# Memory Optimization Configs
#Default: true
# Default Time: every 5 Min
# ==========================================
gameserver.gc.enable = true - mix it with false to excessively save
gameserver.gc.optimization.time = 3 - or change to another time so it doesn't save frequently


This is what mines set to

# =================================
# Memory Optimization Configs :
# =================================
# Enable Garbage Collector to optimize heap memory
# Default: truegameserver.gc.enable = true
# Optimization Time Period.
# Default: Every 30-Minutesgameserver.gc.optimization.time = 30



problem in pools

What do you mean by this? & where can i look to resolve this?
 
Upvote 0
Newbie Spellweaver
Joined
Sep 3, 2019
Messages
90
Reaction score
12
Change Default: truegameserver.gc.enable = true to Default: truegameserver.gc.enable = false
The server will then stop tearing every 3 minutes.
 
Upvote 1
Solution
Newbie Spellweaver
Joined
Jun 11, 2022
Messages
14
Reaction score
0
Change Default: truegameserver.gc.enable = true to Default: truegameserver.gc.enable = false
The server will then stop tearing every 3 minutes.

I have adjusted it to false like you said and will get back to you after testing.

Thank you,
 
Upvote 0
Newbie Spellweaver
Joined
Jun 11, 2022
Messages
14
Reaction score
0
Sorry late reply but this can be closed as resolved with setting this to false
 
Upvote 0
Back
Top