1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Can't hold more than 20-50 entities [Self-SOLVED]

Discussion in 'Development' started by Az928, Oct 6, 2017.

  1. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
    I was recently checking how much pmmp can handle entities since it was lagging bad, and saw that it can't hold more than 20 to 50 entities max, if I spawn 20 zombie, it starts to lag a little, 30 the lag is 2 sec delay msg, 40, almost frozen and 50+ server is frozen.

    Any help is appreciated
     
    Levi likes this.
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Depends on...
    • Storage drive type (HDD/SSD/SSHD/NVMe etc)
    • CPU
    • CPU speed
    • # of CPU cores
    • RAM
    • Network speed and ping (only if the server isn't being hosted on the same network as the client[you])
    • How you are spawning zombies
    • Background processes
    Zombies shouldn't be lagging you or your server if you are spawning them using spawn eggs and without any plugins that modify entity behavior - I'm assuming that's how it is in your case. It could be FPS drop if you're experiencing the problem on pocket edition but I'm sure 20 entities don't mean any harm.
     
  3. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
    Storage: SSD 120 GB
    CPU: Xenon
    Speed: 2.7-3.6 GHz
    Ram: for server 10GB
    spawning by eggs
    It says network is 0kbps on /status, but it let's join, everything works fine, but when more than 40 zombie spawned, it lags and console freeze
     
  4. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
    A screenshot
     

    Attached Files:

  5. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Looks like a network issue from your side. I'd tell you to do a network speed test but since you mentioned "console freeze", I'm confused. Do you encounter random timeouts with your VPS/Dedicated server?
     
    Karanpatel567 likes this.
  6. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
    Nope, other shit works fine, only pmmp console freeze
     
  7. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
    Also my vps speed
     

    Attached Files:

  8. themestl

    themestl Spider Jockey

    Messages:
    39
    GitHub:
    themestl
    This is impossible, because players send more packets than entities, and the server will sleep when online ~ 5. + The entity always stands, and EntityMovePacket is used only in plugins.
     
  9. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
    I finally found that it was caused by a plugin's foreach loop
     
    Levi likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.