Skip to content

Performance issues with Spring Boot #6005

@johnament

Description

@johnament

Hi Spring Boot team!

I was wondering if you could provide me some insight on some performance issues I'm seeing within Spring Boot. You can see a sample project that's been put together here: https://github.com/SpartaSystems/spring-boot-sample

The problem that we're seeing is that under load, the database connection pool seems to not be able to keep up. A similar app to this, based on Wildfly Swarm was written and does not exhibit this issue, and I was wondering if you could provide some insight on how to tweak boot to help make this work a bit better.

Here's a few schematics:

  • Test runs on an M3Large instance in AWS
  • The database is MySQL 5.6.30 and runs local to the box (not an RDS instance)
  • The java version is 1.8.0_u51
  • All bare minimum JVM settings, e.g. 512 mb

What we see is that we get back an error rate of around 10% (plus or minus 3% depending on execution) with most of the errors being problems trying to get a connection from the underlying pool. The pool size is actually larger here than we run in most cases, but that doesn't seem to help.

John

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions