Closed EpicPlayerA10 closed 1 year ago
Print the output of /iainfo.
Also what is your server hardware? The plugin was tested with lot of items and configurations and never had a performance issue on loading, I always benchmark the plugin before releasing updates.
A looooooot of items:
/iainfo
[09:02:22 INFO]: -=[ ItemsAdder ]=-
[09:02:22 INFO]: Version: 3.4.1c
[09:02:22 INFO]: ResourcePack
[09:02:22 INFO]: Path: /container/plugins/ItemsAdder/output/generated.zip
[09:02:22 INFO]: Download: xxx
[09:02:22 INFO]: Size: 27 MB/250 MB
[09:02:22 INFO]: Last update: 2023-05-21 19:45:35
[09:02:22 INFO]: Host type: auto-external-host
[09:02:22 INFO]: Data
[09:02:22 INFO]: Items: 6358
[09:02:22 INFO]: Items in /ia: 6344
[09:02:22 INFO]: Namespaces: 56
[09:02:22 INFO]: Materials: 59
[09:02:22 INFO]: REAL block IDs: 3/191
[09:02:22 INFO]: REAL_NOTE block IDs: 714/750
[09:02:22 INFO]: REAL_TRANSPARENT block IDs: 25/63
[09:02:22 INFO]: REAL_WIRE block IDs: 0/127
[09:02:22 INFO]: FIRE block IDs: 0/14
[09:02:22 INFO]: Font images: 965/6608
[09:02:22 INFO]: Loaded chunks (2645)
[09:02:22 INFO]: Armorstands: 0
[09:02:22 INFO]: Mobs: 0
Also what is your server hardware?
My server hardware is pretty good.
Maybe it is because I have too many items. That's why i'm asking if it can be optimized somehow.
It isn't too annoying, it will only load new items slowly. Already existing items load in decent time.
Without any proper spark or timings report I cannot identify where the issue relies. The plugin was benchmarked and working without any significant slow down on loading lot of items, so this is strange.
I loaded those 6k items (for the first time) on a new fresh server and i got some logs and data.
FULL server log: https://pastebin.com/PGaGxrBe Spark report: https://spark.lucko.me/ssMQNao0JN
Thanks bro
This issue happens only when the items are added to the configurations for the first time. It won't happen again in the next plugin loads, because the plugin uses a cache.
Although I optimized the cache generation so it won't cause slowdowns even at the first load of your items.
File I used to benchmark: https://gist.github.com/LoneDev6/03f875e7d5872cffb1f190214676c60e
Terms
Discord tag (optional)
EpicPlayerA10#3800
What happened?
I found out that when I have a lot of new items with the same material, that weren't loaded before, then loading them is very slow in the first time.
This can even lead to print a stacktrace, when server is not responding. The stacktrace is in the
FULL server log
section.Maybe we can do something about this. Caching or something...
Steps to reproduce the issue
/iazip
Server version
Current: git-Purpur-1968 (MC: 1.19.4)*
ItemsAdder Version
ItemsAdder version 3.4.1c
ProtocolLib Version
ProtocolLib version 5.0.0
LoneLibs Version
LoneLibs version 1.0.24
FULL server log
Error (optional)
No response
Problematic items yml configuration file (optional)
No response
Other files, you can drag and drop them here to upload. (optional)
No response
Screenshots/Videos (you can drag and drop files or paste links)
No response