This plugin allows you despawn entities in different ways; If they are so far from the nearest player, every certain time. You can blacklist entities from despawning and select the type of entity. It will help with lag on your server, specially if it is a RPG or any other server type that contains a lot of monsters.