Solved

error on apache tomcat server

Posted on 2012-03-21
3
755 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
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 500 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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
servlet requestdispatcher include and forward differences 1 39
javap bin 2 40
Java 8 to Java 6 8 20
Java class and jar 3 20
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

809 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