[Design of JBoss Profiler] - Re: JBoss Profiler Quick Start
by jigu888
Hi,
I am new to JBoss Profiler. Please help me to setup it within JBoss Application Server.
I am using jboss-4.0.5.GA. The output of 'java -version' command is :
----------------
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
----------------
The operating system is Windows Server 2003.
I am using jboss-profiler-1.0.CR4(2).
I have setup it as follows:
1. Copied jbossInspector.dll to C:\Windows\System32
2. Copied jboss-profiler.war, jboss-profiler-jvmti.sar and jboss-profiler-noAOP.sar to %JBOSS_HOME%\server\default\deploy directory
3. Edited run.bat file and appended following to JAVA_OPTS:
-XrunjbossInspector:%JBOSS_HOME%/server/default/tmp/profiler,memory=true,tracer=true
4. Created profiler directory under tmp folder for above step.
When I started the jboss service by double clicking the run.bat file, I got following exception:
----------------
2007-12-11 03:25:39,619 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, create step: url file:/D:/JBoss/jboss-4.0.5.GA/server/default/deploy/jboss-profiler-jvmti.sar
2007-12-11 03:25:39,619 DEBUG [org.jboss.deployment.SARDeployer] Registering service UCL=jmx.loading:UCL=8f2ca6
2007-12-11 03:25:39,619 DEBUG [org.jboss.system.ServiceCreator] About to create xmbean object: jboss.profiler:mbean=JVMTIClass with code: org.jboss.profiler.jvmti.JVMTIInterface with descriptor: META-INF/jvmti-xmbean.xml
2007-12-11 03:25:39,650 ERROR [org.jboss.profiler.jvmti.JVMTIInterface] The DLL couldn't be loaded, you won't be able to use any JVMTIInterface feature
java.lang.UnsatisfiedLinkError: no jbossAgent in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at org.jboss.profiler.jvmti.JVMTIInterface.(JVMTIInterface.java:65)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
.....
.....
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:490)
at java.lang.Thread.run(Thread.java:595)
2007-12-11 03:25:39,806 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss.profiler:mbean=JVMTIClass
2007-12-11 03:25:39,806 DEBUG [org.jboss.system.ServiceController] Creating service jboss.profiler:mbean=JVMTIClass
----------------
Am I missing something? Please help me.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111769#4111769
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111769
18 years, 4 months
[Design of JMX on JBoss (JBoss/JMX)] - Re: Updating the logging framework(JBAS-2412)
by david.lloyd@jboss.com
So this discussion pretty much fizzled. Since I've been bitten by this issue yet again, I thought I'd opine a bit.
First point. The decision to use JDK logging or log4j on the backend should have ZERO impact on the user. A user should be able to use EITHER of these frameworks from their software, and the log messages should be categorized and filtered in the expected way. No, relying on the System.out/err capture facility is NOT adequate.
Second point. Due to the above point, switching to JDK logging should NOT mean that log4j support would cease to exist (and vice versa) - just that log4j log messages get mapped to JDK loggers. So application developers who use log4j should not have to stop using log4j.
Third point. JBAS 4.2.x still does not support JDK logging in ANY way out of the box. Booooo.
Fourth point. Framework developers (specifically, those at jboss.org) would be well advised to stick to using ONLY JDK logging. The reason for this is simple: using 3 or 4 frameworks that each require different logging frameworks means that the end user now also has a number of logging frameworks to track down and deliver with their product. Case in point: Remoting 3 as of now requires both slf4j AND log4j, and it doesn't even use either one of these (it uses JDK logging)! If framework developers use ONLY JDK logging, the end user will have a much easier time integrating the framework.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111766#4111766
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111766
18 years, 4 months