PEXPlugins / PermissionsEx

A powerful permissions plugin for Minecraft
https://permissionsex.stellardrift.ca
Apache License 2.0
481 stars 297 forks source link

Server freezes on adding perms! #1746

Closed FallingHazard closed 9 years ago

FallingHazard commented 9 years ago

The server has been around quite a long time and the pex file is very large, There is no inheritance in the file! On adding a perm to a player, a group or even adding a player to a group the server freezes for up to 2 seconds . Any fixes?

jomo commented 9 years ago

You could try switching to a MySQL backend instead of the single permissions file

Evap88 commented 9 years ago

Getting the same issues, even with sql backend.

FallingHazard commented 9 years ago

ye and importing to mysqlite crashes the server as i assume the file is to big.

Evap88 commented 9 years ago

If you want to import to mysqlite and your server is 'crashing' go to your bukkit.yml or spigot.yml file and edit the "timeout-time:" to something a lot higher so your server won't time out until the conversion is done. It took my server about 45 minutes in a frozen state to fully convert. Just let it sit there.

zml2008 commented 9 years ago

uh mysqlite isn't a thing...

Also if you want to complain about performance problems please provide profiler data, WarmRoast is very good for this.

Stormbow commented 9 years ago

If your permissions.yml file is excessively long, absolutely use more inheritances to reduce the overall number of lines required for the file.

Also, be sure to remove users that have essentially quit playing on the server (absent more than X days) with the cleanup command: pex users cleanup GroupNameHere [threshold]. The [threshold] defaults to 30 days.

zml2008 commented 9 years ago

This issue is being combined into #1824 for further tracking. I have some ideas on how to improve the locking issues.