Haven't done it myself but I thought you had to edit the registry to modify VM
settings for a TC service. See if there's a TC entry at:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

Quoting Daniel Perry <[EMAIL PROTECTED]>:

> eh?
> i thought ANT_OPTS was for ant, not tomcat.
> 
> I dont have any trouble with ant using default memory allowance.
> Its tomcat that is running out of memory, and is ignoring the CATALINA_OPTS.
> 
> Daniel.
> 
> -----Original Message-----
> From: Jignesh Patel [mailto:[EMAIL PROTECTED]
> Sent: 14 May 2004 12:14
> To: Struts Users Mailing List; Daniel Perry
> Subject: Re: java.lang.OutOfMemoryError after server app start/stop
> cyclin g
> 
> 
> Daniel,
> For your problem  3 you must have to set   ANT_OPTS=-Xmx512m in your dos 
> prompt as mentioned by Chris. 
> 
> -Jignesh
> On Friday 14 May 2004 15:49, Daniel Perry wrote:
> > I have JAVA_OPTS and CATALINA_OPTS set to -Xmx1024M as system environment
> > variables.
> >
> > If i start tomcat using startup.bat it uses these.
> >
> > If i start tomcat using as a windows service, it doesnt use these.
> >
> > Daniel.
> >
> > -----Original Message-----
> > From: McCormack, Chris [mailto:[EMAIL PROTECTED]
> > Sent: 14 May 2004 11:09
> > To: Struts Users Mailing List
> > Subject: RE: java.lang.OutOfMemoryError after server app start/stop
> > cyclin g
> >
> >
> > Type java -X in a windows shell and look at setting some of the below
> > options in your environment using JAVA_OPTS
> >
> >  -Xms<size>        set initial Java heap size
> >  -Xmx<size>        set maximum Java heap size
> >  -Xss<size>        set java thread stack size
> >
> > I alse use this to allocate more memory to ant at build time for a large
> > application. 'set ANT_OPTS=-Xmx512m' (in a .bat) or pop it in your
> > environment profile.
> >
> > Chris McCormack
> >
> > -----Original Message-----
> > From: Daniel Perry [mailto:[EMAIL PROTECTED]
> > Sent: 14 May 2004 10:54
> > To: Struts Users Mailing List
> > Subject: RE: java.lang.OutOfMemoryError after server app start/stop
> > cyclin g
> >
> >
> > I'm using jdk1.4.2_04, and it still happens!
> >
> > Here are some of my observations on the issue:
> >
> > 1. I did once develop some software using servlets/jsps. I never came
> > accross this problem.  However, as jsps are automatically releaded, and
> > this app was mainly jsp based, i dont remeber doing any restarting :)
> >
> > 2. running a memory intensive / complex app, it runs out of memory a lot
> > quicker :)
> >
> > 3. If i run the stopapp and startapp ant tasks in a loop it runs out of
> > memory with my struts app pretty quickly.  Doing the same thing to axis
> > takes a lot longer.
> >
> > So, i figure its not restricted to struts.
> >
> > Anyway, still cant figure out how to increase max memory if it's running
> as
> > a windows service?
> >
> > Daniel.
> >
> >
> >
> >
> > -----Original Message-----
> > From: Jignesh Patel [mailto:[EMAIL PROTECTED]
> > Sent: 14 May 2004 04:45
> > To: Struts Users Mailing List; Heinle, Chuck
> > Subject: Re: java.lang.OutOfMemoryError after server app start/stop
> > cyclin g
> >
> >
> > As per my knowledge the bug of OutOfMemory is related to version less then
> > jdk1.4. It has been solved in the 1.4.
> >
> > -Jignesh
> >
> > On Thursday 13 May 2004 23:30, Heinle, Chuck wrote:
> > > We have a similar problem with WebLogic 8.1 SP2...I was told by an
> > > associate that there is a 1.4.2_02 bug related class loading that might
> > > associated with the OutOfMemory.
> > >
> > > -----Original Message-----
> > > From: Joe Germuska [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, May 13, 2004 1:52 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: java.lang.OutOfMemoryError after server app start/stop
> > > cycling
> > >
> > > At 6:07 PM +0100 5/13/04, Daniel Perry wrote:
> > > >Putting up the maximum memory Xmx does help as it gives it more memory
> > > > to use up, but only delays the inevitable :)
> > > >
> > > >Is this a struts issue? or does it happen with all tomcat apps?
> > >
> > > It happens with every servlet container I've used.  My understanding
> > > is that to redeploy a webapp, app servers generally discard the
> > > classloader they have been using and make a new one.  For various
> > > reasons, this can leave orphan objects which are never garbage
> > > collected.  If enough of these accumulate, you run out of memory.
> > >
> > > Admittedly, I use Struts in all these cases, you might argue that
> > > it's a Struts issue, since that's the common feature, but I can't
> > > think of anyways Struts is being particularly careless in a way that
> > > would aggravate this problem.
> > >
> > > I may have a completely wrong understanding of the problem too, but
> > > this is how we explain it to ourselves around here!
> > >
> > > Joe
> 
> -- 
> Jignesh Patel
> Project Leader
> ____________________________________________________________
> Bang Software Technolgy Pvt. Ltd.
> 
>  
>  (E) [EMAIL PROTECTED]
> 
>  (T) 091 484 3942132
> 
> 
>  B-4, Smart Business Centre,
>  Infopark, SDF IT Building,
>  Kusumagiri P.O.,Kakkanad,
>  Kochi - 682030,
>  Kerala,
>  India.

-- 
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech       <http://www.dotech.com/>

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

Reply via email to