Skip to content

Commit

Permalink
Synology NAS ships with Zero VM (which is extremely slow and has a ve…
Browse files Browse the repository at this point in the history
…ry low default memory limit)
  • Loading branch information
rednoah committed Oct 4, 2021
1 parent e396026 commit 1d2b171
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sysinfo.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,14 @@ if (jfx.version) {
// 32-bit Java HotSpot(TM) Client VM
try {
print 'JVM: '
println "${com.sun.jna.Platform.is64Bit() ? 64 : 32}-bit ${System.getProperty('java.vm.name')}"
def bit = com.sun.jna.Platform.is64Bit() ? '64-Bit' : '32-Bit'
def jvm = System.getProperty('java.vm.name')
println(jvm =~ bit ? jvm : "$bit $jvm")

// Synology NAS ships with Zero VM (which is extremely slow and has a very low default memory limit)
if (jvm =~ /Zero.VM/) {
log.warning "WARNING: BAD JVM = Zero VM"
}
} catch(Throwable error) {
println error
}
Expand Down

0 comments on commit 1d2b171

Please sign in to comment.