structurizr / lite

Structurizr Lite
https://docs.structurizr.com/lite
MIT License
232 stars 28 forks source link

Structurizr lite docker image, out of memory #4

Closed andre-aktivconsultancy closed 1 year ago

andre-aktivconsultancy commented 1 year ago

I am trying to run structurizr/lite and it hits out of memory issues.

stdout:

[0.002s][warning][os,thread] Failed to start thread "GC Thread#0" - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create worker GC thread. Out of system resources.
# An error report file with more information is saved as:
# //hs_err_pid12.log

hs_err_pidN.log:

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create worker GC thread. Out of system resources.
# Possible reasons:
#   The system is out of physical RAM or swap space
#   The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
#   JVM is running with Zero Based Compressed Oops mode in which the Java heap is
#     placed in the first 32GB address space. The Java Heap base address is the
#     maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress
#     to set the Java Heap base and to place the Java Heap above 32GB virtual address.
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (workerManager.hpp:87), pid=13, tid=13
#
# JRE version:  (17.0.4+8) (build )
# Java VM: OpenJDK 64-Bit Server VM (17.0.4+8, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to //core.13)
#

---------------  S U M M A R Y ------------

Command Line: -Xms1G -Xmx5G /usr/local/structurizr-lite.war

Host: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz, 8 cores, 31G, Ubuntu 22.04.1 LTS
Time: Mon Sep 26 06:24:41 2022 UTC elapsed time: 0.001758 seconds (0d 0h 0m 0s)

---------------  T H R E A D  ---------------

Current thread (0x0000557f19961cf0):  JavaThread "Unknown thread" [_thread_in_vm, id=13, stack(0x00007ffe46424000,0x00007ffe46c24000)]

Stack: [0x00007ffe46424000,0x00007ffe46c24000],  sp=0x00007ffe46c1e690,  free space=8169k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xed8f41]  VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x1a1
V  [libjvm.so+0xed9b0d]  VMError::report_and_die(Thread*, char const*, int, unsigned long, VMErrorType, char const*, __va_list_tag*)+0x2d
V  [libjvm.so+0x603593]  report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*, ...)+0xc3
V  [libjvm.so+0xf0d13f]  WorkerManager::add_workers(WorkGang*, unsigned int, unsigned int, unsigned int, os::ThreadType, bool)+0x18f
V  [libjvm.so+0xf0d2da]  WorkGang::initialize_workers()+0x4a
V  [libjvm.so+0x6e9631]  G1CollectedHeap::initialize()+0x6c1
V  [libjvm.so+0xe874f2]  universe_init()+0xd2
V  [libjvm.so+0x7f5b17]  init_globals()+0x37
V  [libjvm.so+0xe5e6e0]  Threads::create_vm(JavaVMInitArgs*, bool*)+0x3a0
V  [libjvm.so+0x8b3062]  JNI_CreateJavaVM+0x52
C  [libjli.so+0x4a1f]  JavaMain+0x8f
C  [libjli.so+0x9a90]  CallJavaMainInNewThread+0xb0
C  [libjli.so+0x6a0d]  ContinueInNewThread+0x5d
C  [libjli.so+0x8166]  JLI_Launch+0x1566
C  [java+0x1203]

---------------  P R O C E S S  ---------------

Threads class SMR info:
_java_thread_list=0x00007f1721c4c3a0, length=0, elements={
}

Java Threads: ( => current thread )

Other Threads:

[error occurred during error reporting (printing all threads), id 0xb, SIGSEGV (0xb) at pc=0x00007f172100fe20]

VM state: not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x0000557f1995f680] Heap_lock - owner thread: 0x0000557f19961cf0

Heap address: 0x00000006c0000000, size: 5120 MB, Compressed Oops mode: Zero based, Oop shift amount: 3

CDS archive(s) mapped at: [0x0000000000000000-0x0000000000000000-0x0000000000000000), size 0, SharedBaseAddress: 0x0000000800000000, ArchiveRelocationMode: 0.
Narrow klass base: 0x0000000000000000, Narrow klass shift: 0, Narrow klass range: 0x0

GC Precious Log:
<Empty>

