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

Capture the output of native-image run #330

Open
rsvoboda opened this issue Nov 8, 2021 · 1 comment
Open

Capture the output of native-image run #330

rsvoboda opened this issue Nov 8, 2021 · 1 comment
Labels
enhancement New feature or request priority/moderate higher priority than low but lower then high

Comments

@rsvoboda
Copy link
Member

rsvoboda commented Nov 8, 2021

Capture the output of native-image run, at this moment there is no log file generated to see the output of native-image command, another option would be to redirect the output directly to the console.

Steps to reproduce:

ATM I see [WARNING] Corrupted STDOUT by directly writing to native stream in forked JVM 1. See FAQ web page and the dump file /Users/rsvoboda/git/quarkus-test-suite/sql-db/sql-app/target/failsafe-reports/2021-11-08T17-28-34_332-jvmRun1.dumpstream when the first IT test is started.

@rsvoboda
Copy link
Member Author

rsvoboda commented Nov 8, 2021

Just for the context, this is what can be seen now:

17:38:13,112 INFO  Building native image source jar: target/MySqlDatabaseIT/app/app-native-image-source-jar/app-runner.jar
17:38:15,398 INFO  Building native image from target/MySqlDatabaseIT/app/app-native-image-source-jar/app-runner.jar
17:38:15,543 INFO  Running Quarkus native-image plugin on GraalVM 21.2.0 Java 11 CE (Java Version 11.0.12+6-jvmci-21.2-b08)
17:38:15,544 INFO  /Users/rsvoboda/.sdkman/candidates/java/21.2.0.r11-grl/bin/native-image -J-DCoordinatorEnvironmentBean.transactionStatusManagerEnable=false -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Dcom.mysql.cj.disableAbandonedConnectionCleanup=true -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-Dvertx.logger-delegate-factory-class-name=io.quarkus.vertx.core.runtime.VertxLogDelegateFactory -J-Dvertx.disableDnsResolver=true -J-Dio.netty.leakDetection.level=DISABLED -J-Dio.netty.allocator.maxOrder=3 -J-Duser.language=en -J-Duser.country=GB -J-Dfile.encoding=UTF-8 -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime -H:+JNI -H:+AllowFoldMethods -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -J-Xmx4g -H:+AddAllCharsets -H:EnableURLProtocols=http,https -H:-UseServiceLoaderFeature -H:+StackTrace -H:-ParseOnce app-runner -jar app-runner.jar
17:40:00,968 INFO  Quarkus augmentation completed in 108759ms

@pjgg pjgg added enhancement New feature or request priority/moderate higher priority than low but lower then high labels Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority/moderate higher priority than low but lower then high
Projects
None yet
Development

No branches or pull requests

2 participants