To both :
Do not guess.
Read the start of the "bin/catalina.sh" script (Linux) or the "bin/catalina.bat" script
(Windows).
It explains the difference between JAVA_OPTS and CATALINA_OPTS.
It also recommends that you should not modify either catalina.sh/bat or startup.bat/sh or
shutdown.bat/sh, but should define these options in a bin/setenv.bat/sh file, that you
create if it is not there yet.
This "bin/setenv.sh/bat" file, if it exists, is called and executed *before* the JVM that
starts (or stops) Tomcat is started, and thus these options will be set in time to be
active when the JVM runs.
The reason not to modify the above files, is that they will be overwritten if you update
(or re-install) your Tomcat, and thus your changes would be lost in that case.
An exception to the above, is if you run Tomcat as a Service under Windows.
Then you should set the Java options using the "tomcatw.exe" GUI interface to the
Java/Tomcat settings.
See here : http://wiki.apache.org/tomcat/FAQ/Windows#Q11
On 24.05.2016 23:13, Edwin Quijada wrote:
I didnt want to put on startup script because it is not correct I read this
________________________________________
From: Niranjan Babu Bommu <niranjan.bo...@gmail.com>
Sent: Tuesday, May 24, 2016 8:36 PM
To: Tomcat Users List
Subject: Re: Problem with monitoring with JMX
can you try putting config in startup script?
CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC"
CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=9999 \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false "
I'm guessing when you set this in setenv.sh, this may not able to find all
the classes.
On Tue, May 24, 2016 at 4:31 PM, Niranjan Babu Bommu <
niranjan.bo...@gmail.com> wrote:
make sense, if you are not using shared apps better to use CATALINA_OPTS..
On Tue, May 24, 2016 at 4:07 PM, Edwin Quijada <listas_quij...@hotmail.com
wrote:
I read that is better use CATALINA_OPTS instead of JAVA_OPTS
________________________________________
From: Niranjan Babu Bommu <niranjan.bo...@gmail.com>
Sent: Tuesday, May 24, 2016 7:44 PM
To: Tomcat Users List
Subject: Re: Problem with monitoring with JMX
I think this would be JAVA_OPTS.
CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC"
On Tue, May 24, 2016 at 2:50 PM, Edwin Quijada <
listas_quij...@hotmail.com>
wrote:
Hi!
I am trying to monitor my Tomcat server using JMX remote when I
configure
the JMX protocol when I try to start Tomcat I get this
Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.util.logging.LogManager$1.run(LogManager.java:195)
at java.util.logging.LogManager$1.run(LogManager.java:181)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:181)
at java.util.logging.Logger.demandLogger(Logger.java:448)
at java.util.logging.Logger.getLogger(Logger.java:502)
at
com.sun.jmx.remote.util.ClassLogger.<init>(ClassLogger.java:55)
at
sun.management.jmxremote.ConnectorBootstrap.<clinit>(ConnectorBootstrap.java:814)
at sun.management.Agent.startAgent(Agent.java:257)
at sun.management.Agent.startAgent(Agent.java:447)
Can't load log handler "1catalina.org.apache.juli.AsyncFileHandler"
java.lang.ClassNotFoundException:
1catalina.org.apache.juli.AsyncFileHandler
java.lang.ClassNotFoundException:
1catalina.org.apache.juli.AsyncFileHandler
and to the bottom I get errror :
Error: Password file not found:
/usr/lib/jvm/java-8-oracle/jre/lib/management/jmxremote.password
but my config doesnt use password
This is my setenv.sh
CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC"
CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=9999 \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false "
When I put off this configuration everything is fine and Tomcat can
startup
Any cluees?>
#-Dcom.sun.management.jmxremote.password.file=../conf/jmxremote.password \
#-Dcom.sun.management.jmxremote.access.file=../conf/jmxremote.access"
--
*Thanks*
*Niranjan*
*+1 781.956.6900*
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
--
*Thanks*
*Niranjan*
*+1 781.956.6900 <%2B1%20781.956.6900>*
--
*Thanks*
*Niranjan*
*+1 781.956.6900*
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org