This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push: new 836f993 Update instructions 836f993 is described below commit 836f9939a608ea2b6ed03bd3113a1c9a0266b6ff Author: remm <r...@apache.org> AuthorDate: Sun May 5 11:19:23 2019 +0200 Update instructions -H:ConfigurationFileDirectories still doesn't work for me. The final json config doesn't have everything despite the full trace having everything correct. --- res/tomcat-maven/README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/res/tomcat-maven/README.md b/res/tomcat-maven/README.md index f816f09..918501d 100644 --- a/res/tomcat-maven/README.md +++ b/res/tomcat-maven/README.md @@ -80,13 +80,21 @@ oc policy add-role-to-user view system:serviceaccount:$(oc project -q):default - ## Native Image +Build Graal native-image-configure tool. ``` -$JAVA_HOME/bin/java -agentlib:native-image-agent=config-output-dir=./target/ -jar ./target/tomcat-maven-1.0.jar +export JAVA_HOME=/path...to/graalvm-ce-1.0.0-rc16 +cd $JAVA_HOME/jre/tools/native-image-configure +$JAVA_HOME/bin/native-image -H:-ParseRuntimeOptions -jar svm-configure.jar -H:Name=native-image-configure +``` +Run Tomcat with the agent in full trace mode. +``` +$JAVA_HOME/bin/java -agentlib:native-image-agent=trace-output=./target/trace-file.json -jar ./target/tomcat-maven-1.0.jar ``` Then exercise necessary paths of your service with the Tomcat configuration. -And generate the native image using the generated reflection metadata. +Generate the final json using native-image-configuration then use native image using the generated reflection metadata. ``` cd target +$JAVA_HOME/jre/tools/native-image-configure/native-image-configure generate --trace-input=trace-file.json --output-dir=. $JAVA_HOME/bin/native-image -H:+ReportUnsupportedElementsAtRuntime -H:ConfigurationFileDirectories=./ -jar tomcat-maven-1.0.jar ``` --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org