Heap:
 garbage-first heap   total 0K, used 0K [0x00000006c0000000, 0x0000000800000000)
  region size 4096K, 0 young (0K), 0 survivors (0K)

[error occurred during error reporting (printing heap information), id 0xb, SIGSEGV (0xb) at pc=0x00007f17215d197a]

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Classes unloaded (0 events):
No events

Classes redefined (0 events):
No events

Internal exceptions (0 events):
No events

VM Operations (0 events):
No events

Events (2 events):
Event: 0.001 Protecting memory [0x00007ffe46424000,0x00007ffe46428000] with protection modes 0
Event: 0.001 Loaded shared library /opt/java/openjdk/lib/libjava.so

Dynamic libraries:
6c0000000-800000000 ---p 00000000 00:00 0 
557f18a7d000-557f18a7e000 r--p 00000000 00:164 3732201                   /opt/java/openjdk/bin/java
557f18a7e000-557f18a7f000 r-xp 00001000 00:164 3732201                   /opt/java/openjdk/bin/java
557f18a7f000-557f18a80000 r--p 00002000 00:164 3732201                   /opt/java/openjdk/bin/java
557f18a80000-557f18a81000 r--p 00002000 00:164 3732201                   /opt/java/openjdk/bin/java
557f18a81000-557f18a82000 rw-p 00003000 00:164 3732201                   /opt/java/openjdk/bin/java
557f19928000-557f199f7000 rw-p 00000000 00:00 0                          [heap]
7f16ff987000-7f16ffd72000 rw-p 00000000 00:00 0 
7f16ffd72000-7f16ffd73000 ---p 00000000 00:00 0 
7f16ffd73000-7f16ffec7000 rw-p 00000000 00:00 0 
7f16ffec7000-7f170bcc7000 ---p 00000000 00:00 0 
7f170bcc7000-7f170c4d4000 rw-p 00000000 00:00 0 
7f170c4d4000-7f170c5ba000 ---p 00000000 00:00 0 
7f170c5ba000-7f170c5bf000 rw-p 00000000 00:00 0 
7f170c5bf000-7f170c6a5000 ---p 00000000 00:00 0 
7f170c6a5000-7f170c6aa000 rw-p 00000000 00:00 0 
7f170c6aa000-7f170c6b1000 ---p 00000000 00:00 0 
7f170c6b1000-7f170c921000 rwxp 00000000 00:00 0 
7f170c921000-7f170cc43000 ---p 00000000 00:00 0 
7f170cc43000-7f170ceb3000 rwxp 00000000 00:00 0 
7f170ceb3000-7f171417a000 ---p 00000000 00:00 0 
7f171417a000-7f17143ea000 rwxp 00000000 00:00 0 
7f17143ea000-7f171b6b1000 ---p 00000000 00:00 0 
7f171b6b1000-7f171b6be000 r--p 00000000 00:164 3732416                   /opt/java/openjdk/lib/libjava.so
7f171b6be000-7f171b6d0000 r-xp 0000d000 00:164 3732416                   /opt/java/openjdk/lib/libjava.so
7f171b6d0000-7f171b6d6000 r--p 0001f000 00:164 3732416                   /opt/java/openjdk/lib/libjava.so
7f171b6d6000-7f171b6d7000 ---p 00025000 00:164 3732416                   /opt/java/openjdk/lib/libjava.so
7f171b6d7000-7f171b6d8000 r--p 00025000 00:164 3732416                   /opt/java/openjdk/lib/libjava.so
7f171b6d8000-7f171b6d9000 rw-p 00026000 00:164 3732416                   /opt/java/openjdk/lib/libjava.so
7f171b6d9000-7f171b6da000 rw-p 00000000 00:00 0 
7f171b6da000-7f171b6e2000 rw-s 00000000 00:164 3723862                   /tmp/hsperfdata_root/13
7f171b6e2000-7f172070e000 r--s 00000000 00:164 3732439                   /opt/java/openjdk/lib/modules
7f172070e000-7f1720712000 r--p 00000000 00:164 3732420                   /opt/java/openjdk/lib/libjimage.so
7f1720712000-7f1720725000 r-xp 00004000 00:164 3732420                   /opt/java/openjdk/lib/libjimage.so
7f1720725000-7f172072b000 r--p 00017000 00:164 3732420                   /opt/java/openjdk/lib/libjimage.so
7f172072b000-7f172072d000 r--p 0001c000 00:164 3732420                   /opt/java/openjdk/lib/libjimage.so
7f172072d000-7f172072e000 rw-p 0001e000 00:164 3732420                   /opt/java/openjdk/lib/libjimage.so
7f172072e000-7f172082e000 rw-p 00000000 00:00 0 
7f172082e000-7f172083c000 r--p 00000000 00:164 3724783                   /usr/lib/x86_64-linux-gnu/libm.so.6
7f172083c000-7f17208b8000 r-xp 0000e000 00:164 3724783                   /usr/lib/x86_64-linux-gnu/libm.so.6
7f17208b8000-7f1720913000 r--p 0008a000 00:164 3724783                   /usr/lib/x86_64-linux-gnu/libm.so.6
7f1720913000-7f1720914000 r--p 000e4000 00:164 3724783                   /usr/lib/x86_64-linux-gnu/libm.so.6
7f1720914000-7f1720915000 rw-p 000e5000 00:164 3724783                   /usr/lib/x86_64-linux-gnu/libm.so.6
7f1720915000-7f1720916000 r--p 00000000 00:164 3724828                   /usr/lib/x86_64-linux-gnu/librt.so.1
7f1720916000-7f1720917000 r-xp 00001000 00:164 3724828                   /usr/lib/x86_64-linux-gnu/librt.so.1
7f1720917000-7f1720918000 r--p 00002000 00:164 3724828                   /usr/lib/x86_64-linux-gnu/librt.so.1
7f1720918000-7f1720919000 r--p 00002000 00:164 3724828                   /usr/lib/x86_64-linux-gnu/librt.so.1
7f1720919000-7f172091a000 rw-p 00003000 00:164 3724828                   /usr/lib/x86_64-linux-gnu/librt.so.1
7f172091a000-7f1720b6b000 r--p 00000000 00:164 3732449                   /opt/java/openjdk/lib/server/libjvm.so
7f1720b6b000-7f1721884000 r-xp 00251000 00:164 3732449                   /opt/java/openjdk/lib/server/libjvm.so
7f1721884000-7f1721b0f000 r--p 00f6a000 00:164 3732449                   /opt/java/openjdk/lib/server/libjvm.so
7f1721b0f000-7f1721bc8000 r--p 011f4000 00:164 3732449                   /opt/java/openjdk/lib/server/libjvm.so
7f1721bc8000-7f1721bfd000 rw-p 012ad000 00:164 3732449                   /opt/java/openjdk/lib/server/libjvm.so
7f1721bfd000-7f1721c5a000 rw-p 00000000 00:00 0 
7f1721c5a000-7f1721c82000 r--p 00000000 00:164 3724731                   /usr/lib/x86_64-linux-gnu/libc.so.6
7f1721c82000-7f1721e17000 r-xp 00028000 00:164 3724731                   /usr/lib/x86_64-linux-gnu/libc.so.6
7f1721e17000-7f1721e6f000 r--p 001bd000 00:164 3724731                   /usr/lib/x86_64-linux-gnu/libc.so.6
7f1721e6f000-7f1721e73000 r--p 00214000 00:164 3724731                   /usr/lib/x86_64-linux-gnu/libc.so.6
7f1721e73000-7f1721e75000 rw-p 00218000 00:164 3724731                   /usr/lib/x86_64-linux-gnu/libc.so.6
7f1721e75000-7f1721e82000 rw-p 00000000 00:00 0 
7f1721e82000-7f1721e83000 r--p 00000000 00:164 3724745                   /usr/lib/x86_64-linux-gnu/libdl.so.2
7f1721e83000-7f1721e84000 r-xp 00001000 00:164 3724745                   /usr/lib/x86_64-linux-gnu/libdl.so.2
7f1721e84000-7f1721e85000 r--p 00002000 00:164 3724745                   /usr/lib/x86_64-linux-gnu/libdl.so.2
7f1721e85000-7f1721e86000 r--p 00002000 00:164 3724745                   /usr/lib/x86_64-linux-gnu/libdl.so.2
7f1721e86000-7f1721e87000 rw-p 00003000 00:164 3724745                   /usr/lib/x86_64-linux-gnu/libdl.so.2
7f1721e87000-7f1721e88000 r--p 00000000 00:164 3724826                   /usr/lib/x86_64-linux-gnu/libpthread.so.0
7f1721e88000-7f1721e89000 r-xp 00001000 00:164 3724826                   /usr/lib/x86_64-linux-gnu/libpthread.so.0
7f1721e89000-7f1721e8a000 r--p 00002000 00:164 3724826                   /usr/lib/x86_64-linux-gnu/libpthread.so.0
7f1721e8a000-7f1721e8b000 r--p 00002000 00:164 3724826                   /usr/lib/x86_64-linux-gnu/libpthread.so.0
7f1721e8b000-7f1721e8c000 rw-p 00003000 00:164 3724826                   /usr/lib/x86_64-linux-gnu/libpthread.so.0
7f1721e8c000-7f1721e8f000 r--p 00000000 00:164 3732421                   /opt/java/openjdk/lib/libjli.so
7f1721e8f000-7f1721e99000 r-xp 00003000 00:164 3732421                   /opt/java/openjdk/lib/libjli.so
7f1721e99000-7f1721e9c000 r--p 0000d000 00:164 3732421                   /opt/java/openjdk/lib/libjli.so
7f1721e9c000-7f1721e9d000 ---p 00010000 00:164 3732421                   /opt/java/openjdk/lib/libjli.so
7f1721e9d000-7f1721e9e000 r--p 00010000 00:164 3732421                   /opt/java/openjdk/lib/libjli.so
7f1721e9e000-7f1721e9f000 rw-p 00011000 00:164 3732421                   /opt/java/openjdk/lib/libjli.so
7f1721e9f000-7f1721ea1000 r--p 00000000 00:164 3724862                   /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
7f1721ea1000-7f1721eb2000 r-xp 00002000 00:164 3724862                   /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
7f1721eb2000-7f1721eb8000 r--p 00013000 00:164 3724862                   /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
7f1721eb8000-7f1721eb9000 ---p 00019000 00:164 3724862                   /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
7f1721eb9000-7f1721eba000 r--p 00019000 00:164 3724862                   /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
7f1721eba000-7f1721ebb000 rw-p 0001a000 00:164 3724862                   /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
7f1721ebc000-7f1721ebd000 ---p 00000000 00:00 0 
7f1721ebd000-7f1721ebe000 r--p 00000000 00:00 0 
7f1721ebe000-7f1721ec0000 rw-p 00000000 00:00 0 
7f1721ec0000-7f1721ec2000 r--p 00000000 00:164 3724713                   /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
7f1721ec2000-7f1721eec000 r-xp 00002000 00:164 3724713                   /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
7f1721eec000-7f1721ef7000 r--p 0002c000 00:164 3724713                   /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
7f1721ef7000-7f1721ef8000 ---p 00000000 00:00 0 
7f1721ef8000-7f1721efa000 r--p 00037000 00:164 3724713                   /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
7f1721efa000-7f1721efc000 rw-p 00039000 00:164 3724713                   /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
7ffe46424000-7ffe46428000 ---p 00000000 00:00 0 
7ffe46c03000-7ffe46c24000 rw-p 00000000 00:00 0                          [stack]
7ffe46c77000-7ffe46c7b000 r--p 00000000 00:00 0                          [vvar]
7ffe46c7b000-7ffe46c7d000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 --xp 00000000 00:00 0                  [vsyscall]

