This plugin stacks living entities based on configuration values to improve server performance. By using this plugin, the number of living entities can be significantly reduced therefor leading to reduced server lag.
https://i.imgur.com/WUld0jD.png
The plugin can be viewed and downloaded from: https://www.spigotmc.org/resources/mobstacker-merge-mobs-together-opensource.52459/