tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lane <l...@joeandlane.com>
Subject Re: OutOfMemory on FreeBSD
Date Mon, 23 May 2005 00:12:49 GMT
Hey, I guess I can answer my own question!  Don't you just love it when that 
happens!

The makefile for tomcat5 on FreeBSD doesn't give the option to add additional 
parameters.  There is probably a better way to do this than to hard-code more 
variables, but I'm not sure how to do it.  So for anyone else who runs into 
OutOfMemory exceptions on FreeBSD or the dreaded "Can't connect to X DISPLAY" 
error, make these changes to /usr/ports/www/jakarta-tomcat5/Makefile:

In the do-install target: 

change: 

-e "/%%JAVA_ARGS%%/s//\"-Dcatalina.home=${APP_HOME:S/\//\\\//g}\",/g" \

to:

-e "/%%JAVA_ARGS%%/s//\"-Djava.awt.headless=true\",\"-Xms128m\",\"-Xmx256m\",
\"-Dcatalina.home=${APP_HOME:S/\//\\\//g}\",/g" \

then do:

make -DFORCE_PKG_REGISTER do-install

This will overwrite the current tomcat50ctl but will preserve your existing 
tomcat installation.


PortMaintainer:  Kang Liu  - which email address is correct for you?  both 
liukang@bjpu.edu.cn and  liukang@bjut.edu.cn appear 
in /usr/ports/www/jakarta-tomcat5/Makefile

lane

On Sunday 22 May 2005 16:14, Lane wrote:
> Hello,
>
> I'm trying to find how to send jvm parameters (-Xm128m) to the JVM during
> tomcat startup.  I have an application (openreports) that fails with
> outofmemory exception intermittently.
>
> I have seen some references here and there, but nothing that indicates
> which tomcat (or java, [or freebsd]) configuration file that I need to
> touch.
>
> Any pointers are appreciated.
>
> thanks,
>
> lane
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message