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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:39:13+00:00 2026-05-31T05:39:13+00:00

Following are my system configuration java version 1.6.0_17 Tomcat 6.0.18 OS : Cent OS

  • 0

Following are my system configuration

java version "1.6.0_17"  
Tomcat 6.0.18  
OS : Cent OS 5.7

enter image description here

Following is my JAVA_OPTS in Catalina.sh

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

I am getting the following error on heavy usage. And the Tomcat Crashes..

java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Unknown Source)
    at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
    at java.lang.AbstractStringBuilder.append(Unknown Source)
    at java.lang.StringBuffer.append(Unknown Source)
    at org.htmlparser.parserHelper.TagParser.checkFinishedState(TagParser.java:157)
    at org.htmlparser.parserHelper.TagParser.automataInput(TagParser.java:93)
    at org.htmlparser.parserHelper.TagParser.find(TagParser.java:76)
    at org.htmlparser.tags.Tag.find(Tag.java:192)

Can any one please say the correct configuration for JAVA_OPTS so that I will not get this error. Please help me Thanks in advance.

EDIT :
Finally I gave the java opts as like this

JAVA_OPTS=”-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server
-Xms1536m -Xmx3072m -XX:NewSize=256m -XX:MaxNewSize=1024m -XX:PermSize=256m -XX:MaxPermSize=1024m”

  • 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-31T05:39:14+00:00Added an answer on May 31, 2026 at 5:39 am

    JVM memory tuning is not an easy task.

    Increasing JVM memory is the first thing you should do, but also take a look at some tools for investigating JVM memory consumption. You might start with jvisualvm or jconsole (both should be placed in ${JDK_HOME}/bin).

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

Sidebar

Related Questions

Say I have the following web.config: <?xml version=1.0 encoding=utf-8?> <configuration> <system.web> <authentication mode=Windows></authentication> </system.web>
I have the following line of code called very often: var configValue = System.Configuration.ConfigurationManager.AppSettings[ConfigValueKey];
I have the following configuration: Visual Studio Team System 2008 SQL Server Developer Edition
I have a WCF service with the following configuration: <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name=MetadataEnabled>
I would like to monitor the following system information in Java: Current CPU usage**
I have a PHP app running happily on the following system: web app: PHP
The following function System.Threading.Thread.Sleep(); delay the thread in millisecond, and take the integer value
I initially designed my system following the s# architecture example outlined in this codeproject
I'm using the following code (System.Data.SQLite within VB.net): Dim SQLconnect As New SQLite.SQLiteConnection() Dim
My unit test keeps getting the following error: System.InvalidOperationException: The Connection is not open.

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.