Olá Eduardo,

 

Surgiu uma duvida parecida na lista SERVLET-LIST.  

 

Julio Cesar

 

here is an example of what you could do.  It depends on the current parameter of the JVM of course:

1.      Go to local machine>system>current control set>services>Apache Tomcat>Parameters

2.      Change JVM Option Count from 2 to 4

3.      Change JVM Option Number 0 to 2

4.      Change JVM Option Number1 to 3

5.      Create string value JVM Number 0 with value of -Xms768m

6.      Create string value JVM Number 1 with value of -Xms768m

-----Original Message-----
From: Yedil Workeneh [mailto:[EMAIL PROTECTED]]
Sent:
Tuesday, November 26, 2002 1:08 PM
To: [EMAIL PROTECTED]
Subject: Re: java.lang.OutOfMemoryError

Go into the registry where Tomcat is running and increase the memory of the JVM

-----Original Message-----
From: Anders Jørvad (RWDK) [mailto:[EMAIL PROTECTED]]
Sent:
Tuesday, November 26, 2002 3:26 AM
To: [EMAIL PROTECTED]
Subject: java.lang.OutOfMemoryError

Hi everyone,

 

I have som problems with af servlet that is running on Apache Tomcat 4.0

when i run the servlet more then 2-3 times i get an java.lang.OutOfMemoryError

 

How can i fix this problem?

 

Thanx for your time.

 

Best regards

 

Anders Joervad

 

 

-----Mensagem original-----
De: Departamento de Informática - C//C [mailto:[EMAIL PROTECTED]]
Enviada em: quarta-feira, 27 de novembro de 2002 10:59
Para: enterprise-list@soujava.org.br
Cc: java-list@soujava.org.br
Assunto: [java-list] Fw: [enterprise-list] JSP e OutOfMemoryError

 

Pessoal,

 

Desculpem a insistência, mas é que preciso mesmo resolver este problema. Agradeço antecipadamente,

 

Eduardo

Cheque Cash

Depto. Informática

São Paulo - SP

 

----- Original Message -----

Sent: Monday, November 25, 2002 4:47 PM

Subject: [enterprise-list] JSP e OutOfMemoryError

 

Pessoal,

 

Tenho um problema no desenvolvimento de páginas JSP utilizando o Jakarta Tomcat 4.0. O servidor cai após a atualização de qualquer classe e de vez em quando após a atualização de páginas JSP. Quando uma classe é atualizada, o erro retornado é o seguinte:

 

java.lang.OutOfMemoryError

E quando uma página JSP é atualizada, o erro retornado é este ( a página JSP nem foi compilada ):

 

org.apache.jasper.JasperException: Unable to compile class for JSPThe compiler has run out of memory.  Consider using the "-J-mx" command line option to increase the maximum heap size.

Estamos rodando o Jakarta no Windows 2000, num servidor com 256 MB de RAM. A JVM acusa que ela só pode alocar no máximo 64 MB e quando o servidor cai, destes 64 MB, só estão +/- uns 700 KB livres.


Alguém já teve este problema e conseguiu resolver? Onde utilizar os argumentos sugeridos pelo Jakarta ( -J-mx ) para aumentar o heap?

 

Desde já agradeço,

 

Eduardo

 

Depto. Informática

Cheque Cash

São Paulo - SP


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.422 / Virus Database: 237 - Release Date: 20/11/2002


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.422 / Virus Database: 237 - Release Date: 20/11/2002

Responder a