VM Arguments:
jvm_args: -Xms1G -Xmx5G 
java_command: /usr/local/structurizr-lite.war
java_class_path (initial): /usr/local/structurizr-lite.war
Launcher Type: SUN_STANDARD

[Global flags]
     intx CICompilerCount                          = 4                                         {product} {ergonomic}
     uint ConcGCThreads                            = 2                                         {product} {ergonomic}
     uint G1ConcRefinementThreads                  = 8                                         {product} {ergonomic}
   size_t G1HeapRegionSize                         = 4194304                                   {product} {ergonomic}
    uintx GCDrainStackTargetSize                   = 64                                        {product} {ergonomic}
   size_t InitialHeapSize                          = 1073741824                                {product} {command line}
   size_t MarkStackSize                            = 4194304                                   {product} {ergonomic}
   size_t MaxHeapSize                              = 5368709120                                {product} {command line}
   size_t MinHeapDeltaBytes                        = 4194304                                   {product} {ergonomic}
   size_t MinHeapSize                              = 1073741824                                {product} {command line}
    uintx NonNMethodCodeHeapSize                   = 5839372                                {pd product} {ergonomic}
    uintx NonProfiledCodeHeapSize                  = 122909434                              {pd product} {ergonomic}
    uintx ProfiledCodeHeapSize                     = 122909434                              {pd product} {ergonomic}
    uintx ReservedCodeCacheSize                    = 251658240                              {pd product} {ergonomic}
     bool SegmentedCodeCache                       = true                                      {product} {ergonomic}
   size_t SoftMaxHeapSize                          = 5368709120                             {manageable} {ergonomic}
     bool UseCompressedClassPointers               = true                           {product lp64_product} {ergonomic}
     bool UseCompressedOops                        = true                           {product lp64_product} {ergonomic}
     bool UseG1GC                                  = true                                      {product} {ergonomic}

