Skip to content
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

Can't start with profile flag #887

Open
manuranga opened this issue Mar 22, 2016 · 2 comments
Open

Can't start with profile flag #887

manuranga opened this issue Mar 22, 2016 · 2 comments

Comments

@manuranga
Copy link

Can't start with profiling jvm parameter.

$ export JAVA_OPTS='-prof'
$ ./carbon.sh

Throws:

Exception in thread "main" java.lang.NoClassDefFoundError: java/lang/invoke/LambdaForm$MH
    at com.sun.demo.jvmti.hprof.Tracker.nativeCallSite(Native Method)
    at com.sun.demo.jvmti.hprof.Tracker.CallSite(Tracker.java:99)
    at java.lang.invoke.InvokerBytecodeGenerator.emitNewArray(InvokerBytecodeGenerator.java:889)
    at java.lang.invoke.InvokerBytecodeGenerator.generateCustomizedCodeBytes(InvokerBytecodeGenerator.java:688)
    at java.lang.invoke.InvokerBytecodeGenerator.generateCustomizedCode(InvokerBytecodeGenerator.java:618)
    at java.lang.invoke.LambdaForm.compileToBytecode(LambdaForm.java:654)
    at java.lang.invoke.LambdaForm.prepare(LambdaForm.java:635)
    at java.lang.invoke.MethodHandle.<init>(MethodHandle.java:461)
    at java.lang.invoke.BoundMethodHandle.<init>(BoundMethodHandle.java:56)
    at java.lang.invoke.BoundMethodHandle$Species_L.<init>(BoundMethodHandle.java:209)
    at java.lang.invoke.BoundMethodHandle$Species_L.copyWith(BoundMethodHandle.java:226)
    at java.lang.invoke.MethodHandle.asCollector(MethodHandle.java:1002)
    at java.lang.invoke.MethodHandleImpl$AsVarargsCollector.<init>(MethodHandleImpl.java:460)
    at java.lang.invoke.MethodHandleImpl$AsVarargsCollector.<init>(MethodHandleImpl.java:454)
    at java.lang.invoke.MethodHandleImpl.makeVarargsCollector(MethodHandleImpl.java:445)
    at java.lang.invoke.MethodHandle.setVarargs(MethodHandle.java:1325)
    at java.lang.invoke.MethodHandles$Lookup.getDirectMethodCommon(MethodHandles.java:1666)
    at java.lang.invoke.MethodHandles$Lookup.getDirectMethod(MethodHandles.java:1601)
    at java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:778)
    at java.lang.invoke.MethodHandleImpl$Lazy.<clinit>(MethodHandleImpl.java:627)
    at java.lang.invoke.MethodHandleImpl.varargsArray(MethodHandleImpl.java:1506)
    at java.lang.invoke.MethodHandleImpl.varargsArray(MethodHandleImpl.java:1623)
    at java.lang.invoke.MethodHandle.asCollector(MethodHandle.java:999)
    at java.lang.invoke.MethodHandleImpl$AsVarargsCollector.<init>(MethodHandleImpl.java:460)
    at java.lang.invoke.MethodHandleImpl$AsVarargsCollector.<init>(MethodHandleImpl.java:454)
    at java.lang.invoke.MethodHandleImpl.makeVarargsCollector(MethodHandleImpl.java:445)
    at java.lang.invoke.MethodHandle.setVarargs(MethodHandle.java:1325)
    at java.lang.invoke.MethodHandles$Lookup.getDirectMethodCommon(MethodHandles.java:1666)
    at java.lang.invoke.MethodHandles$Lookup.getDirectMethod(MethodHandles.java:1601)
    at java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:778)
    at java.lang.invoke.CallSite.<clinit>(CallSite.java:226)
    at java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(MethodHandleNatives.java:307)
    at java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java:297)
    at org.wso2.carbon.launcher.Main.processCmdLineArgs(Main.java:170)
    at org.wso2.carbon.launcher.Main.main(Main.java:64)

@thusithathilina
Copy link
Contributor

Seems a jdk bug https://bugs.openjdk.java.net/browse/JDK-8027934

@Niranjan-K Niranjan-K added this to the 5.2.0-alpha milestone Jan 2, 2017
@cnapagoda cnapagoda modified the milestones: 5.2.0-beta, 5.2.0-alpha Aug 10, 2017
@Brain2000
Copy link

Same issue with javamail, so this is clearly a bug in Java. It happens when I call -agentlib:hprof=cpu=times, but not when I use -agentlib:hprof=cpu=samples

I'm using Java 8 build 152.

@jsdjayanga jsdjayanga added the C5 label Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants