• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 765
  • Last Modified:

error on apache tomcat server

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


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


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
1 Solution
Sharon SethCommented:
Add this as a VM arg
-Xms1024m -Xmx1024m

Also , how much memory does the system have?
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
Midani22Author Commented:
English language. Spelling.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now