Logging:
Log output configuration:
 #0: stdout all=warning uptime,level,tags
 structurizr/structurizr#1: stderr all=off uptime,level,tags

Environment Variables:
JAVA_HOME=/opt/java/openjdk
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
TERM=xterm

Signal Handlers:
   SIGSEGV: crash_handler in libjvm.so, mask=11100100010111111101111111111110, flags=SA_RESTART|SA_SIGINFO
    SIGBUS: crash_handler in libjvm.so, mask=11100100010111111101111111111110, flags=SA_RESTART|SA_SIGINFO
    SIGFPE: crash_handler in libjvm.so, mask=11100100010111111101111111111110, flags=SA_RESTART|SA_SIGINFO
   SIGPIPE: javaSignalHandler in libjvm.so, mask=11100100010111111101111111111110, flags=SA_RESTART|SA_SIGINFO
   SIGXFSZ: javaSignalHandler in libjvm.so, mask=11100100010111111101111111111110, flags=SA_RESTART|SA_SIGINFO
    SIGILL: crash_handler in libjvm.so, mask=11100100010111111101111111111110, flags=SA_RESTART|SA_SIGINFO
   SIGUSR2: SR_handler in libjvm.so, mask=00000000000000000000000000000000, flags=SA_RESTART|SA_SIGINFO
    SIGHUP: SIG_DFL, mask=00000000000000000000000000000000, flags=none
    SIGINT: SIG_DFL, mask=00000000000000000000000000000000, flags=none
   SIGTERM: SIG_DFL, mask=00000000000000000000000000000000, flags=none
   SIGQUIT: javaSignalHandler in libjvm.so, mask=11100100010111111101111111111110, flags=SA_RESTART|SA_SIGINFO
   SIGTRAP: crash_handler in libjvm.so, mask=11100100010111111101111111111110, flags=SA_RESTART|SA_SIGINFO

