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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:22:22+00:00 2026-06-12T08:22:22+00:00

We are having a web application which depends on around 125 jars including spring,

  • 0

We are having a web application which depends on around 125 jars including spring, hibernet, zk, etc.

When we start the tomcat server, it loads around 55K classes into the permgen. Coz of this huge class loading, application startup takes significant amount of time. Moreover permgen space required by application is very high as other classes are also loaded during the program execution.

  • Is there a way to control how many classes are loaded at start up so that application comes up fast?
  • Is there a way to free/unload classes from permgen which are less frequently used?
    [These questions are specific to the classes which are loaded from the external jars]

I had tried with -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled options specified for java. But only 42 classes were unloaded after sometime.

Any help or pointers are highly appreciated.

  • 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-12T08:22:23+00:00Added an answer on June 12, 2026 at 8:22 am

    You may want to use a tool to remove unneeded classes.

    This question dealt with this very issue:

    Tool to remove unnecessary dependencies in a Java project

    But this question on Oracle may be more useful:

    https://forums.oracle.com/forums/thread.jspa?threadID=1311910

    I think that GenJar2 (http://code.google.com/p/genjar2/) may best meet your needs though.

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

Sidebar

Related Questions

I am having a ASP.net web application which is hosted in an internet server.
I'm working on Asp.net MVC3 web application. I'm having one page on which appx.
I'm using codeigniter for my web application which is having user registration feature. And
I am working on E-commerce Web Application, which is having users and permissions to
Scenarion: I am having a web application which is going to use SqlServerReport(SSRS) sitting
I am having a simple web application which has some static pages. The URL
In my web application there are 5 buttons in the page which having the
I have a little web server application which reads X bytes from a file
I am trying to automate a web application having javascript. I am using WWW::Scripter
I have web application Project having RPC call. one RPC async is working fine.

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.