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 8658289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:43:41+00:00 2026-06-12T15:43:41+00:00

I have a REST web service built with Spring MVC, with annotation-based configuration and

  • 0

I have a REST web service built with Spring MVC, with annotation-based configuration and plus a web.xml in which org.springframework.web.context.support.AnnotationConfigWebApplicationContext is specified to be used.

During startup of the application in the log file I see some of the lines 3 times. (Hibernate initialization – SchemaUpdate, TableMetadata etc…, then configWebApplicationContext, then EhCacheManagerFactoryBean, then requestMappingHandlerMapping… and in this sequence 3 times).

The application starts with no errors and I can use the REST endpoints.

My concern is whether because of this my application will use more memory or cause some unpredicted behavior? Any insight is helpful.

Here’s a screenshot of the application start-up captured by Spring Insight:

enter image description here

  • 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-06-12T15:43:42+00:00Added an answer on June 12, 2026 at 3:43 pm

    Ok, as I see, excerpt for the longer startup time, it actually doesn’t use more memory, so that’s good.

    As stated in the JavaDoc API, it loads or refreshes the persistent representation of the configuration.

    And @gigadot pointed good in the comment on the question, that I might have multiple dispatcher servlets, and I had two, WebInitializer implements WebApplicationInitializer in onStartup method, and one in web.xml in declaration. I removed the one in the web.xml, and now I had 2 calls to #refresh on startup instead of 3, and the memory consumption was the same.

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

Sidebar

Related Questions

I am new to web services. I have written a rest web service which
I have a REST web service which I created previously and deployed in Tomcat7.
I have an ASP.NET MVC web application that makes REST style web service calls
I want to build a REST web service on app engine. Currently i have
I have created a REST web service and successfully used it with a client.
I have an ASP.NET Web API (version 4) REST service where I need to
We have a web service up and running built in VS2010. Several of the
We have built some REST (jax-rs) web services using Apache CXF. They return a
I'm using eclipse and I have a java web service (rest jax-rs) I also
I have a very simplistic REST service (.NET 3.5) somewhat based on the articles

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.