---------------  S Y S T E M  ---------------

OS:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
uname: Linux 5.15.0-48-generic structurizr/structurizr#54-Ubuntu SMP Fri Aug 26 13:26:29 UTC 2022 x86_64
OS uptime: 0 days 0:18 hours
libc: glibc 2.35 NPTL 2.35 
rlimit (soft/hard): STACK 8192k/infinity , CORE infinity/infinity , NPROC infinity/infinity , NOFILE 1048576/1048576 , AS infinity/infinity , CPU infinity/infinity , DATA infinity/infinity , FSIZE infinity/infinity , MEMLOCK 64k/64k
load average: 0.44 0.87 1.01

/proc/meminfo:
MemTotal:       32875028 kB
MemFree:        17946604 kB
MemAvailable:   25609248 kB
Buffers:          319380 kB
Cached:          7538476 kB
SwapCached:            0 kB
Active:          3366916 kB
Inactive:       10923012 kB
Active(anon):      17380 kB
Inactive(anon):  6438864 kB
Active(file):    3349536 kB
Inactive(file):  4484148 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2097148 kB
SwapFree:        2097148 kB
Dirty:              1256 kB
Writeback:             0 kB
AnonPages:       6432052 kB
Mapped:          1183400 kB
Shmem:             81560 kB
KReclaimable:     292312 kB
Slab:             434644 kB
SReclaimable:     292312 kB
SUnreclaim:       142332 kB
KernelStack:       24944 kB
PageTables:        44844 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    18534660 kB
Committed_AS:   17892192 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       64744 kB
VmallocChunk:          0 kB
Percpu:            10272 kB
HardwareCorrupted:     0 kB
AnonHugePages:     22528 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:      405440 kB
DirectMap2M:    33148928 kB

