Jump to content
Excelsior Forums

All Activity

This stream auto-updates     

  1. Past hour
  2. JET GC settings

    These options are specific to Oracle HotSpot and its GC. Excelsior JET has its own Garbage Collector with its own set of options that cannot be mapped to or from HotSpot ones. So you can remove all of the -XX options and see if your application works fine on our GC. If after that your application will require any tuning you will have to do it using properties described in Excelsior JET User's Guide: https://www.excelsiorjet.com/docs/jet/jetw010#0321
  3. JET GC settings

    I understand the Jet runtime included things like GC ratio to configure how garbage collection happens. As it so happens, our application is quite tuned for this and we use jvm launch settings such as the ones below. How do I make sure that these get used in the Jet runtime? -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:ParallelCMSThreads =4 -XX:CMSWaitDuration=90000 -XX:CMSInitiatingOccupancyFraction=10 -XX:+UseCMSInitiatingOccupancyOnly
  4. Today
  5. Long command line cannot copy paste

    If that's the case, please try using our JET Launcher tool by replacing "java" in your command line with "<JET Home>/profile1.8.0_121/jre/bin/java" where <JET Home> is the full path to your Excelsior JET installation directory. The resulting command line will look like this: <JET Home>/profile1.8.0_121/jre/bin/java -noverify -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8091,s uspend=n -Xms=8G -Xmx=8G -Xmn2G -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/tmp -XX:CompileThre shold=1000 -XX:+UseCompressedOops -XX:ErrorFile=/var/log/hs_err_pid%p.log -XX:SurvivorRatio=3 -XX:+UseLargePages -XX:+UseTLAB -X X:TargetSurvivorRatio=90 -XX:+AlwaysPreTouch -XX:+AggressiveOpts -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:ParallelCMSThreads =4 -XX:CMSWaitDuration=90000 -XX:CMSInitiatingOccupancyFraction=10 -XX:+UseCMSInitiatingOccupancyOnly -Xloggc:$LOGDIR/gc.log -ve rbose:gc -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=12 -XX:GCLogFileSize=100M -XX:+PrintGCDetails -XX:+PrintGCDateStamps - XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:MaxMetaspaceSize=512m -XX:MaxDirectMemorySize=1024G -Dcom.sun.managemen t.jmxremote.port=18091 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false This will create a new JET project with specified arguments in JET Control Panel.
  6. Long command line cannot copy paste

    The Jet Control Panel command line does not allow for anything to be pasted into it
  7. Long command line cannot copy paste

    Does it work if you save your command line into a text file, open it in GUI text editor like JEdit or similar, and then try to copy the text from this editor to JET Control Panel? -- Ivan
  8. Long command line cannot copy paste

    This is on centos7 and I am trying to copy from terminal to Jet control panel command line text box (Excelsior Jet 12) Thanks Suresh
  9. Long command line cannot copy paste

    Hello, Can you elaborate which operating system you are using and from where and to where you are trying to copy-paste the line (e.g. from terminal to JET Control Panel "Command line:" text box while creating "Plain Java SE Application")? Best Regards, Ivan Trepakov
  10. Yesterday
  11. My application has a lengthy command line which looks like the one below The Jet console wizard does not allow me to cut and paste this in. Is there any way this can be entered or copied in without typing it all in? Regards SR -------------------------------------------------------------------------------- java -noverify -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8091,s uspend=n -Xms=8G -Xmx=8G -Xmn2G -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/tmp -XX:CompileThre shold=1000 -XX:+UseCompressedOops -XX:ErrorFile=/var/log/hs_err_pid%p.log -XX:SurvivorRatio=3 -XX:+UseLargePages -XX:+UseTLAB -X X:TargetSurvivorRatio=90 -XX:+AlwaysPreTouch -XX:+AggressiveOpts -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:ParallelCMSThreads =4 -XX:CMSWaitDuration=90000 -XX:CMSInitiatingOccupancyFraction=10 -XX:+UseCMSInitiatingOccupancyOnly -Xloggc:$LOGDIR/gc.log -ve rbose:gc -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=12 -XX:GCLogFileSize=100M -XX:+PrintGCDetails -XX:+PrintGCDateStamps - XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:MaxMetaspaceSize=512m -XX:MaxDirectMemorySize=1024G -Dcom.sun.managemen t.jmxremote.port=18091 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
  12. Last week
  13. Load external configuration file

    Just to reiterate what has been discussed with @AndyDenby over email and to provide a public statement on this issue: It is highly discouraged to manually alter `java.class.path` property. If you will attempt to do it, you must provide ALL dependencies explicitly in that class path. So for this particular case the suggested workaround is: 1. Remove altering of `java.class.path` from `jvmArgs` configuration. Gradle plugin will handle adding all dependencies into class path on its own. 2. Exclude packaged configs (which you want to change after deployment) from created .jar file using following configuration: jar { exclude('config') } Assuming that all packaged config files are located in 'config' directory inside of .jar. The reason for such workaround is that Gradle plugin currently searches import class path entries before external class path entries, so if you don't exclude configs from .jar, JVM will find them in resources of compiled .jar file instead of your packaged external configs. There is a ticket in Excelsior JET Gradle plugin's bug tracker to add proper support for modification of `java.class.path` - https://github.com/excelsior-oss/excelsior-jet-gradle-plugin/issues/36
  14. Natively Compile a Spring Boot Application

    Hello, Could you please try compiling your .java files using `-parameters` argument for the javac and check if this helps?
  15. Hello, I compiled a spring boot application as per the instruction given here: https://www.excelsiorjet.com/kb/38/howto-natively-compile-a-spring-boot-application The compilation worked fine, but after starting tomcat I POST requests are not working. GET requests are working though. With POST requests, I get the following error: java.lang.IllegalArgumentException: Name for argument type [java.lang.String] not available, and parameter name information not found in class file either.
  16. Load external configuration file

    Managed to get this going with the following excelsiorJet block. Key points in bold. 1. Add the classpath to the jvmArgs 2. Add the dependency block to copy the config files from src/ratpack to the config/ratpack folder under app excelsiorJet { // UNCOMMENT THIS ONCE YOU HAVE RUN GRADLE TEST RUN globalOptimizer = true // ONCE YOU HAVE EVERYTHING ELSE WORKING TRY... // protectData = true mainClass = 'ratpack.groovy.GroovyRatpackMain' groupId = 'com.group' version = '1.0.1' artifactName = 'myartifact' jvmArgs "-Djava.class.path=\$(Root)/config/ratpack", "-Xms256m", "-Xmx512m" stackAllocation = true inlineExpansion = 'aggressive' optimizationPreset = 'smart' compilerOptions = ["-Djet.gc.ratio=11", "-Djet.gc.no.swap"] dependencies { dependency { groupId = 'com.reshufl' isLibrary = false } dependency { path = new File(project.projectDir, "src/ratpack/") packagePath = 'config' pack = 'none' protect='not-required' optimize='auto-detect' } } runtime { flavor = 'server' components = ['jce'] } } Issue closed.
  17. Earlier
  18. Load external configuration file

    am using the Excelsior Jet Gradle plug-in to secure our java web application based on Ratpack. Using the excelsiorJet block below I have successfully compiled and ran the application using gradle jetTestRun. excelsiorJet { //UNCOMMENT THIS ONCE YOU HAVE RUN GRADLE TEST RUN globalOptimizer = true mainClass = 'ratpack.groovy.GroovyRatpackMain' groupId = 'com.reshufl' version = '1.0.1' //jvmArgs "-Xms256m", "-Xmx512m", "-Djava.class.path=./config/" jvmArgs "-Xms256m", "-Xmx512m" stackAllocation = true inlineExpansion = 'aggressive' compilerOptions = ["-Djet.gc.ratio=11", "-Djet.gc.no.swap", "-Djava.class.path=./config/application.properties"] //compilerOptions = ["-Djet.gc.ratio=11", "-Djet.gc.no.swap"] optimizationPreset = 'smart' dependencies { dependency { groupId = 'com.reshufl' isLibrary = false } //dependency { // path = new File(project.projectDir, "src/ratpack/application.properties") // packagePath = 'config' // pack = 'none' //} } packageFiles { file { path = new File(project.projectDir, "src/ratpack/application.properties") packagePath = "config" } } runtime { flavor = 'server' components = ['jce'] } } On startup Ratpack is configured to load the configuration file "src/ratpack/application.properties" that is currently being built into the deployment package. I am trying to externalize this configuration file so that it is read from a config directory created by the installer so that the end user can modify the application properties on start-up. So far I managed to create a copy of the file under the config directory however I've been unable to modify the classpath to read this version of the file first. I've looked at the documentation but just don't seem to be able to get this going. Please could you point me in the right direction for how to do this using the gradle plug in.
  19. Hello, Please find the answer to this question in the corresponding issue on GitHub: https://github.com/excelsior-oss/excelsior-jet-maven-plugin/issues/63 Excelsior Support
  20. Is there a way to do multi-component applications with this maven plugin? Our normal way of building excelsior installer is to have two excelsior projects "app.prj/exe" and "dep.prj/dll". In "app.exe" there is our application code, in "dep.dll" there are third party dependencies which are not changed a lot. With this two components we can quickly build excelsior installer without having to rebuild "dep" again. In "app.prj" we are using directive !uses, but I cannot find it in maven plugin. Now we want to use maven excelsior jet plugin in our project, but can/how we do it as multi-component application?
  21. Spring Lookup method injection

    Hello, Yes, dynamically generated code will be JIT-compiled by Excelsior JET runtime. You can try it out using our Evaluation edition: https://www.excelsiorjet.com/evaluate Also, there is an article in our Knowledge Base about compilation of Spring Boot application to which you may refer while evaluating: https://www.excelsiorjet.com/kb/38/howto-natively-compile-a-spring-boot-application If you have more question, please don't hesitate to ask them in our support: java@excelsior-usa.com Regards, Igor Jorch, Excelsior Suppor
  22. Hi, If I annotate a method with @Lookup Spring will dynamically generate code in that method using CGLIB. Will this work with AOT compilation? Tx.
  23. How to update previus build

    Hello, Yes, unfortunately for the current moment any change in an application triggers full recompilation. Also It is a known issue that big applications might require hours to compile as the compilation time depends on the application size. However sometimes it is possible to reduce the compilation time by correcting the project files or configuring the compiler. Please contact us via our support email: java [at] excelsior-usa.com Send us the following: *.prj files; Information about used JET (version and target architecture); Information about the machine where you build the application (OS, CPU, RAM). Ruslan Kim Excelsior Support
  24. How to update previus build

    Hi, I have TOMCAT web application, build action(inside Compile Step) take very long time to finish (more than 2 Hour). What should I do when I change just one class inside my application, it seems that build action start compiling everything because it takes very long time to compile again. Please help me if there is a way for updating previous build.
  25. Hello, Please contact us via our support mail: java [at] excelsior-usa.com Also please send us the project files you used to build and to deploy the application (*.prj & *.jpn) -- Ruslan Kim Excelsior Support
  26. Getting following error on startup of a tomcat executable, though it works perfectly as war. type Exception report message Servlet.init() for servlet jersey threw exception description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet jersey threw exception org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source) org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) org.apache.catalina.valves.AbstractAccessLogValve.invoke(Unknown Source) org.apache.catalina.connector.CoyoteAdapter.service(Unknown Source) org.apache.coyote.http11.AbstractHttp11Processor.process(Unknown Source) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Unknown Source) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(Unknown Source) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(Unknown Source) java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(Unknown Source) java.lang.Thread.run(Unknown Source) root cause java.lang.ArrayIndexOutOfBoundsException jersey.repackaged.org.objectweb.asm.ClassReader.readShort(Unknown Source) jersey.repackaged.org.objectweb.asm.ClassReader.<init>(Unknown Source) jersey.repackaged.org.objectweb.asm.ClassReader.<init>(Unknown Source) jersey.repackaged.org.objectweb.asm.ClassReader.<init>(Unknown Source) org.glassfish.jersey.server.internal.scanning.AnnotationAcceptingListener.process(Unknown Source) org.glassfish.jersey.server.ResourceConfig.scanClasses(Unknown Source) org.glassfish.jersey.server.ResourceConfig._getClasses(Unknown Source) org.glassfish.jersey.server.ResourceConfig.getClasses(Unknown Source) org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.<init>(Unknown Source) org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.<unknown>(Unknown Source) org.glassfish.jersey.server.ResourceConfig.createRuntimeConfig(Unknown Source) org.glassfish.jersey.server.ApplicationHandler.<init>(Unknown Source) org.glassfish.jersey.servlet.WebComponent.<init>(Unknown Source) org.glassfish.jersey.servlet.ServletContainer.init(Unknown Source) org.glassfish.jersey.servlet.ServletContainer.init(Unknown Source) javax.servlet.GenericServlet.init(Unknown Source) org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source) org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) org.apache.catalina.valves.AbstractAccessLogValve.invoke(Unknown Source) org.apache.catalina.connector.CoyoteAdapter.service(Unknown Source) org.apache.coyote.http11.AbstractHttp11Processor.process(Unknown Source) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Unknown Source) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(Unknown Source) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(Unknown Source) java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(Unknown Source) java.lang.Thread.run(Unknown Source) note The full stack trace of the root cause is available in the Apache Tomcat/8.0.46 logs.
  27. Attempt to compile synthetic class

    Hello, We are currently checking the asterisk-java library however we might need some more details regarding the issue. So to speed up the process please contact us via our support email: java [at] excelsior-usa.com -- Ruslan Kim Excelsior Support
  28. Attempt to compile synthetic class

    Hi, I have tomee web application that using asterisk-java library. when I use Excelsior Jet it compiles perfectly and run application without any error, but when I want to create package JetPack II produce following error: JET RUNTIME HAS DETECTED UNRECOVERABLE ERROR: runtime error at com/excelsior/jet/runtime/classload/classfile/ClassFile.java:1176 Attempt to compile synthetic class file for class 'asterisk/Command'. Please use either 'none' or 'as a whole' pack mode for the classpath entry/OSGi bundle containing the class. I test both none and whole for asterisk-java.jar but none of them work. asterisk-java.jar is 571KB so I can't attach it but you cloud see the source file here: https://github.com/asterisk-java/asterisk-java Please help me to resolve the issue it's very important to me.
  29. Complying with LGPL - runtime loading of classes

    small companies for sale
  1. Load more activity
×