[jboss-dev-forums] [Design of JBoss Profiler] - Re: JBoss Profiler Quick Start

jigu888 do-not-reply at jboss.com
Mon Dec 10 17:15:08 EST 2007


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



More information about the jboss-dev-forums mailing list