/sys/kernel/mm/transparent_hugepage/enabled: always [madvise] never
/sys/kernel/mm/transparent_hugepage/defrag (defrag/compaction efforts parameter): always defer defer+madvise [madvise] never

Process Memory:
Virtual Size: 5806540K (peak: 5806540K)
Resident Set Size: 18448K (peak: 18448K) (anon: 5900K, file: 12548K, shmem: 0K)
Swapped out: 0K
C-Heap outstanding allocations: 12997K, retained: 66K
glibc malloc tunables: (default)

/proc/sys/kernel/threads-max (system-wide limit on the number of threads): 255943
/proc/sys/vm/max_map_count (maximum number of memory map areas a process may have): 65530
/proc/sys/kernel/pid_max (system-wide limit on number of process identifiers): 4194304

container (cgroup) information:
container_type: cgroupv2
cpu_cpuset_cpus: not supported
cpu_memory_nodes: not supported
active_processor_count: 8
cpu_quota: no quota
cpu_period: 100000
cpu_shares: no shares
memory_limit_in_bytes: unlimited
memory_and_swap_limit_in_bytes: unlimited
memory_soft_limit_in_bytes: unlimited
memory_usage_in_bytes: 7480 k
memory_max_usage_in_bytes: not supported
maximum number of tasks: 38391
current number of tasks: 2

KVM virtualization detected
Steal ticks since vm start: 0
Steal ticks percentage since vm start:  0.000

CPU: total 8 (initial active 8) (8 cores per cpu, 1 threads per core) family 6 model 158 stepping 13 microcode 0x0, cx8, cmov, fxsr, mmx, 3dnowpref, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, lzcnt, tsc, tscinvbit, avx, avx2, aes, clmul, vzeroupper, clflush, clflushopt, hv
CPU Model and flags from /proc/cpuinfo:
model name  : Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq vmx ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single tpr_shadow vnmi flexpriority vpid fsgsbase avx2 invpcid rdseed clflushopt md_clear flush_l1d arch_capabilities

Online cpus: 0-7
Offline cpus: 
BIOS frequency limitation: <Not Available>
Frequency switch latency (ns): <Not Available>
Available cpu frequencies: <Not Available>
Current governor: <Not Available>
Core performance/turbo boost: <Not Available>

Memory: 4k page, physical 32875028k(17946604k free), swap 2097148k(2097148k free)
Page Sizes: 4k

vm_info: OpenJDK 64-Bit Server VM (17.0.4+8) for linux-amd64 JRE (17.0.4+8), built on Jul 19 2022 00:00:00 by "temurin" with gcc 10.3.0

END.

I tried tweaking the memory limits a bit (java -jar -Xms6G -Xmx8G /usr/local/structurizr-lite.war) but that yielded the same result. I ran free -h from the docker container context:

root@7f84bcb9477d:/# free -h
               total        used        free      shared  buff/cache   available
Mem:            31Gi       6.5Gi        17Gi        80Mi       7.8Gi        24Gi
Swap:          2.0Gi          0B       2.0Gi
simonbrowndotje commented 1 year ago

I've not seen this issue myself, but a Google search for the error message suggests updating Docker.

vlcinsky commented 1 year ago

I can confirm upgrading docker has helped.

structurize/lite version:

$ docker images|grep structurizr/lite
structurizr/lite  latest a1ec6cab28f4   44 hours ago    444MB

Docker versions:

To upgrade the docker I have used instruction https://docs.docker.com/engine/install/debian/#install-using-the-repository

My OS

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye
$ uname -a
Linux T810 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux