---
title: "Tomcat OutOfMemory Error: PermGen Space"
author: "carrot"
date: "2008-08-30T13:33:14Z"
tags: []
slug: "tomcat-outofmemory-error-permgen-space"
draft: false
lastmod: "2008-08-30T13:33:14Z"
id: 234780
url: "https://carrot.iteye.com/blog/234780"
---

This FAQ applies to: 5.1

Using the Client Management service with the database system eXist Tomcat occasionally throws a OutOfMemory Error: PermGen Space.

To fix this the Tomcat Administrator has to change the JAVA\_OPTS variable in the catalina start up script to the following

**JAVA\_OPTS="-server -Xms128M -Xmx256M -XX:MaxPermSize=256M"**

If you are running tomcat as a Windows Service then you need to right click on the Apache Tomcat System Tray icon and click "Configure"

Click on the Java tab, and in the Java options box add the line **-Xms128M -Xmx256M -XX:MaxPermSize=256M**