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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:35:12+00:00 2026-06-06T21:35:12+00:00

Few days ago, I noticed that I’m occasionally seeing a java.lang.OutOfMemory: PermGen exception when

  • 0

Few days ago, I noticed that I’m occasionally seeing a java.lang.OutOfMemory: PermGen exception when my Java web site runs under Tomcat.

I read about this error online and understand why this exception occurs. I followed a tutorial to increase my MaxPermSize, and edited by catalina.sh to contain the following:

    JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 
    -server -Xms1536m -Xmx1536m
    -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m 
    -XX:MaxPermSize=256m -XX:+DisableExplicitGC"

However, I would like to understand more about my PermGen capabilities:

  1. Can anyone tells me how I can understand my server capability in order to give the appropriate new size?

  2. Moreover does anyone know how I can make memory measurements on Apache tomcat?

  • 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-06T21:35:14+00:00Added an answer on June 6, 2026 at 9:35 pm

    The PermGen is the space of the memory not managed by the Garbage Collector. It contains loaded classes, their methods, statics, strings, etc…

    With a Xmx at 1536Mo, you can try to put the MaxPermSize to 384M.
    If the value is to high, the JVM won’t start, so it’s easy to find the maximum size.

    But the real question is why is your PermGen so full.
    Do you load a lot of classes ?

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

Sidebar

Related Questions

Few days ago all was ok: when I started my web-site with Silverlight 4.0
When I was writing C# code a few days ago I noticed that the
Possible Duplicate: eval base64_decode php virus A few days ago I noticed that none
Few days ago i bought a WISON OR200 sensor for a web system that
A few days ago I asked a question that might be a little unclear.
A few days ago I asked about passing a data structure from java to
few days ago i've changed host for my site, and now on the new
Few days ago I've a weird idea came into my mind that manipulate if();
Few days ago I tried to create a system that jQuery will enable me
few days ago, my freind asked me to build him a proagram that start

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.