Jump to content

Need some people for Minecraft server load testing

So I am going to be hosing a Minecraft server for my school next month. (We are going to have about 35 people playing)

But I cannot tell if my home connection can handle that many people. And I need to know how much RAM to dedicate.

 

If I can get 40+ people to just log in and either just move around/play or idle on the server that would be great. You don't even have to do anything.

 

It is a Vanilla 1.8 server. I will be using 6GB RAM dedicated to it at first. And I will see how that goes.

 

IP: 67.164.212.115:25595

 

Thanks LTT!

 

 

 

 

5800X3D - RTX 4070 - 2K @ 165Hz

 

Link to post
Share on other sites

Use PyCraft to stress test.

 

Thread: http://www.spigotmc.org/threads/stress-testing-servers.175/

(contents so you don't have to sign up):

 

 

Many of you may have run into this predicament where you want to stress test your server. I ran into a similar situation when I wanted to test out asynchronous chunk loading yet lacked the player count to do so. Luckily I had coded a python minecraft client a while ago and it was just a couple of simple changes to turn it into a utility program to spawn a couple of bots that move around randomly. 

The code is available here:
https://github.com/ammaraskar/pyCraft/tree/bots

Windows



If you're based on windows and are unfamiliar with python, I'd suggest downloading this version right here since its readily compatible with the encryption dependency:​

There's some instructions on how to install the dependency from earlier here: https://github.com/ammaraskar/pyCraft/tree/bots#pycrypto-on-windows-systems-32-bit

Linux



If you're on linux then installing is a breeze, simply install the following (example on an aptitude based system)​

apt-get install python-pip​
apt-get install build-essential​
apt-get install python-dev​

and then run in the directory you extracted/cloned the repo to (see below)​

pip install -r requirements.txt​

Once you've got everything installed, clone the git repository and checkout to the "bots" branch. Alternatively for those who aren't git savvy, simply extract this .zip archive somewhere https://github.com/ammaraskar/pyCraft/archive/bots.zip
Now, open the command line/terminal and change directory to the place where you saved the repo. Now run the following command python start.py -x -b <bot count>

Do note that these bots can only be used in offline mode, that's what the parameter -x does and -b naturally represents the number of bots. These bots will fly around and hence assume that they have the appropriate permissions to do so. So make sure you allow them to fly!

Tweaking code


Since python is interpreted, adjusting the code to your liking is as simple as editing the source files. This is the part you'll be mostly concerned with with https://github.com/ammaraskar/pyCraft/blob/bots/networking/NetworkManager.py#L363

p.s if there's any nice python devs in here who have some time I'd appreciate some help with overhauling the code (I don't have the time to do it D: )

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×