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

How to startup benchmark #567

Open
darionyaphet opened this issue Dec 24, 2024 · 0 comments
Open

How to startup benchmark #567

darionyaphet opened this issue Dec 24, 2024 · 0 comments

Comments

@darionyaphet
Copy link

Hi team:

I can compile Chronicle Map 3.25.9 and it has been successfully compiled.

[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------< net.openhft:chronicle-map >----------------------
[INFO] Building OpenHFT/Chronicle-Map 3.25.9
[INFO]   from pom.xml
[INFO] -------------------------------[ bundle ]-------------------------------
[INFO] 
[INFO] --- enforcer:3.3.0:enforce (enforce-maven) @ chronicle-map ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed
[INFO] 
[INFO] --- enforcer:3.3.0:enforce (enforce-no-snapshots) @ chronicle-map ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.RequireReleaseDeps passed
[INFO] 
[INFO] --- checkstyle:3.3.0:check (validate) @ chronicle-map ---
[INFO] You have 0 Checkstyle violations.
[INFO] 
[INFO] --- depends:1.5.0:generate-depends-file (generate-depends-file) @ chronicle-map ---
[INFO] Created: /root/chenguang/Chronicle-Map-chronicle-map-3.25.9/target/classes/META-INF/maven/dependencies.properties
[INFO] 
[INFO] --- resources:3.3.1:resources (default-resources) @ chronicle-map ---
[INFO] Copying 1 resource from src/main/resources to target/classes
[INFO] Copying 0 resource from src/main/resources to target/classes
[INFO] 
[INFO] --- compiler:3.11.0:compile (default-compile) @ chronicle-map ---
[INFO] Nothing to compile - all classes are up to date
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.396 s
[INFO] Finished at: 2024-12-24T09:39:48+08:00
[INFO] ------------------------------------------------------------------------

But I encountered an error while executing the following command.

mvn exec:java

[WARNING] 
net.openhft.chronicle.values.ImplGenerationFailedException: java.lang.ClassNotFoundException: net.openhft.chronicle.hash.VanillaGlobalMutableState$$Native
    at net.openhft.chronicle.values.ValueModel.createClass (ValueModel.java:329)
    at net.openhft.chronicle.values.ValueModel.createNativeClass (ValueModel.java:306)
    at net.openhft.chronicle.values.ValueModel.nativeClass (ValueModel.java:282)
    at net.openhft.chronicle.values.Values.nativeClassFor (Values.java:89)
    at net.openhft.chronicle.map.ChronicleMapBuilder.createWithFile (ChronicleMapBuilder.java:1695)
    at net.openhft.chronicle.map.ChronicleMapBuilder.createPersistedTo (ChronicleMapBuilder.java:1588)
    at net.openhft.chronicle.map.perf.MapJLBHTest.init (MapJLBHTest.java:113)
    at net.openhft.chronicle.jlbh.JLBH.initStartOSJitterMonitor (JLBH.java:283)
    at net.openhft.chronicle.jlbh.JLBH.start (JLBH.java:165)
    at net.openhft.chronicle.map.perf.MapJLBHTest.main (MapJLBHTest.java:87)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:279)
    at java.lang.Thread.run (Thread.java:748)
Caused by: java.lang.ClassNotFoundException: net.openhft.chronicle.hash.VanillaGlobalMutableState$$Native
    at org.codehaus.mojo.exec.URLClassLoaderBuilder$ExecJavaClassLoader.loadClass (URLClassLoaderBuilder.java:198)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:357)
    at net.openhft.compiler.CachedCompiler.loadFromJava (CachedCompiler.java:187)
    at net.openhft.compiler.CachedCompiler.loadFromJava (CachedCompiler.java:85)
    at net.openhft.chronicle.values.ValueModel.createClass (ValueModel.java:326)
    at net.openhft.chronicle.values.ValueModel.createNativeClass (ValueModel.java:306)
    at net.openhft.chronicle.values.ValueModel.nativeClass (ValueModel.java:282)
    at net.openhft.chronicle.values.Values.nativeClassFor (Values.java:89)
    at net.openhft.chronicle.map.ChronicleMapBuilder.createWithFile (ChronicleMapBuilder.java:1695)
    at net.openhft.chronicle.map.ChronicleMapBuilder.createPersistedTo (ChronicleMapBuilder.java:1588)
    at net.openhft.chronicle.map.perf.MapJLBHTest.init (MapJLBHTest.java:113)
    at net.openhft.chronicle.jlbh.JLBH.initStartOSJitterMonitor (JLBH.java:283)
    at net.openhft.chronicle.jlbh.JLBH.start (JLBH.java:165)
    at net.openhft.chronicle.map.perf.MapJLBHTest.main (MapJLBHTest.java:87)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:279)
    at java.lang.Thread.run (Thread.java:748)
[background~resource~releaser] WARN net.openhft.chronicle.core.io.BackgroundResourceReleaser - Died on interrupt
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.277 s
[INFO] Finished at: 2024-12-24T09:40:24+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:java (default-cli) on project chronicle-map-benchmarks: An exception occurred while executing the Java class. java.lang.ClassNotFoundException: net.openhft.chronicle.hash.VanillaGlobalMutableState$$Native -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

How should I start the benchmark ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant