[opencms-dev] java.lang.OutofMemoryError ( when Deleting aproject)

Hans van der Linden hans at iblinden.nl
Wed Dec 29 16:10:35 CET 2004


Since you are using tomcat 4 try the following:

run tomcat as application with the following command:

I have tomcat in d:\programs so you have to change that !!

C:\j2sdk1.4.2_06\bin\java.exe -ms64M -mx512M -jar -Dfile.encoding=ISO-8859-1 -Duser.dir="d:\programs\Tomcat 4.1" "d:\programs\Tomcat
4.1\bin\bootstrap.jar" start

If this works you can add it to you service configuration

Hans





-----Oorspronkelijk bericht-----
Van: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]Namens aravind kumar
Verzonden: woensdag 29 december 2004 15:55
Aan: The OpenCms mailing list
Onderwerp: RE: [opencms-dev] java.lang.OutofMemoryError ( when Deleting
aproject)



 I tried both things
 Still I am getting this error.

 when i go to my command prompt and gave set

 I got this so I think I set the env variable
correctly.

HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\aravindk
JAVA_HOME=C:\j2sdk1.4.2_06
JAVA_OPT=-Xms128m -Xmx512m

thanks
arvind
--- Hans van der Linden <hans at iblinden.nl> wrote:

> So indeed it must be the other way around !!!
>
> -----Oorspronkelijk bericht-----
> Van: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org]Namens John
> Giammarche
> Verzonden: woensdag 29 december 2004 15:34
> Aan: The OpenCms mailing list
> Onderwerp: RE: [opencms-dev]
> java.lang.OutofMemoryError ( when Deleting
> aproject)
>
>
> >>>-Xms512m -Xmx128m
>
> Shouldn't it be -Xms128m -Xmx512m ? (Initial/Max,
> being Max > Initial).
>
> Greetings,
>
> John
>
>
>
> --- Hans van der Linden <hans at iblinden.nl> wrote:
>
> > Steve,
> >
> > I have tomcat 5 running as a service with the
> > solution below. I works for me but your solution
> is
> > more elegant since it only effects
> > tomcat and no other java depended software on you
> > system.
> >
> > Hans
> >
> >
> >
> > -----Oorspronkelijk bericht-----
> > Van: opencms-dev-bounces at opencms.org
> > [mailto:opencms-dev-bounces at opencms.org]Namens
> Steve
> > Verzonden: woensdag 29 december 2004 15:08
> > Aan: 'The OpenCms mailing list'
> > Onderwerp: RE: [opencms-dev]
> > java.lang.OutofMemoryError ( when Deleting
> > aproject)
> >
> >
> > Hi Aravind, Hans,
> >
> > Hope you don't mind me poking my nose in, but I
> > believe the suggested
> > solution will only work if Tomcat is NOT running
> as
> > a Windows SERVICE.
> >
> > If it is installed as a SERVICE it will not read
> > YOUR environment on
> > startup and you must pass these to the jvm
> directly.
> >  You will need to
> > uninstall the service (NOT uninstall Tomcat) and
> > re-install with the
> > options being passed as parameters.
> >
> > Below is my example with Tomcat 5:-
> >
> > tomcat -uninstall "Apache Tomcat 5.0"
> >
> > tomcat -install "Apache Tomcat 5.0"
> > %JAVA_HOME%\jre\bin\server\jvm.dll
> >
>
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tool
> > s.jar -Dcatalina.home=%CATALINA_HOME%
> > %CATALINA_OPTS%
> > -Dfile.encoding=ISO-8859-1 -Xrs -Xms512m -Xmx128m
> > -start
> > org.apache.catalina.startup.Bootstrap -params
> start
> > -stop
> > org.apache.catalina.startup.Bootstrap -params stop
> > -out
> > %CATALINA_HOME%\logs\stdout.log -err
> > %CATALINA_HOME%\logs\stderr.log
> >
> > Hope this helps.
> >
> > Steve,
> > REDPlanet Technologies Ltd
> >
> > -----Original Message-----
> > From: opencms-dev-bounces at opencms.org
> > [mailto:opencms-dev-bounces at opencms.org] On Behalf
> > Of Hans van der
> > Linden
> > Sent: 29 December 2004 13:30
> > To: The OpenCms mailing list
> > Subject: RE: [opencms-dev]
> > java.lang.OutofMemoryError ( when Deleting
> > aproject)
> >
> > oke
> >
> > than you can add JAVA_OPT as an environment
> variable
> > to your system
> > (just like the fameous PATH variable) go to the
> > properties of
> > "my computer"
> >
> > Hans
> >
> > -----Oorspronkelijk bericht-----
> > Van: opencms-dev-bounces at opencms.org
> > [mailto:opencms-dev-bounces at opencms.org]Namens
> > aravind kumar
> > Verzonden: woensdag 29 december 2004 13:03
> > Aan: The OpenCms mailing list
> > Onderwerp: RE: [opencms-dev]
> > java.lang.OutofMemoryError ( when Deleting
> > aproject)
> >
> >
> >
> >  I am running tomcat 4.1.3
> >
> >  on windows xp machine.
> >
> >  thanks
> > aravind
> >
> >
> > --- Hans van der Linden <hans at iblinden.nl> wrote:
> >
> > > Are you using windows ?, linux ? ocms version?
> > > tomcat version?
> > >
> > > -----Oorspronkelijk bericht-----
> > > Van: opencms-dev-bounces at opencms.org
> > > [mailto:opencms-dev-bounces at opencms.org]Namens
> > > aravind kumar
> > > Verzonden: woensdag 29 december 2004 12:49
> > > Aan: The OpenCms mailing list
> > > Onderwerp: RE: [opencms-dev]
> > > java.lang.OutofMemoryError ( when Deleting
> > > aproject )
> > >
> > >
> > >
> > >  Hi Hans,
> > >
> > >  great where should i set this option
> > >
> > >  explain bit more like where i should i give
> this.
> > >
> > >  thanks
> > > arvind
> > >
> > > --- Hans van der Linden <hans at iblinden.nl>
> wrote:
> > >
> > > > Hi
> > > >
> > > > Did you upsize the heap space of the JVM try:
> > > >
> > > > set JAVA_OPT=-Xms512m -Xmx128m
> > > >
> > > > Hans
> > > >
> > > >
> > > > -----Oorspronkelijk bericht-----
> > > > Van: opencms-dev-bounces at opencms.org
> > > > [mailto:opencms-dev-bounces at opencms.org]Namens
> > > > aravind kumar
> > > > Verzonden: woensdag 29 december 2004 9:43
> > > > Aan: opencms-dev at opencms.org
> > > > Onderwerp: [opencms-dev]
> > > java.lang.OutofMemoryError
> > > > ( when Deleting a
> > > > project )
> > > >
> > > >
> > > >
> > > > Hi all,
> > > >
> > > >  I tried to delete a big project.
> > > >
> > > >  then it gave me this error on my tomcat
> server
> > > > window.
> > > >
> > > >  what could be the problem.?
> > > >
> > > >  The project is having many files. so how to
> > > delete
> > > > this project now.
> > > >
> > > >  thanks
>
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list