In the tomcat startup script catalina.sh, which is in the tomcat bin
directory, the script looks for
that env var and uses it as a startup arg to JAVA when it invokes it.

Do you run the tomcat/bin/startup.sh to start your tomcat? If so, that calls
catalina.sh.




On 10/21/07, Lou Iorio <[EMAIL PROTECTED]> wrote:
>
> Where does $JAVA_OPTS come from? It doesn't exist on my mac or my linux
> machine.Have I not set tomcat up correctly?
>
> Thanks,
>
> Lou
>
> On Oct 21, 2007, at 10:39 AM, Henry Minsky wrote:
>
> You should start tomcat with at least 512MB of RAM.
>
> I have this set in my environment
> $ echo $JAVA_OPTS
> -Xmx500m
>
>
> And the tomcat startup script uses that to up the max RAM to 512MB. If you
> have 2GB, you could set it higher even.
>
>
> On 10/21/07, Lou Iorio <[EMAIL PROTECTED]> wrote:
> >
> > I get frequent "out of memory" errors when trying to compile examples
> > from the dguide.
> >
> > I'm running a MacBook Pro with 2 G of RAM.
> >
> > Is there a way to increase the memory available to Tomcat? Or is
> > there another solution?
> >
> > Thanks,
> >
> > Lou
> >
> >
>
>
> --
> Henry Minsky
> Software Architect
> [EMAIL PROTECTED]
>
>
>


-- 
Henry Minsky
Software Architect
[EMAIL PROTECTED]

Reply via email to