Re: Problem with monitoring with JMX

2016-05-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

André,

On 5/24/16 5:54 PM, André Warnier (tomcat) wrote:
> To both :
> 
> Do not guess.

Agreed. You should also 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

OP is clearly using Tomcat on *NIX. He's also already using setenv.sh
for this purpose, exactly as he's supposed to be doing.

This thread is all over the place with no help give so far :(

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAldFsHUACgkQ9CaO5/Lv0PBjKACgjQj9UpPqPt2X2PwKuDddnvHT
gAMAniO4Uh9K4Jv/Ttq11EjQdrbZI/G2
=ZWwH
-END PGP SIGNATURE-

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



Re: Problem with monitoring with JMX

2016-05-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Edwin,

On 5/24/16 6:08 PM, Edwin Quijada wrote:
> Tomcat 8.0.33 Java 1.8 Debian 8

Stop Tomcat, change setenv.sh back to use CATALINA_OPTS, and re-launch
Tomcat.

What is the (sanitized?) command-line you get for the running JVM that
results?

Usually, "cannot find class" means that some system property has been
broken enough to cause the command-line to get all fouled up.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAldFrxgACgkQ9CaO5/Lv0PCYqgCfXTHwjECbO+1GBve+Y2D5gtf8
VCwAnjEIdQColxI54w7WNtWBDryT+z2d
=+Lsb
-END PGP SIGNATURE-

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



Re: Problem with monitoring with JMX

2016-05-24 Thread Edwin Quijada
Tomcat 8.0.33
Java 1.8
Debian 8


From: Christopher Schultz <ch...@christopherschultz.net>
Sent: Tuesday, May 24, 2016 9:45 PM
To: Tomcat Users List
Subject: Re: Problem with monitoring with JMX

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Edwin,

On 5/24/16 5:03 PM, Edwin Quijada wrote:
> What are shared apps? I use JAVA_OPTS and it works ! But now I dont
> know if it is correct

CATALINA_OPTS should be the right one. JAVA_OPTS is used for multiple
tools, and will configure every JVM you launch (even for e.g.
"shutdown"). CATALINA_OPTS will only apply to launching a new Tomcat
instance.

What version of Tomcat are you running?

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAldEy1wACgkQ9CaO5/Lv0PDkNgCgjI0dHLZCK6VXLr5srg6x6n+W
67YAn0qnSobJoRbVZGiGrKVNgG5ALHHL
=Vd0p
-END PGP SIGNATURE-

-
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



Re: Problem with monitoring with JMX

2016-05-24 Thread tomcat

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= \
-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.(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.(ClassLogger.java:55)

 at


sun.management.jmxremote.ConnectorBootstrap.(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= \
-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*

---

Re: Problem with monitoring with JMX

2016-05-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Edwin,

On 5/24/16 5:03 PM, Edwin Quijada wrote:
> What are shared apps? I use JAVA_OPTS and it works ! But now I dont
> know if it is correct

CATALINA_OPTS should be the right one. JAVA_OPTS is used for multiple
tools, and will configure every JVM you launch (even for e.g.
"shutdown"). CATALINA_OPTS will only apply to launching a new Tomcat
instance.

What version of Tomcat are you running?

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAldEy1wACgkQ9CaO5/Lv0PDkNgCgjI0dHLZCK6VXLr5srg6x6n+W
67YAn0qnSobJoRbVZGiGrKVNgG5ALHHL
=Vd0p
-END PGP SIGNATURE-

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



Re: Problem with monitoring with JMX

2016-05-24 Thread Edwin Quijada
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= \
-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.(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.(ClassLogger.java:55)
>> > at
>> >
>> sun.management.jmxremote.ConnectorBootstrap.(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= \
>> > -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



Re: Problem with monitoring with JMX

2016-05-24 Thread Edwin Quijada
What are shared apps? 
I use JAVA_OPTS and it works ! But now I dont know if it is correct 


From: Niranjan Babu Bommu <niranjan.bo...@gmail.com>
Sent: Tuesday, May 24, 2016 8:31 PM
To: Tomcat Users List
Subject: Re: Problem with monitoring with JMX

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.(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.(ClassLogger.java:55)
> > at
> >
> sun.management.jmxremote.ConnectorBootstrap.(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= \
> > -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*

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



Re: Problem with monitoring with JMX

2016-05-24 Thread Niranjan Babu Bommu
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= \
-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.(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.(ClassLogger.java:55)
>> > at
>> >
>> sun.management.jmxremote.ConnectorBootstrap.(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= \
>> > -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*


Re: Problem with monitoring with JMX

2016-05-24 Thread Niranjan Babu Bommu
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.(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.(ClassLogger.java:55)
> > at
> >
> sun.management.jmxremote.ConnectorBootstrap.(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= \
> > -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*


Re: Problem with monitoring with JMX

2016-05-24 Thread Edwin Quijada
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.(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.(ClassLogger.java:55)
> at
> sun.management.jmxremote.ConnectorBootstrap.(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= \
> -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



Re: Problem with monitoring with JMX

2016-05-24 Thread Niranjan Babu Bommu
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 
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.(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.(ClassLogger.java:55)
> at
> sun.management.jmxremote.ConnectorBootstrap.(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= \
> -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*