forked from deephaven/deephaven-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from devinrsmith/cfs-ugp-cycle-log-gctimes-0
Cfs ugp cycle log gctimes 0
- Loading branch information
Showing
18 changed files
with
227 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
io.deephaven.project.ProjectType=JAVA_LOCAL | ||
excludeReleaseFlag= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,3 @@ | ||
plugins { | ||
id 'io.deephaven.project.register' | ||
} | ||
|
||
configurations { | ||
compile.extendsFrom configurations.dhUtil | ||
} | ||
|
||
dependencies { | ||
compile project(':log-factory') | ||
|
||
testRuntime project(path: ':configs'), project(path: ':test-configs') | ||
|
||
testRuntimeOnly project(':log-to-slf4j') | ||
Classpaths.inheritSlf4j(project, 'slf4j-simple', 'testRuntimeOnly') | ||
|
||
Classpaths.inheritJUnitPlatform(project) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
plugins { | ||
id 'application' | ||
id 'io.deephaven.project.register' | ||
} | ||
|
||
configurations { | ||
applicationDist | ||
} | ||
|
||
dependencies { | ||
implementation project(':server-jetty') | ||
|
||
runtimeOnly project(':log-to-slf4j') | ||
runtimeOnly project(':logback-print-stream-globals') | ||
runtimeOnly project(':logback-logbuffer') | ||
Classpaths.inheritLogbackClassic(project) | ||
} | ||
|
||
distributions { | ||
main { | ||
distributionBaseName = 'server-jetty' | ||
} | ||
} | ||
|
||
def extraJvmArgs = [ | ||
'-server', | ||
'-XX:+UseG1GC', | ||
'-XX:MaxGCPauseMillis=100', | ||
'-XX:+UseStringDeduplication', | ||
'-XshowSettings:vm', | ||
] | ||
|
||
if (hasProperty('groovy')) { | ||
extraJvmArgs += ['-Ddeephaven.console.type=groovy'] | ||
} | ||
|
||
if (property('includeHotspotImpl') == 'true') { | ||
dependencies { | ||
runtimeOnly project(':hotspot-impl') | ||
} | ||
extraJvmArgs += ['--add-opens', 'java.management/sun.management=ALL-UNNAMED'] | ||
} | ||
|
||
tasks.withType(JavaExec).configureEach { | ||
// This appends to the existing jvm args, so that java-open-nio still takes effect | ||
jvmArgs extraJvmArgs | ||
} | ||
|
||
tasks.withType(CreateStartScripts).configureEach { | ||
defaultJvmOpts += extraJvmArgs | ||
} | ||
|
||
applicationName = 'start' | ||
mainClassName = 'io.deephaven.server.jetty.JettyAppMain' | ||
|
||
artifacts { | ||
applicationDist project.tasks.findByName('distTar') | ||
} | ||
|
||
apply plugin: 'io.deephaven.java-open-nio' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
io.deephaven.project.ProjectType=JAVA_LOCAL | ||
includeHotspotImpl=true |
11 changes: 11 additions & 0 deletions
11
server/jetty-app/src/main/java/io/deephaven/server/jetty/JettyAppMain.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package io.deephaven.server.jetty; | ||
|
||
import java.io.IOException; | ||
import java.util.concurrent.TimeoutException; | ||
|
||
public class JettyAppMain { | ||
public static void main(String[] args) | ||
throws IOException, InterruptedException, ClassNotFoundException, TimeoutException { | ||
JettyMain.main(args); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Native packaging for Deephaven Netty server | ||
|
||
### Build | ||
|
||
```shell | ||
./gradlew server-netty-app:build | ||
``` | ||
|
||
produces | ||
|
||
* `server/netty-app/build/distributions/server-<version>.tar` | ||
* `server/netty-app/build/distributions/server-<version>.zip` | ||
|
||
### Run | ||
|
||
The above artifacts can be uncompressed and their `bin/start` script can be executed: | ||
|
||
```shell | ||
JAVA_OPTS="-Ddeephaven.console.type=groovy" bin/start | ||
``` | ||
|
||
Alternatively, the uncompressed installation can be built directly by gradle: | ||
|
||
```shell | ||
./gradlew server-netty-app:installDist | ||
``` | ||
|
||
And then run via: | ||
|
||
```shell | ||
JAVA_OPTS="-Ddeephaven.console.type=groovy" ./server/netty-app/build/install/server/bin/start | ||
``` | ||
|
||
Finally, Gradle can be used to update the build and run the application in a single step: | ||
|
||
```shell | ||
./gradlew server-netty-app:run -Pgroovy | ||
``` | ||
|
||
### Internals | ||
|
||
`server-netty-app` is configured by default to include code that depends on JVM internals via | ||
`--add-opens java.management/sun.management=ALL-UNNAMED`. To disable this, set the gradle property `includeHotspotImpl` | ||
to `false`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
plugins { | ||
id 'application' | ||
id 'io.deephaven.project.register' | ||
} | ||
|
||
configurations { | ||
applicationDist | ||
} | ||
|
||
dependencies { | ||
implementation project(':server-netty') | ||
|
||
runtimeOnly project(':log-to-slf4j') | ||
runtimeOnly project(':logback-print-stream-globals') | ||
runtimeOnly project(':logback-logbuffer') | ||
Classpaths.inheritLogbackClassic(project) | ||
} | ||
|
||
distributions { | ||
main { | ||
distributionBaseName = 'server' | ||
} | ||
} | ||
|
||
def extraJvmArgs = [ | ||
'-server', | ||
'-XX:+UseG1GC', | ||
'-XX:MaxGCPauseMillis=100', | ||
'-XX:+UseStringDeduplication', | ||
'-XshowSettings:vm', | ||
] | ||
|
||
if (hasProperty('groovy')) { | ||
extraJvmArgs += ['-Ddeephaven.console.type=groovy'] | ||
} | ||
|
||
if (property('includeHotspotImpl') == 'true') { | ||
dependencies { | ||
runtimeOnly project(':hotspot-impl') | ||
} | ||
extraJvmArgs += ['--add-opens', 'java.management/sun.management=ALL-UNNAMED'] | ||
} | ||
|
||
tasks.withType(JavaExec).configureEach { | ||
// This appends to the existing jvm args, so that java-open-nio still takes effect | ||
jvmArgs extraJvmArgs | ||
} | ||
|
||
tasks.withType(CreateStartScripts).configureEach { | ||
defaultJvmOpts += extraJvmArgs | ||
} | ||
|
||
applicationName = 'start' | ||
mainClassName = 'io.deephaven.server.netty.NettyAppMain' | ||
|
||
artifacts { | ||
applicationDist project.tasks.findByName('distTar') | ||
} | ||
|
||
apply plugin: 'io.deephaven.java-open-nio' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
io.deephaven.project.ProjectType=JAVA_LOCAL | ||
includeHotspotImpl=true |
11 changes: 11 additions & 0 deletions
11
server/netty-app/src/main/java/io/deephaven/server/netty/NettyAppMain.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package io.deephaven.server.netty; | ||
|
||
import java.io.IOException; | ||
import java.util.concurrent.TimeoutException; | ||
|
||
public class NettyAppMain { | ||
public static void main(String[] args) | ||
throws IOException, InterruptedException, ClassNotFoundException, TimeoutException { | ||
NettyMain.main(args); | ||
} | ||
} |
Oops, something went wrong.