try using export (with standard linux shells)

export CATALINA_OPTS="-ms200m -mx400m"



> -----Ursprungliche Nachricht-----
> Von: Raj Mettai [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 9. Oktober 2002 15:15
> An: [EMAIL PROTECTED]
> Betreff: Re: java.lang.OutOfMemoryError
> 
> 
> Hi Sonam Singh,
>  
> currently, I am passing the max and min values for the memory 
> thru CATALINA_OPTS in catalina.sh (CATALINA_OPTS="-Xms256M 
> -Xmx256M"; export CATALINA_OPTS)
> 
> I think this will increase the default memory right ?
> 
> thanks 
> Raj
> 
> 
> >>> [EMAIL PROTECTED] 10/09/02 08:39AM >>>
> modify the catalina.sh because tomcat run with default
> memory u have to increase it manually in the
> catalina.sh as below
> 
> [ "$1" = "start" ] ; then
> 
>   shift
>   touch "$CATALINA_BASE"/logs/catalina.out
>   if [ "$1" = "-security" ] ; then
>     echo "Using Security Manager"
>     shift
>     "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
>       -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS"
> -classpath "$CLASSPATH" \
>       -Djava.security.manager \
>      
> -Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy
> \
>       -Dcatalina.base="$CATALINA_BASE" \
>       -Dcatalina.home="$CATALINA_HOME" \
>       -Djava.io.tmpdir="$CATALINA_TMPDIR" \
>       org.apache.catalina.startup.Bootstrap "$@" start
> \
>       >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
>   else
>     "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
>       -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS"
> -classpath "$CLASSPATH" \
>       -Dcatalina.base="$CATALINA_BASE" \
>       -Dcatalina.home="$CATALINA_HOME" \
>       -Djava.io.tmpdir="$CATALINA_TMPDIR" \
>       org.apache.catalina.startup.Bootstrap "$@" start
> \
>       >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
>   fi
> 
> change TO ...........
> 
> [ "$1" = "start" ] ; then
> 
>   shift
>   touch "$CATALINA_BASE"/logs/catalina.out
>   if [ "$1" = "-security" ] ; then
>     echo "Using Security Manager"
>     shift
>     "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
>       -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS"
> -classpath "$CLASSPATH" \
>       -Djava.security.manager \
>      
> -Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy
> \
>       -Dcatalina.base="$CATALINA_BASE" \
>       -Dcatalina.home="$CATALINA_HOME" \
>       -Djava.io.tmpdir="$CATALINA_TMPDIR" \
>       org.apache.catalina.startup.Bootstrap "$@" start
> \
>       >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
>   else
>     "$_RUNJAVA" ....-Xmx400m...  $JAVA_OPTS
> $CATALINA_OPTS \
>       -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS"
> -classpath "$CLASSPATH" \
>       -Dcatalina.base="$CATALINA_BASE" \
>       -Dcatalina.home="$CATALINA_HOME" \
>       -Djava.io.tmpdir="$CATALINA_TMPDIR" \
>       org.apache.catalina.startup.Bootstrap "$@" start
> \
>       >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
>   fi
> 
> then it will not give u Error in then run the tomcat
> sh catalina.sh start 
> 
> regards
> Sonam Singh
> 
> 
> 
> --- Raj Saini <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > I was using the tomcat 4.0.3 with JDK 1.4. Tomcat
> > was integrated with 
> > apache using warp connector. I used to have the same
> > problem you have 
> > now. I recently upgraded to Tomcat 4.1.12 and warp
> > to mod_jk with load 
> > balancing with two instances of tomcat on the same
> > server.
> > 
> > Memory usages which used to shoot upto 200 MB in a
> > single day is now 
> > restricted to 3-4 MBs a day.
> > 
> > I cant not say surely my problem was due to warp or
> > tomcat 4.0.3. Your 
> > can try upgrading to tomcat 4.1.12.
> > 
> > Raj
> > 
> >   earlier is now
> > > Hi all,
> > > 
> > > I have apache(2.0.39) and tomcat(4.0.4) configured
> > on different solaris
> > > 8 machines using mod_jk. I have two instances of
> > tomcat running, each
> > > serving different jsp/servlet/bean application. I
> > see lot of OutOfMemory
> > > errors in tomcat logs after few hours, some times
> > tomcat totally
> > > crashes, if I do not restart. I am pretty much
> > monitor java process
> > > using prstat and if the memory reaches maximum
> > value, I am restarting
> > > tomcat.
> > > 
> > > here is my jdk version...
> > > 
> > > java version "1.3.1"
> > > Java(TM) 2 Runtime Environment, Standard Edition
> > (build 1.3.1-b24)
> > > Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed
> > mode)
> > > 
> > > I have increased the heap size from 128M to 256M,
> > it didn't help much
> > > other than running for few more hours.
> > > 
> > > and currently I have set up 256M min and 256M max
> > values for heap size.
> > > 
> > > I am wondering, is there any known issues with
> > running tomcat4.0.4 under
> > > jdk1.3.1(build 1.3.1-b24, mixed mode). ?
> > > 
> > > Is there any preferred jdk version(less memory
> > leaks) for tomcat 4.0.4 ?
> > > 
> > > thanks in advance....
> > > 
> > > Raj
> > > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:  
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
> http://faith.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to