@appthreat/atom
Advanced tools
Comparing version 0.9.3 to 0.10.1
26
index.js
@@ -11,5 +11,5 @@ #!/usr/bin/env node | ||
const freeMemoryGB = Math.floor(os.freemem() / 1024 / 1024 / 1024); | ||
const JAVA_OPTS = `${ | ||
process.env.JAVA_OPTS || "" | ||
} -Xms${freeMemoryGB}G -Xmx${freeMemoryGB}G`; | ||
const JAVA_OPTS = `${process.env.JAVA_OPTS || ""} -Xms${Math.round( | ||
Math.floor(freeMemoryGB / 2) | ||
)}G -Xmx${freeMemoryGB}G -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:+UnlockDiagnosticVMOptions -XX:G1SummarizeRSetStatsPeriod=1`; | ||
const APP_MAIN_CLASS = "io.appthreat.atom.Atom"; | ||
@@ -31,12 +31,13 @@ let APP_CLASSPATH = path.join( | ||
const argv = process.argv.slice(2); | ||
const args = [ | ||
"-cp", | ||
atomLibs.join(path.delimiter), | ||
`-Dlog4j.configurationFile=${LOG4J_CONFIG}`, | ||
APP_MAIN_CLASS, | ||
...argv | ||
]; | ||
let args = JAVA_OPTS.trim() | ||
.split(" ") | ||
.concat([ | ||
"-cp", | ||
atomLibs.join(path.delimiter), | ||
`-Dlog4j.configurationFile=${LOG4J_CONFIG}`, | ||
APP_MAIN_CLASS, | ||
...argv | ||
]); | ||
const env = { | ||
...process.env, | ||
JAVA_OPTS, | ||
ATOM_HOME | ||
@@ -50,3 +51,4 @@ }; | ||
stdio: "inherit", | ||
stderr: "inherit" | ||
stderr: "inherit", | ||
timeout: undefined | ||
}); |
{ | ||
"name": "@appthreat/atom", | ||
"version": "0.9.3", | ||
"version": "0.10.1", | ||
"description": "Create atom (⚛) representation for your application, packages and libraries", | ||
@@ -16,3 +16,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"eslint": "^8.42.0" | ||
"eslint": "^8.43.0" | ||
}, | ||
@@ -19,0 +19,0 @@ "bin": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
78966002
509