"OutOfMemoryError" means that your JVM is not providing enough heap space
to run Tomcat. If I remember correctly, the Blackdown JVM has a *very*
small default heap size, while the heap size on the Sun and IBM JVMs is
much larger.
What you need to do is consult the documentation from Blackdown and figure
out how to increase the heap size to at least 64 megabytes. You can then
configure Tomcat startup to use this by setting the environment variable
TOMCAT_OPTS (for Tomcat 3.x) or CATALINA_OPTS (for Tomcat 4.0). Here's
what you would do on the *Sun* JDK to increase heap size to 512 megabytes
(assuming a nice big machine):
Unix:
export CATALINA_OPTS="-DXmx=512m"
$CATALINA_HOME/bin/catalina.sh start
Windows:
set CATALINA_OPTS="-DXmx=512m"
%CATALINA_HOME%\bin\catalina start
but you will need to figure out the right setting for Blackdown.
Craig McClanahan
On Thu, 13 Sep 2001, Franck Routier wrote:
> Date: Thu, 13 Sep 2001 14:56:41 +0200
> From: Franck Routier <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: New xml parser on startup in Tomcat ?
>
> Hi,
>
> I'm still fighting with the same problem :
>
> Tomcat, just out of the box, won't start and gives me a OutOfMemoryError on
> startup, then dies.
> Apparently, it does this while reading it's conf file.
> The problem occurs with versions 3.3-b2 and 4.0-rc1.
>
> The interresting point is that version 3.2.3, bundled with jboss 2.4.0 WORKS,
> but the same version (3.2.3) bundled with jboss 2.4.1 doesn't (same error).
>
> I read this in jboss forum, on another subject, but I thing it might be
> related :
>
> "The problem is that in Tomcat 3.x you have to put your parsers in the
> classpath before everything else becouse they are no relying on system
> properties to decide which parser to use. There is an explanation on how to
> to this is tomcat�s archives. In Tomcat 4.x the parser loaded by Tomcat for
> it�s own use does not conflict on the parser used by applications. The
> problem is solved in last version of JBOSS by using system properties to
> define which parser to use. I�ll look for the archives and post them later "
>
> Sadly I'm not skilled enough to tell if this is really related...
>
> Any idea why Tomcat won't start on my machine, except when launched with
> jboss 2.4.0...
>
> I use jdk 1.3-ppc from Blackdown on Debian Gnu-Linux-ppc.
>
> Thanks,
>
> Franck
>
>