@appthreat/atom 0.15.1 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -16,14 +16,14 @@ const dirName = import.meta ? dirname(fileURLToPath(url)) : __dirname;
16
16
  const LOG4J_CONFIG = join(dirName, "plugins", "log4j2.xml");
17
17
  const ATOM_HOME = join(dirName, "plugins", "atom-1.0.0");
18
18
  const APP_LIB_DIR = join(ATOM_HOME, "lib");
19
- const freeMemoryGB = Math.floor(freemem() / 1024 / 1024 / 1024);
19
+ const freeMemoryGB = Math.max(Math.floor(freemem() / 1024 / 1024 / 1024), 4);
20
20
  const JVM_ARGS =
21
21
  "-XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:+UnlockDiagnosticVMOptions -XX:G1SummarizeRSetStatsPeriod=1";
22
22
  const JAVA_OPTS = `${process.env.JAVA_OPTS || ""} -Xms${Math.round(
23
23
  Math.floor(freeMemoryGB / 2)
24
24
  )}G -Xmx${freeMemoryGB}G ${JVM_ARGS}`;
25
25
  const APP_MAIN_CLASS = "io.appthreat.atom.Atom";
26
- let APP_CLASSPATH = join(APP_LIB_DIR, "io.appthreat.atom-1.0.0-classpath.jar");
26
+ const APP_CLASSPATH = join(APP_LIB_DIR, "io.appthreat.atom-1.0.0-classpath.jar");
27
27
  let JAVACMD = "java";
28
28
  if (process.env.JAVA_HOME) {
29
29
  JAVACMD = join(process.env.JAVA_HOME, "bin", "java" + (isWin ? ".exe" : ""));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appthreat/atom",
3
- "version": "0.15.1",
3
+ "version": "0.17.0",
4
4
  "description": "Create atom (⚛) representation for your application, packages and libraries",
5
5
  "exports": "./index.js",
6
6
  "type": "module",