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*

Reply via email to