You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/10/13 16:58:54 UTC
DO NOT REPLY [Bug 37078] New: -
JULI, Remote, JMX
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37078>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37078
Summary: JULI, Remote, JMX
Product: Tomcat 5
Version: Unknown
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: sdavids@gmx.de
I'm not sure if this is a known bug, a misconfiguration on my part or a "feature".
I use java.util.logging. I want to be able to change the Logger levels remotely
via JMX (JConsole).
As it seems one cannot use JULI and use the LoggingMXBean successfully at the
same time.
One can either set the Logger level remotely but not the Handler level (without
JULI) or one can set the Handler level but not the Logger level remotely (with
JULI).
To clarify: I do *not* want to change the handler levels remotely -- just the
Logger levels.
Example: Set Handler to FINE at deploy time and tune Logger level remotely via
JMX at runtime.
Use the attached files for the steps below.
@@ Without JULI - can set Logger level but not Handler level @@
Start Tomcat 5.5.12 with:
"-server -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8081
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false"
Open your browser and invoke the servlet; it's output:
Manager: null
Remote: true
Manager Class: class java.util.logging.LogManager
Logger through manager: true
Logger through bean: true
Logger level: null
Run CommandLineManagementConsole (or use JConsole and check if LoggerNames
contains "de.LogTestServlet"); it's output:
Logger through remote connection: true
@@ with JULI - can set Handler level but not Logger level @
Start Tomcat 5.5.12 with:
"-server -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8081
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
Open your browser and invoke the servlet; it's output:
Manager: org.apache.juli.ClassLoaderLogManager
Remote: true
Manager Class: class org.apache.juli.ClassLoaderLogManager
Logger through manager: true
Logger through bean: true
Logger level: FINE
Run CommandLineManagementConsole (or use JConsole and check if LoggerNames
contains "de.LogTestServlet"); it's output:
Logger through remote connection: false
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org