Skip to content

Commit

Permalink
check maxMemory instead of totalMemory
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Koohafkan authored and Michael Koohafkan committed Jun 7, 2024
1 parent af00dd1 commit 24733c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: dssrip2
Title: DSS R Interface Project (2)
Version: 0.8-0
Version: 0.8-1
Authors@R: c(
person("Michael", "Koohafkan", , "michael.c.koohafkan@usace.army.mil", role = c("aut", "cre")),
person("Evan", "Heisman", , "evan.a.heisman@usace.army.mil", role = c("aut")),
Expand Down
2 changes: 1 addition & 1 deletion R/initialize.r
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ dss_connect = function(dss_home = getOption("dss.home"),
assign("DSS_CONNECTED", TRUE, hecJavaConnectionDB)

# check JVM memory
java_mem = J("java.lang.Runtime")$getRuntime()$totalMemory()*1e-6
java_mem = J("java.lang.Runtime")$getRuntime()$maxMemory() * 1e-6
if (java_mem < 1000 && isFALSE(quietly)) {
warning("JVM was initialized with less than 1GB total memory ",
"which is likely not sufficient for DSS file operations. ",
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ You can install the `{dssrip2}` directly using
remotes::install_github("mkoohafkan/dssrip2")
```

To build the vignettes on install, use the argument `build_vignettes = TRUE`.

### Monolith

`{dssrip2}` can connect to HEC-Monolith libraries using
Expand Down

0 comments on commit 24733c8

Please sign in to comment.