I'm using the Grails Database Migration plugin (1.4.0) in a Grails 2.4.3 (UPDATE: have upgraded to Grails 2.5.0 and face same memory issues) application with Java JDK 8 Update 45 on Windows 7 64bit. When I changed to Java 8 I know that the PermGen has been removed and replaced with the MetaSpace and the regular Heap. When running my migration (dbm-update), I'm getting an
"Error Error executing script DbmUpdate: Java heap space (Use --stacktrace to see the full trace)"
Why is the database migrations plugin using that much Heap Space? If I downgrade to Grails 2.3.x, the migrations plugin will run the migrations with a lot less memory.
--UPDATE--
Resolved at least updating the database by setting a "GRAILS_OPTS" env var with:
-Xms2G -Xms1G
Related
Getting the following sync error while trying to build my first helloWorld program in IntelliJ.
I've installed IntelliJ for the first time on my computer running Windows 10.
Could not open init generic class cache for initialization script 'C:\Users\nikhils\AppData\Local\Temp\wrapper_init5.gradle' (C:\Users\nikhils\.gradle\caches\6.6.1\scripts\2xaig2b083uxqwleg0fdntova).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 60
Change project and Gradle JDK to the supported version (8—15). Current Gradle release versions do not support Java 16. You would need Gradle 7 if you want to use Java 16.
The easiest way would be to create a new project with Java 11.
Also note that full Java 16 support will be available starting from IntelliJ IDEA 2021.1 release (current release version is 2020.3.3).
See https://www.jetbrains.com/idea/nextversion/ if you want to give it a try.
I want to start service Logstash in my server, but when I trying to start, I got warning info log. Is it any problem solved for this issue?
All of my setting was same with information as on web, start from configuration on startup.option, jvm.option, logstash.yml and logstash-sample.conf but when I try to start, it thorws below error :
[root#CDS01~/logstash]$./bin/logstash -e warning: ignoring
JAVA_OPTS=-Dsysid=CTAG_WEB_SERVER -DCTAG_CONFIG=/app1/am/cds -server
-Xms2048m -Xmx2048m -XX:MaxPermSize=128m -XX:+UseParNewGC -XX:ParallelGCThreads=2 -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=50; pass JVM parameters via LS_JAVA_OPTS
This issue happens when some of your libraries are compiled using different JRE version, then your running JRE version.
You must be using some incompatible versions of JAR in your application. let me know which version of Logstash and which JDK you are using and any site which you are following to install and run your application?
Please refer this Unsupported major.minor version 52.0 SO question on detailed explanation about it.
Please check the Logstash site for the compatible JDK version based on your version.
Looks like you are using some of the jars which are compiled using JRE 8, while you are using the JRE 7 or lower which are causing the issue, Please refer How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version of more information on different class versions of JRE and how to fix this exception.
I am trying to link my Neo4j db with Elasticsearch using the recommended approach on the Neo4j website, with this GitHub repository https://github.com/neo4j-contrib/neo4j-elasticsearch
I have done all the steps that they say to do, but when I run it in terminal I get this error (everything works normally except that nothing is getting pushed to Elasticsearch):
Failed to load `org.apache.commons.logging.impl.AvalonLogger` from
plugin jar
`/Users/tkralj/Documents/Neo4j/default.graphdb/plugins/neo4j-
elasticsearch-3.1.4.jar`: org/apache/avalon/framework/logger/Logger
2017-07-13 20:21:46.911+0000 WARN [o.n.k.i.p.Procedures]
Failed to load `org.apache.commons.logging.impl.Log4JLogger` from
plugin jar
`/Users/tkralj/Documents/Neo4j/default.graphdb/plugins/neo4j-
elasticsearch-3.1.4.jar`: org/apache/log4j/Category
2017-07-13 20:21:46.911+0000 WARN [o.n.k.i.p.Procedures]
Failed to
load `org.apache.commons.logging.impl.LogKitLogger` from plugin jar
`/Users/tkralj/Documents/Neo4j/default.graphdb/plugins/neo4j-
elasticsearch-3.1.4.jar`: org/apache/log/Logger
I am running Neo4j 3.1.5, while this plugin was created for 3.1.4 and I think that may be the issue; however, there is no plugin made for 3.1.5, and I cannot find a way to download the older version of Neo4j.
Looks like old question but still answering for future googlers.
I was facing the same problem with 3.1.x version . For me it's working fine with version 3.2
I am trying to set up devops and have reached up-to sonarQube integration in jenkins. Now its not moving beyond "Unsupported major.minor version 52.0". I had java 1.8 but i installed 1.7 to remove this error. Still coming. Changed java version (checked in command line as well). JAVA_HOME, PATH, all those variable point to java 1.7. Still coming. I can run analysis on sonarqube server, if i try separately (localhost:9000) but in jenkins it's just refusing to go beyond this message. I am not from java background so i might be missing something obvious. Any help is appreciated
The JVM used to run the job must be >=Java 8. Whether or not you had it installed, the error you're getting indicates that Java 8 wasn't being used by the job.
I have recently updated my STS from 2.5.2 to 2.6. Since then, each grails project shows an error in the conf/spring/resources.groovy file reading: Description Resource Path Location Type
Internal compiler error: java.lang.VerifyError: (class: org/codehaus/jdt/groovy/internal/compiler/ast/JDTClassNode, method: initialize signature: ()V) Bad access to protected data at org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.createClassNode(JDTResolver.java:461) resources.groovy /GrailsProject/grails-app/conf/spring line 0 Java Problem
The resources.groovy file is as good as empty (in default state), and if I delete it, the error is shown on the DataSource.groovy, so the file itself seems not to be the cause.The used groovy compiler version is 1.7.3.I have made a clean STS 2.6 install, installed the groovy and grails plugins and got the same error.What could be the problem? And is there a solution to this not resulting in downgrading to 2.5.2 again? Thank you
Take a look at your preferences Groovy -> Compiler. Are you by any chance accidentally using Groovy 1.6?
EDIT
That didn't solve the problem, but as described in http://forum.springframework.org/showthread.php?p=357361, upgrade to the latest dev build of Groovy-Eclipse as well as Grails Tooling and that should work.