You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hey, I have a problem with Eco. Since using it the server is always lagging for a brief second when a new player joins the server. This is pretty annoying for a lot of players and especially noticeable if multiple players join in a short time.
To Reproduce
Steps to reproduce the behavior:
Install Eco and use one or multiple plugins using eco to access the ecoprofile (for exmaple EcoSkills or EcoEnchants) on the Server
Set the storage type to mysql
players must join the server
experience the lag which occurs
Expected behavior
The server should not lag when players join
Server Information (please complete the following information):
Paper: 1.21.4-187
eco: 6.75.2
Additional context
Here is a full spark from my test server with only me online and reconnecting. Only ticks above 50ms were recorded.
The report is a bit older, as the issue occurred before, but the issue still exists https://spark.lucko.me/zPHeCvyBWz
I think the issue is coming from PersistentDataHandler#read() where the DB query just gets joined for whatever reason https://i.imgur.com/U2uOTgk.png
The text was updated successfully, but these errors were encountered:
We've been experiencing this issue for several months now, and it's becoming increasingly frustrating. Despite reporting it, we haven't received any response or acknowledgment from the support team. The lag when players join is a serious problem, especially on larger servers, and it would be great to know if this is even being looked into. Any update or feedback would be much appreciated.
FixesAuxilor#389
Update the `read` method in `PersistentDataHandler` to use `CompletableFuture` for asynchronous operations.
* Change the `read` method in `PersistentDataHandler.java` to return `CompletableFuture<T>` instead of `T`.
* Remove the blocking call `future.get()` from the `read` method.
* Update the `read` method in `EcoProfile.kt` to handle the new `CompletableFuture` return type.
* Use `thenApply` to process the result of the `CompletableFuture` in the `read` method in `EcoProfile.kt`.
* Ensure the `read` method in `EcoProfile.kt` returns the default value if the `CompletableFuture` is null.
Describe the bug
Hey, I have a problem with Eco. Since using it the server is always lagging for a brief second when a new player joins the server. This is pretty annoying for a lot of players and especially noticeable if multiple players join in a short time.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The server should not lag when players join
Screenshots
Here is a screenshot of our live server:
https://i.imgur.com/SD87IBH.png
Server Information (please complete the following information):
Additional context
Here is a full spark from my test server with only me online and reconnecting. Only ticks above 50ms were recorded.
The report is a bit older, as the issue occurred before, but the issue still exists
https://spark.lucko.me/zPHeCvyBWz
I think the issue is coming from PersistentDataHandler#read() where the DB query just gets joined for whatever reason https://i.imgur.com/U2uOTgk.png
The text was updated successfully, but these errors were encountered: