?
Solved

error on apache tomcat server

Posted on 2012-03-21
3
Medium Priority
?
760 Views
Last Modified: 2012-03-21
Hello I am new to my job. The server is throwing an exception all of a sudden.

Do you have any recommendations on how I should adjust the heap space on the environment variable? Or do you think a server reboot would do it?

This is a description of the error:

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Filter execution threw an exception


root cause

java.lang.OutOfMemoryError: Java heap space


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.


--------------------------------------------------------------------------------

Apache Tomcat/5.5.17
0
Comment
Question by:Midani22
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Expert Comment

by:Sharon Seth
ID: 37747737
Add this as a VM arg
-Xms1024m -Xmx1024m

Also , how much memory does the system have?
0
 
LVL 47

Accepted Solution

by:
for_yan earned 1500 total points
ID: 37748116
If you start your Tomcat from command line you want to set environement variable
 TOMCAT_OPTS to -Xmx1500
or any high value
(for 32bit java 1500-2000M is as haigh as it can be)
and then restart Tomcat
0
 

Author Closing Comment

by:Midani22
ID: 37748288
English language. Spelling.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses
Course of the Month9 days, 19 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question