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

> From: Bill Davidson <bill...@gmail.com>
> To: Tomcat Users List <users@tomcat.apache.org>
> Cc: 
> Sent: Wednesday, August 10, 2011 1:59 PM
> Subject: "-d64" disappears from command line in "ps" output?
> 
> RedHat 5.6 64-bit
> "java -version" output:
>     java version "1.6.0_20"
>     Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
>     Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
> Tomcat: 6.0.26
> 
> The "-d64" option seems to be removed from the "ps" command 
> line arguments:
> 
> I added a "set -x" to $CATALINA_HOME/bin/catalina.sh so that I could 
> see the actual java invocation:
> 
> + /path/to/jdk1.6.0_20/bin/java 
> -Djava.util.logging.config.file=/path/to/logging.properties -d64 -Xms3072m 
> -Xmx3072m (...various app specific -D options...) -Djava.awt.headless=true 
> -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
> -Djava.endorsed.dirs=/path/to/apache-tomcat-6.0.26/endorsed -classpath 
> /path/to/apache-tomcat-6.0.26/bin/bootstrap.jar 
> -Dcatalina.base=/path/to/tomcat 
> -Dcatalina.home=/path/to/apache-tomcat-6.0.26 
> -Djava.io.tmpdir=/path/to/tomcat/temp org.apache.catalina.startup.Bootstrap 
> start
> 
> When I do a "ps aux" I see this:
> 
> /path/to/jdk1.6.0_20/bin/java 
> -Djava.util.logging.config.file=/path/to/logging.properties -Xms3072m 
> -Xmx3072m 
> (...various app specific -D options...) -Djava.awt.headless=true 
> -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
> -Djava.endorsed.dirs=/path/to/apache-tomcat-6.0.26/endorsed -classpath 
> /path/to/apache-tomcat-6.0.26/bin/bootstrap.jar 
> -Dcatalina.base=/path/to/tomcat 
> -Dcatalina.home=/path/to/apache-tomcat-6.0.26 
> -Djava.io.tmpdir=/path/to/tomcat/temp org.apache.catalina.startup.Bootstrap 
> start
> 
> Where did the "-d64" option go?
> 
> I'm pretty sure that this is OK and that the JVM just modified its argument 
> line
> while using the 64 bit memory model but it still makes me slightly nervous.


I'm guessing that when you run java -version from the command line, you're 
using the JRE.

Notice that when you run Tomcat, you're running the java binary from the JDK.

Check your settings for JDK_HOME and JRE_HOME. I'm guessing that you have 
JDK_HOME properly set (to point to the JDK), and your JRE_HOME is not set.

Set your JRE_HOME to point to the installation of your JRE, and see what you 
get.

. . . . just my two cents.
/mde/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to