May i noe this memory leak problem occurs at which OS? or is it just linux?

-----Original Message-----
From: Chris Newland [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 11:51 PM
To: Tomcat Users List
Subject: RE: 100% cpu on one of two processor


Hi,

There is a known memory leak in javac (used to compile the JSP pages). This
could be causing your Java VM to use up nearly all of its memory and start
to perform heavy garbage collection.

If you use the -Xms and -Xmx JVM switches (to set the initial and maximum
heap sizes respectively) then your server should run for longer but will
eventually run out of memory if it is compiling a lot of JSPs. I think it is
possible to use a different compiler (such as Jikes or Pizza).

e.g.

java -Xms64M -Xmx256M <classname>
(or as much memory as you want to allocate)

You can set the Tomcat JVM sizes using (in catalina.sh) (this is for Tomcat
4)
CATALINA_OPTS=" -Xms64M -Xmx256M"

Hope this helps,

Best Regards,

Chris Newland


> -----Original Message-----
> From: Guillaume Radenkovic [mailto:[EMAIL PROTECTED]]
> Sent: 14 March 2002 15:36
> To: [EMAIL PROTECTED]
> Subject: 100% cpu on one of two processor
>
>
> My configuration :
>
> Linux Redhat 7.1
> Tomcat 3.2.4
> PostgreSQL 7.0.x
>
> Sometimes, after some time, when JSP compiles on the server, this
> on can't
> display the page and on of the two cpu going to 100%.
> This happens on any JSP page .
>
> Need help !
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to