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

  • Home
  • SEARCH
  • 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 8303865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:38:43+00:00 2026-06-08T17:38:43+00:00

Our context init jumped from 60 sec to about 15 minutes. In both the

  • 0

Our context init jumped from 60 sec to about 15 minutes. In both the slow and fast cases, it does eventually start up successfully. There are no fatal errors either way. Are there particular logging settings or even suggested classes to set breakpoints (or add breakpoint logging)?

I’ve already found the revision where that behavior started, but it is not clear what’s causing it to take so much longer. I’ve set breakpoints throughout DefaultListableBeanFactory among others. It’s a big application, so at points the call stack is hundreds deep in getting and creating beans, but comparing that against the prior revision (which finishes quickly) shows a similar nature. Nothing appears out of the ordinary, between the slow and fast revisions.

I’ve paused execution at random points through “the slow part” and the stack trace appears reasonable, instantiating new beans as needed, setting properties where possible (which expectably leads to more recursive doCreateBean calls, etc…).

I haven’t yet bothered to set up a profiler, but doubt that it will be useful. The code that the slow revision spends all its time in (bean factory, context init), is of course the same code that the fast revision spends most its time in too.

  • 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-08T17:38:44+00:00Added an answer on June 8, 2026 at 5:38 pm

    You might want to check a verbose GC log. It could be that it’s creating a lot of objects somehow and you would see either 1) the heap growing constantly indicating ‘extra’ beans or 2) a lot of nursery GC’s indicating a lot of object creation but not much sticking around (by being added to the context).

    For #1, a tool like Eclipse MAT will help you analyze a heap dump for the objects that are taking the most memory.

    For #2, a profiler would still help. Look at number of calls made, not time spent. You would want to find constructors or other create / init methods that are being called a huge amount of times. From there you can trace back up to find the offending bean.

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

Sidebar

Related Questions

Context In our application, we snapshot data from a database using a query that
Context: I need to develop a monitoring server that monitors some of our applications
Today I upgraded our grails app from 1.0.3 to 1.3.3 and, of course, things
We have upgraded our development SAP system from ECC6 SPS3 to ECC6 SPS5 .
We're using Phonegap to develop our mobile app, and we borrowed code from here
My company runs a video website. We currently make our content available via streaming,
I have been asked to set up some authentication for some content on our
I have a column called body , which contains body content for our CMS.
Our company publishes our software product's documentation using a custom-built content management system using
Background Our email vendor supports rss feeds for dynamic content, which we use successfully

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.