How I benchmarked SwingBridge by counting Swing users

Vaadin SwingBridge is a solution that allows you to run Swing apps in the web browser just by adding your app jars in the Vaadin skeleton app. I got a task to measure the memory consumption since we were getting many requests from customers related to that. So, I set out to build a test harness that could be used to measure SwingBridge and compared that to a popular alternative, Webswing.

This blog post is a detailed worklog, aimed to help developers to test their Swing apps memory usage with SwingBridge and to avoid some of the pitfalls we found during the process. The short version is that we were able to fit 38 users in a 4 GB box, all running the JOSM application and performing a predetermined task.

Build Better Java Web Apps 

One email a month: Vaadin release news, expert tutorials, and guides for Java developers.

How many Swing users fit on one server?

We spent the last SwingBridge release on improving memory usage, so that more users fit on one server. I wanted a number for it, not just my own opinion about how we built it. SwingBridge runs your Swing application on a server and shows it in a browser, so a user opens a link instead of installing ...

How to improve the performance of your web application

Improving a web application’s performance becomes more important as the number of concurrent users the application has. There are several reasons to enhance the performance of your web application, even if you do not have a huge amount of concurrent users. Here are a few of the benefits of doing ...

Top 5 most common Vaadin performance pitfalls and how to avoid them

A couple of weeks ago I was coding a demo app when it dawned on me that if I was to use my code in a real-world application, it would consume unacceptable amounts of memory once it reached 100 or more concurrent users. Vaadin Flow makes it easy to start coding web applications, even if you have no ...

Is your Grid too slow? You are probably using the wrong renderer

If you are building a business web application with Vaadin, chances are that you are using Vaadin Grid. There are multiple ways to create columns with Grid: some are more flexible than others. But what you might not know is how they differ in terms of performance on the client side. Why Client-Side ...