opa!
Estou usando o eclipse galileo, nele uso o tomcat 6.0.18, como posso fazer para aumentar a memória do tomcat?
Não é clichê, mas vi alguns tópicos dizendo, Window->Preferences->Tomcat->JVM Settings
mas não tem a opção tomcat em preferences
abraço
clique duplo no servidor (na aba servers), clique em open launch configuration (na área general information), clique na aba arguments e configure a memória no campo vm arguments.
ctdaa
Novembro 23, 2009, 4:19pm
#3
olá, esta configuração é feita diretamente no start-up do tomcat. Para saber qual o diretório do tomcat que seu eclipse está usando vá em: Windows -> Preferences -> Server -> Runtime Environments, selecione o Tomcat e clique no botão , olhe o “tomcat instalation directory” . Vá até esta pasta e entre no diretório “bin” e altere o seu arquivo catalina.bat (windows) ou catalina.sh (linux), conforme orientações abaixo:
When your web application is using large memory as this memory size default setting can be too small, 64MB by default,thus the application becomes slower because the garbage collector is invoked more often, and it can even run out of memory (outofmemory / heap space error ). One way to address this problem is to set a larger heap size . In Windows system, this can be done by editing / adding JAVA_OPTS variable (should be early in the file) in CATALINA_HOME/bin/catalina.bat or catalina.sh for Linux/Unix systems.Parameters to be added are , let say you want to increase it to 256 MB (as you required but make sure you have enough amount of physical memory/RAM and for 32bit system , use no more than 1-1.1 GB heap space size ) , use ‘-Xms256m -Xmx256m’ .In some cases , it is better to set slightly lower size for -Xms . There are other parameters can be added , some of them :’-XX:MaxNewSize -XX:NewSize -XX:MaxPermSize’ , depending on your application and requirements .
For catalina.bat there now should be a line in the file that looks like this: set JAVA_OPTS=-Xms256m -Xmx256m
For catalina.sh : JAVA_OPTS=’-Xms256m -Xmx256m’
wbdsjunior
onde devo por a memória, tenho as variaveis abaixo
[quote=ctdaa]olá, esta configuração é feita diretamente no start-up do tomcat. Para saber qual o diretório do tomcat que seu
[/quote]
coloquei isso daqui, esta correto
aparentemente não deu erto
mas já consegui resolver, graças a um amigo
coloquei como o wbdsjunior disse a opção -Xmx512M no vm args
valeu
No meu deu certo, ta funcionando perfeito !
set JAVA_OPTS=-Xms512m -Xmx512m
Estou com a ver DOS. fui na pasta …/bin
editei o arquivo setclasspath.bat
acrescentei a linha set JAVA_OPTS=-Xms512m -Xmx512m
Obg galera
:lol: