Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6953915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:32:21+00:00 2026-05-27T14:32:21+00:00

My spring app’s page takes 5 ms to render, and using ab I was

  • 0

My spring app’s page takes 5 ms to render, and using ab I was getting around 200 requests per second.

I tested on a VM that was a single core.

Now this page simply takes an xml file and parses it and initializes an object, and then inserts the object into mysql.

Now assuming mysql isn’t blocking (connection pool is not large enough, or table locks), adding another core should double my requests per second correct?

If I get 200 requests per second with a single thread hitting tomcat, I should keep doubling my rps as I increase threads correct? (up to some point obviously).

What is usually the bottle neck as mysql seems to be able to handle 3-4K inserts per second on a very simple servlet app.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:32:22+00:00Added an answer on May 27, 2026 at 2:32 pm

    Changing from single to dual core should work as you expect. If more cores and higher load come into play, you will probably face that thread-scheduling isn’t fair to all threads.

    Since more memory is allocated and released in the same time garbage-collection could be an issue.

    As long as all requests don’t come faster than they can be processed (200 * 5ms) 1000ms (you should have around 300ms spare time). you’re fine.
    But due to scheduling, changing from user to kernel mode on each system call (mostly I/O from DB) adds additional time required to process a request. Which could leads to bottlenecks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a (non-web app) Spring application that throws a NoSuchBeanDefinitionException when running tests
I am learning Spring and building a sample app. I am getting the error:
We have a Spring + Ibatis based J2EE app. I planned to wrap around
I am using spring web mvc for my app's UI part.. By using following
I'm using Spring/Roo for an app server, and need to be able to post
I have an app that uses Spring security and BlazeDS. Flex 3.2 is used
I am working on a Java app that uses Spring IoC and JDBC Template
I have a spring mvc app that I want to refactor out, speficially removing
Greetings! I have a Spring app and a form getting validated on the back
My Spring MVC app is full of methods that look like this: @RequestMapping(value =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.