davidghedini.com

http://davidghedini.com/pg/category/General

 

JBoss .

http://davidghedini.com/pg/category/JBoss

mostra anche come settare JAva_OPTS rifernedosi a valori gia settati


tomcaT E TOMEE

http://www.davidghedini.com/pg/category/Tomcat

http://www.coderanch.com/t/625114/Tomcat/JAVA-OPTS-Variable-Handling-Environment


 

set JAVA_OPTS

Tomcat itself does not, but its startup scripts (catalina.bat / catalina.sh) do; they insert value of JAVA_OPTS env var into the command line that starts up Tomcat.
If JAVA_OPTS has a value like

(into linux s.o)

JAVA_OPTS=”-Doption1=value1 -Doption2=value2…”
or into windows
JAVA_OPTS=-Doption1=value1 -Doption2=value2…


getEnv() will show the env var value as “-Doption1=value1 -Doption2=value2…”
while getProperty() will return the correct value for each key.

———————————————————–

from mkyong web site:

for linux:

Create a setenv.sh manually, and put it into the ${tomcat-folder}\bin\ folder.

${tomcat-folder}\bin\setenv.sh
export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xms128m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=256m"

 

P.S With double quotes, export JAVA_OPTS=”{value}”.

Restart Tomcat.

 

For windows:

create the setenv.bat

 

${tomcat-folder}\bin\setenv.bat
set JAVA_OPTS=-Dfile.encoding=UTF-8 -Xms128m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=256m

P.S No double quotes, set JAVA_OPTS={value}.

2.2 Restart Tomcat, it will call the setenv.bat file to set the environment variable automatically.

{$tomcat-folder}\bin\catalina.bat restart

—————————–

 

 

http://stackoverflow.com/questions/14926260/multiline-java-opts-in-setenv-sh

http://www.mkyong.com/tomcat/tomcat-javalangoutofmemoryerror-permgen-space/

http://serverfault.com/questions/79641/how-can-i-configure-tomcat-java-options-in-a-config-file

 

 

 


 

GLASSFISH

 

http://davidghedini.com/pg/category/GlassFish

 

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: