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

Graal: Healthchecks #485

Closed
tomas-langer opened this issue Mar 8, 2019 · 5 comments
Closed

Graal: Healthchecks #485

tomas-langer opened this issue Mar 8, 2019 · 5 comments
Assignees
Labels
Milestone

Comments

@tomas-langer
Copy link
Member

Healthcheck support

@tomas-langer
Copy link
Member Author

Getting the following exception when compiling svm:

[helidon-examples-graalvm-native-image-full:89135]     analysis:  17,554.60 ms
Error: Error loading service implementations for service `org.eclipse.microprofile.health.spi.HealthCheckResponseProvider` from URL `jar:file:/Users/tomas/dev/helidon/graal/native-image-example/target/helidon-examples-graalvm-native-image-full.jar!/META-INF/services/org.eclipse.microprofile.health.spi.HealthCheckResponseProvider`
Caused by: java.io.FileNotFoundException: JAR entry META-INF/services/org.eclipse.microprofile.health.spi.HealthCheckResponseProvider not found in /Users/tomas/dev/helidon/graal/native-image-example/target/helidon-examples-graalvm-native-image-full.jar
        at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:144)
        at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:152)
        at java.net.URL.openStream(URL.java:1045)
        at com.oracle.svm.hosted.ServiceLoaderFeature.parseServiceResource(ServiceLoaderFeature.java:248)
        at com.oracle.svm.hosted.ServiceLoaderFeature.handleType(ServiceLoaderFeature.java:165)
        ... 11 more

@tomas-langer
Copy link
Member Author

When I try the same URL from a java program, it resolves correctly. Requires investigation.

@tomas-langer
Copy link
Member Author

Disk space health check has to be removed due to:

Exception in thread "main" java.lang.UnsatisfiedLinkError: sun.nio.fs.BsdNativeDispatcher.getfsstat()J [symbol: Java_sun_nio_fs_BsdNativeDispatcher_getfsstat or Java_sun_nio_fs_BsdNativeDispatcher_getfsstat__]
        at com.oracle.svm.jni.access.JNINativeLinkage.getOrFindEntryPoint(JNINativeLinkage.java:145)
        at com.oracle.svm.jni.JNIGeneratedMethodSupport.nativeCallAddress(JNIGeneratedMethodSupport.java:54)
        at sun.nio.fs.BsdNativeDispatcher.getfsstat(BsdNativeDispatcher.java)
        at sun.nio.fs.BsdFileSystem.getMountEntries(BsdFileSystem.java:79)
        at sun.nio.fs.BsdFileStore.findMountEntry(BsdFileStore.java:81)
        at sun.nio.fs.UnixFileStore.<init>(UnixFileStore.java:65)
        at sun.nio.fs.BsdFileStore.<init>(BsdFileStore.java:40)
        at sun.nio.fs.BsdFileSystemProvider.getFileStore(BsdFileSystemProvider.java:46)
        at sun.nio.fs.BsdFileSystemProvider.getFileStore(BsdFileSystemProvider.java:34)
        at sun.nio.fs.UnixFileSystemProvider.getFileStore(UnixFileSystemProvider.java:368)
        at java.nio.file.Files.getFileStore(Files.java:1461)
        at io.helidon.health.checks.DiskSpaceHealthCheck.<init>(DiskSpaceHealthCheck.java:114)

@tomas-langer
Copy link
Member Author

The problem with loading META-INF resolved automagically - maybe related to proxy?

@tomas-langer
Copy link
Member Author

Other built-in healthchecks fail with:

com.oracle.svm.core.jdk.UnsupportedFeatureError: ThreadMXBean methods
        at com.oracle.svm.core.util.VMError.unsupportedFeature(VMError.java:109)
        at com.oracle.svm.core.jdk.SubstrateThreadMXBean.findDeadlockedThreads(JavaManagementSubstitutions.java:495)
        at io.helidon.health.checks.DeadlockHealthCheck.call(DeadlockHealthCheck.java:62)

@tomas-langer tomas-langer self-assigned this Mar 9, 2019
@tomas-langer tomas-langer changed the title Healthchecks Graal: Healthchecks Mar 9, 2019
@m0mus m0mus added enhancement New feature or request SE labels Mar 9, 2019
@m0mus m0mus added this to the 1.1 milestone Mar 14, 2019
@m0mus m0mus added this to Backlog Aug 12, 2024
@m0mus m0mus moved this to Closed in Backlog Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants