0

I am trying to configure tomcat according to Dealing with "java.lang.OutOfMemoryError: PermGen space" error. How do I implement the steps

  • You can do that by shutting down the tomcat service, then going into the Tomcat/bin directory and running tomcat6w.exe. Under the "Java" tab, add the arguments to the "Java Options" box. Click "OK" and then restart the service.

So I do the first part shutdown tomcat:

  • sudo /etc/init.d/tomcat6 stop

How do I implement the rest? I am running debian linux

Community
  • 1
  • 1
user1467855
  • 3,843
  • 7
  • 28
  • 29

1 Answers1

2

The instructions you quote relate to a Windows machine.

It would appear you installed Tomcat from a Debian package.If so, your bin subdirectory should be be under /usr/share/tomcat...

There you can change your permgen settings in ../bin/setenv.sh(file might need to be created) with -XX:MaxPermSize.

For example:

export CATALINA_OPTS="-XX:PermSize=256m"
Adi Dembak
  • 2,433
  • 2
  • 18
  • 26