A few tweeks.

This commit is contained in:
Greg Burd 2017-04-11 16:38:14 -04:00
parent 6cb09ecbc2
commit 0e87d70dc7
4 changed files with 34 additions and 32 deletions

2
.gitignore vendored
View file

@ -13,7 +13,7 @@
#*#
gradle
gradlew
._git_gburd
.git_gburd
.gradle
run-jetty-run/
license.err

View file

@ -38,42 +38,43 @@ task wrapper(type: Wrapper) {
gradleVersion = '3.4.1'
}
applicationDefaultJvmArgs = ["-Dgreeting.language=en"]
jar {
baseName = 'crud'
version = '0.0.2-SNAPSHOT'
}
applicationDefaultJvmArgs =["-server",
"-Xms1g",
"-Xmx1g",
"-XX:NewRatio=3",
"-Xss16m",
"-XX:+UseConcMarkSweepGC",
"-XX:+CMSParallelRemarkEnabled",
"-XX:ConcGCThreads=4",
"-XX:ReservedCodeCacheSize=240m",
"-XX:+AlwaysPreTouch",
"-XX:+TieredCompilation",
"-XX:+UseCompressedOops",
"-XX:SoftRefLRUPolicyMSPerMB=50",
"-Dsun.io.useCanonCaches=false",
"-Djava.net.preferIPv4Stack=true",
"-Djsse.enableSNIExtension=false",
"-ea",
"-XX:+UseAdaptiveGCBoundary",
"-XX:CompileThreshold=10000",
"-XX:+OptimizeStringConcat",
"-XX:+UseFastAccessorMethods",
"-XX:+HeapDumpOnOutOfMemoryError",
"-XX:-OmitStackTraceInFastThrow",
"-XX:MaxJavaStackTraceDepth=-1",
"-XX:+UseCompressedOops",
"-Dgreeting.language=en"]
bootRun {
if (project.hasProperty('jvmArgs')) {
jvmArgs = (project.jvmArgs.split("\\s+") as List)
} else {
jvmArgs = ["-server",
"-Xms1g",
"-Xmx1g",
"-XX:NewRatio=3",
"-Xss16m",
"-XX:+UseConcMarkSweepGC",
"-XX:+CMSParallelRemarkEnabled",
"-XX:ConcGCThreads=4",
"-XX:ReservedCodeCacheSize=240m",
"-XX:+AlwaysPreTouch",
"-XX:+TieredCompilation",
"-XX:+UseCompressedOops",
"-XX:SoftRefLRUPolicyMSPerMB=50",
"-Dsun.io.useCanonCaches=false",
"-Djava.net.preferIPv4Stack=true",
"-Djsse.enableSNIExtension=false",
"-ea",
"-XX:+UseAdaptiveGCBoundary",
"-XX:CompileThreshold=10000",
"-XX:+OptimizeStringConcat",
"-XX:+UseFastAccessorMethods",
"-XX:+HeapDumpOnOutOfMemoryError",
"-XX:-OmitStackTraceInFastThrow",
"-XX:MaxJavaStackTraceDepth=-1",
"-XX:+UseCompressedOops"]
jvmArgs = applicationDefaultJvmArgs
}
}
@ -199,10 +200,10 @@ task weaveJpaEntities(type: JavaExec, dependsOn: "compileJava"){
inputs.dir compileJava.destinationDir
outputs.dir compileJava.destinationDir
main "org.eclipse.persistence.tools.weaving.jpa.StaticWeave"
args "-loglevel", "FINE",
"-persistenceinfo", "src/main/resources",
args "-persistenceinfo", "src/main/resources",
compileJava.destinationDir.getAbsolutePath(),
compileJava.destinationDir.getAbsolutePath()
//,"-loglevel", "FINE"
classpath = configurations.compile
}

View file

@ -47,7 +47,7 @@
<!-- Optimization - turn logging off -->
<property name="eclipselink.logging.logger" value="JavaLogger"/>
<property name="eclipselink.logging.parameters" value="true"/> <!-- false -->
<property name="eclipselink.logging.level" value="FINE" /> <!-- OFF -->
<property name="eclipselink.logging.level" value="INFO" /> <!-- OFF, FINE -->
<property name="eclipselink.logging.level.sql" value="FINE"/>
<!-- Optimization - close EntityManager on commit, to avoid cost of resume -->
<property name="eclipselink.persistence-context.close-on-commit" value="true"/>

View file

@ -15,7 +15,8 @@ server:
undertow:
accesslog:
enabled: true
pattern: '%t %a "%r" %s (%D ms)'
pattern: '%h %t "%r" %s "%{i,User-Agent}" %l %u %b %T'
dir: '/var/log/crud'
spring:
aop:
proxy-target-class: true