New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need help to use it in the apache karaf/service mix enviroments #29
Comments
Hi, would you share your command line running with the jvm profiler, and the full error stacktrace? |
Hi Sorry for the late response. Below are the details.
org.osgi.framework.bootdelegation org.apache.xml.serialize, \ ( existing/default last entry)
javagent="/home/apache-servicemix-7.0.1/lib/boot/jvm-profiler-1.0.0.jar=reporter=com.uber.profiling.reporters.ConsoleOutputReporter,tag=mytag,metricInterval=5000, below is the stack trace. servicemix: JAVA_HOME not set; results may vary Karaf started in 3s. Bundle stats: 225 active, 225 total / | ___ _ ____ () ___ | / () __ Apache ServiceMix (7.0.1) Hit '' for a list of available commands karaf@root>ConsoleOutputReporter - CpuAndMemory: {"nonHeapMemoryTotalUsed":7.266932E7,"bufferPools":[{"totalCapacity":40960,"name":"direct","count":8,"memoryUsed":40960},{"totalCapacity":0,"name":"mapped","count":0,"memoryUsed":0}],"heapMemoryTotalUsed":1.070836E8,"vmRSS":398389248,"epochMillis":1544192651355,"nonHeapMemoryCommitted":8.1199104E7,"heapMemoryCommitted":2.79445504E8,"memoryPools":[{"peakUsageMax":251658240,"usageMax":251658240,"peakUsageUsed":17902144,"name":"Code Cache","peakUsageCommitted":18284544,"usageUsed":17077120,"type":"Non-heap memory","usageCommitted":18284544},{"peakUsageMax":-1,"usageMax":-1,"peakUsageUsed":49610440,"name":"Metaspace","peakUsageCommitted":55181312,"usageUsed":49610440,"type":"Non-heap memory","usageCommitted":55181312},{"peakUsageMax":1073741824,"usageMax":1073741824,"peakUsageUsed":5981760,"name":"Compressed Class Space","peakUsageCommitted":7733248,"usageUsed":5981760,"type":"Non-heap memory","usageCommitted":7733248},{"peakUsageMax":168296448,"usageMax":143130624,"peakUsageUsed":145227776,"name":"PS Eden Space","peakUsageCommitted":145227776,"usageUsed":47652104,"type":"Heap memory","usageCommitted":143130624},{"peakUsageMax":17825792,"usageMax":17825792,"peakUsageUsed":17799024,"name":"PS Survivor Space","peakUsageCommitted":17825792,"usageUsed":17799024,"type":"Heap memory","usageCommitted":17825792},{"peakUsageMax":358088704,"usageMax":358088704,"peakUsageUsed":41632472,"name":"PS Old Gen","peakUsageCommitted":118489088,"usageUsed":41632472,"type":"Heap memory","usageCommitted":118489088}],"processCpuLoad":0.48255959849435387,"systemCpuLoad":0.48895582329317266,"processCpuTime":19780000000,"vmHWM":402219008,"appId":null,"name":"5346@EX09-DEB8-13","host":"EX09-DEB8-13","processUuid":"4da3d9b4-1a82-4bed-87bf-c3c1e337ab59","tag":"mytag","gc":[{"collectionTime":123,"name":"PS Scavenge","collectionCount":11},{"collectionTime":115,"name":"PS MarkSweep","collectionCount":2}]} 1544192654668 Running java agent shutdown Please let me know if i miss anything or need more information. |
Below are argument details. /usr/bin/java -javaagent:/home/apache-servicemix-7.0.1/lib/boot/jvm-profiler-1.0.0.jar=reporter=com.uber.profiling.reporters.ConsoleOutputReporter,tag=mytag,metricInterval=5000,durationProfiling=com.learning.bundle.simplebundle.Activator.method1 -server -Xms128M -Xmx512M -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -Dcom.sun.management.jmxremote -Djava.endorsed.dirs=/usr/lib/jvm/java-8-oracle/jre/jre/lib/endorsed:/usr/lib/jvm/java-8-oracle/jre/lib/endorsed:/home/apache-servicemix-7.0.1/lib/endorsed -Djava.ext.dirs=/usr/lib/jvm/java-8-oracle/jre/jre/lib/ext:/usr/lib/jvm/java-8-oracle/jre/lib/ext:/home/apache-servicemix-7.0.1/lib/ext -Dkaraf.instances=/home/apache-servicemix-7.0.1/instances -Dkaraf.home=/home/apache-servicemix-7.0.1 -Dkaraf.base=/home/apache-servicemix-7.0.1 -Dkaraf.data=/home/apache-servicemix-7.0.1/data -Dkaraf.etc=/home/apache-servicemix-7.0.1/etc -Dkaraf.restart.jvm.supported=true -Djava.io.tmpdir=/home/apache-servicemix-7.0.1/data/tmp -Djava.util.logging.config.file=/home/apache-servicemix-7.0.1/etc/java.util.logging.properties -Dkaraf.startLocalConsole=true -Dkaraf.startRemoteShell=true -classpath /home/apache-servicemix-7.0.1/lib/boot/jvm-profiler-1.0.0.jar:/home/apache-servicemix-7.0.1/lib/boot/org.apache.karaf.diagnostic.boot-4.0.9.jar:/home/apache-servicemix-7.0.1/lib/boot/org.apache.karaf.jaas.boot-4.0.9.jar:/home/apache-servicemix-7.0.1/lib/boot/org.apache.karaf.main-4.0.9.jar:/home/apache-servicemix-7.0.1/lib/boot/org.osgi.core-6.0.0.jar org.apache.karaf.main.Main |
It seems the felix framework may load class in some different way? Maybe you could dig a little deep into this metho "org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation" and see how it loads the class. |
Close inactive issue |
Hi, We are trying to integrate the jvm-profile in the service mix/apache karaf environment. when we try to use method duration profiler, we got below error.however by default cpuandMemory profiler is working.
java.lang.NoClassDefFoundError: com/uber/profiling/transformers/MethodProfilerStaticProxy
The text was updated successfully, but these errors were encountered: