Jump to content

Load testing websocket multiplayer games


Nitrous9
 Share

Recommended Posts

Hello!

I'm faced with a problem and looking for a good solution.  The problem is how to load test my websocket multiplayer game by simulating n real clients?  My game works great when there are just a few clients while developing, but recently I had about a spike of new players join from a school at the same time, and my game did not scale well at all.

So I have a scalability problem and I need to fix it, but the question is how do I know when it's fixed?  I need a way to on-demand scale up to N number of simulated clients, to test my scalability. 

Problems with load testing websockets:

  •   I can't just open a bunch of browser windows on my computer and connect because my computer doesn't have enough resources to support that many clients.
  • There are traditional web load testing tools like jmeter, but they are designed for opening http connections not websockets
  • There are also websocket load testing tools like thor, but those just open a websocket connection and send dumb messages, and can't act as a real game client.

What I need is a way so simulate a real game client that uses the same protocol as the game, and sends messages as a real player would,  then be able to scale that up to 10, 20, 50, 100.

Has anyone else run into this problem or have any recommendations?

Thank you!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...