insufficient memory problem

Also, please redirect this to the list:
dhis2-users@lists.launchpad.net

image

···

On Feb 20, 2018 2:46 PM, “Jalal” jabdulatef@immap.org wrote:

Dears ,

Please I need your support for the below issue :

I have a hosting on linode 2048 (My Ubuntu 16.04 LTS),and I’m trying to install DHIS2 through the below link:

https://docs.dhis2.org/2.28/en/implementer/html/install_server_setup.html

but I got the below error: advice please

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (mmap) failed to map 2796224512 bytes for committing reserved memory.

Possible reasons:

The system is out of physical RAM or swap space

In 32 bit mode, the process size limit was hit

Possible solutions:

Reduce memory load on the system

Increase physical memory or swap space

Check if swap backing store is full

Use 64 bit Java on a 64 bit OS

Decrease Java heap size (-Xmx/-Xms)

Decrease number of Java threads

Decrease Java thread stack sizes (-Xss)

Set larger code cache with -XX:ReservedCodeCacheSize=

This output file may be truncated or incomplete.

Out of Memory Error (os_linux.cpp:2640), pid=7874, tid=0x00007f5b42495700

JRE version: (8.0_161-b12) (build )

Java VM: Java HotSpot™ 64-Bit Server VM (25.161-b12 mixed mode linux-amd64 compressed oops)

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again

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

Current thread (0x00007f5b3c00a800): JavaThread “Unknown thread” [_thread_in_vm, id=7875, stack(0x00007f5b42395000,0x00007f5b42496000)]

Stack: [0x00007f5b42395000,0x00007f5b42496000], sp=0x00007f5b42494350, free space=1020k

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)

V [libjvm.so+0xacf94a] VMError::report_and_die()+0x2ba

V [libjvm.so+0x50050b] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x8b

V [libjvm.so+0x92b133] os::linux::commit_memory_impl(char*, unsigned long, bool)+0x103

V [libjvm.so+0x92b5c9] os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x29

V [libjvm.so+0x924c0a] os::commit_memory(char*, unsigned long, unsigned long, bool)+0x2a

V [libjvm.so+0xacb629] VirtualSpace::expand_by(unsigned long, bool)+0x199

V [libjvm.so+0xacc17e] VirtualSpace::initialize(ReservedSpace, unsigned long)+0xee

V [libjvm.so+0x5fec11] CardGeneration::CardGeneration(ReservedSpace, unsigned long, int, GenRemSet*)+0xf1

V [libjvm.so+0xa7225f] TenuredGeneration::TenuredGeneration(ReservedSpace, unsigned long, int, GenRemSet*)+0x5f

V [libjvm.so+0x5fff19] GenerationSpec::init(ReservedSpace, int, GenRemSet*)+0x339

V [libjvm.so+0x5eeaae] GenCollectedHeap::initialize()+0x1de

V [libjvm.so+0xa979f3] Universe::initialize_heap()+0xf3

V [libjvm.so+0xa97f5e] universe_init()+0x3e

V [libjvm.so+0x641fb5] init_globals()+0x65

V [libjvm.so+0xa7c5ae] Threads::create_vm(JavaVMInitArgs*, bool*)+0x23e

V [libjvm.so+0x6d6c24] JNI_CreateJavaVM+0x74

C [libjli.so+0x797e] JavaMain+0x9e

C [libpthread.so.0+0x76ba] start_thread+0xca

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

Java Threads: ( => current thread )

Other Threads:

=>0x00007f5b3c00a800 (exited) JavaThread “Unknown thread” [_thread_in_vm, id=7875, stack(0x00007f5b42395000,0x00007f5b42496000)]

VM state:not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread: None

GC Heap History (0 events):

No events

Deoptimization events (0 events):

No events

Classes redefined (0 events):

No events

Internal exceptions (0 events):

No events

Events (0 events):

No events

Dynamic libraries:

00400000-00401000 r-xp 00000000 08:00 252076 /usr/lib/jvm/java-8-oracle/bin/java

00600000-00601000 rw-p 00000000 08:00 252076 /usr/lib/jvm/java-8-oracle/bin/java

021e2000-02203000 rw-p 00000000 00:00 0 [heap]

5eb400000-63e950000 rw-p 00000000 00:00 0

63e950000-687800000 —p 00000000 00:00 0

72e2b0000-7c0000000 —p 00000000 00:00 0

7f5b2af79000-7f5b2b3ac000 rw-p 00000000 00:00 0

7f5b2b3ac000-7f5b2bfb7000 —p 00000000 00:00 0

7f5b2bfb7000-7f5b2bfc2000 rw-p 00000000 00:00 0

7f5b2bfc2000-7f5b2c378000 —p 00000000 00:00 0

7f5b2c378000-7f5b2c5e8000 rwxp 00000000 00:00 0

7f5b2c5e8000-7f5b3b378000 —p 00000000 00:00 0

7f5b3b378000-7f5b3b393000 r-xp 00000000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b393000-7f5b3b593000 —p 0001b000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b593000-7f5b3b594000 rw-p 0001b000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b594000-7f5b3b59f000 r-xp 00000000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b59f000-7f5b3b79e000 —p 0000b000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b79e000-7f5b3b79f000 r–p 0000a000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b79f000-7f5b3b7a0000 rw-p 0000b000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b7a0000-7f5b3b7a6000 rw-p 00000000 00:00 0

7f5b3b7a6000-7f5b3b7b1000 r-xp 00000000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b7b1000-7f5b3b9b0000 —p 0000b000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b0000-7f5b3b9b1000 r–p 0000a000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b1000-7f5b3b9b2000 rw-p 0000b000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b2000-7f5b3b9c8000 r-xp 00000000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3b9c8000-7f5b3bbc7000 —p 00016000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc7000-7f5b3bbc8000 r–p 00015000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc8000-7f5b3bbc9000 rw-p 00016000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc9000-7f5b3bbcb000 rw-p 00000000 00:00 0

7f5b3bbcb000-7f5b3bbd3000 r-xp 00000000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bbd3000-7f5b3bdd2000 —p 00008000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd2000-7f5b3bdd3000 r–p 00007000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd3000-7f5b3bdd4000 rw-p 00008000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd4000-7f5b3bdff000 r-xp 00000000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3bdff000-7f5b3bffe000 —p 0002b000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3bffe000-7f5b3c000000 rw-p 0002a000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3c000000-7f5b3c037000 rw-p 00000000 00:00 0

7f5b3c037000-7f5b40000000 —p 00000000 00:00 0

7f5b40074000-7f5b40164000 rw-p 00000000 00:00 0

7f5b40164000-7f5b40171000 r-xp 00000000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40171000-7f5b40371000 —p 0000d000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40371000-7f5b40373000 rw-p 0000d000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40373000-7f5b4037a000 r-xp 00000000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4037a000-7f5b40579000 —p 00007000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b40579000-7f5b4057a000 r–p 00006000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4057a000-7f5b4057b000 rw-p 00007000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4057b000-7f5b40683000 r-xp 00000000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40683000-7f5b40882000 —p 00108000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40882000-7f5b40883000 r–p 00107000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40883000-7f5b40884000 rw-p 00108000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40884000-7f5b4155d000 r-xp 00000000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b4155d000-7f5b4175c000 —p 00cd9000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b4175c000-7f5b41835000 rw-p 00cd8000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b41835000-7f5b41881000 rw-p 00000000 00:00 0

7f5b41881000-7f5b41a41000 r-xp 00000000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41a41000-7f5b41c41000 —p 001c0000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c41000-7f5b41c45000 r–p 001c0000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c45000-7f5b41c47000 rw-p 001c4000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c47000-7f5b41c4b000 rw-p 00000000 00:00 0

7f5b41c4b000-7f5b41c4e000 r-xp 00000000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41c4e000-7f5b41e4d000 —p 00003000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4d000-7f5b41e4e000 r–p 00002000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4e000-7f5b41e4f000 rw-p 00003000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4f000-7f5b41e65000 r-xp 00000000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b41e65000-7f5b42064000 —p 00016000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b42064000-7f5b42065000 rw-p 00015000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b42065000-7f5b4207d000 r-xp 00000000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4207d000-7f5b4227c000 —p 00018000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227c000-7f5b4227d000 r–p 00017000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227d000-7f5b4227e000 rw-p 00018000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227e000-7f5b42282000 rw-p 00000000 00:00 0

7f5b42282000-7f5b422a8000 r-xp 00000000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b42395000-7f5b42398000 —p 00000000 00:00 0

7f5b42398000-7f5b4249b000 rw-p 00000000 00:00 0

7f5b4249d000-7f5b424a5000 rw-s 00000000 08:00 131302 /tmp/hsperfdata_dhis/7874

7f5b424a5000-7f5b424a6000 rw-p 00000000 00:00 0

7f5b424a6000-7f5b424a7000 r–p 00000000 00:00 0

7f5b424a7000-7f5b424a8000 r–p 00025000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b424a8000-7f5b424a9000 rw-p 00026000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b424a9000-7f5b424aa000 rw-p 00000000 00:00 0

7ffedea4e000-7ffedea6f000 rw-p 00000000 00:00 0 [stack]

7ffedeaea000-7ffedeaed000 r–p 00000000 00:00 0 [vvar]

7ffedeaed000-7ffedeaef000 r-xp 00000000 00:00 0 [vdso]

ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

VM Arguments:

jvm_args: -Djava.util.logging.config.file=/home/dhis/tomcat-dhis/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xmx7500m -Xms4000m -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -Dcatalina.base=/home/dhis/tomcat-dhis -Dcatalina.home=/usr/share/tomcat7 -Djava.io.tmpdir=/home/dhis/tomcat-dhis/temp

java_command: org.apache.catalina.startup.Bootstrap start

java_class_path (initial): /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar

Launcher Type: SUN_STANDARD

Environment Variables:

JAVA_HOME=/usr/lib/jvm/java-8-oracle/

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

USERNAME=dhis

SHELL=/bin/bash

Signal Handlers:

SIGSEGV: [libjvm.so+0xad01e0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGBUS: [libjvm.so+0xad01e0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGFPE: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGPIPE: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGXFSZ: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGILL: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGUSR2: [libjvm.so+0x9297f0], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO

SIGHUP: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGINT: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGTERM: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGQUIT: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

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

OS:DISTRIB_ID=Ubuntu

DISTRIB_RELEASE=16.04

DISTRIB_CODENAME=xenial

DISTRIB_DESCRIPTION=“Ubuntu 16.04.3 LTS”

uname:Linux 4.14.17-x86_64-linode99 #1 SMP Tue Feb 6 19:09:58 UTC 2018 x86_64

libc:glibc 2.23 NPTL 2.23

rlimit: STACK 8192k, CORE 0k, NPROC 7929, NOFILE 1048576, AS infinity

load average:0.00 0.00 0.00

/proc/meminfo:

MemTotal: 2035604 kB

MemFree: 24152 kB

MemAvailable: 1236104 kB

Buffers: 31928 kB

Cached: 1174788 kB

SwapCached: 0 kB

Active: 845296 kB

Inactive: 1021688 kB

Active(anon): 661804 kB

Inactive(anon): 17328 kB

Active(file): 183492 kB

Inactive(file): 1004360 kB

Unevictable: 0 kB

Mlocked: 0 kB

SwapTotal: 1048572 kB

SwapFree: 1048572 kB

Dirty: 60 kB

Writeback: 0 kB

AnonPages: 660328 kB

Mapped: 64884 kB

Shmem: 18804 kB

Slab: 78460 kB

SReclaimable: 57136 kB

SUnreclaim: 21324 kB

KernelStack: 2520 kB

PageTables: 7460 kB

NFS_Unstable: 0 kB

Bounce: 0 kB

WritebackTmp: 0 kB

CommitLimit: 2066372 kB

Committed_AS: 6318628 kB

VmallocTotal: 34359738367 kB

VmallocUsed: 0 kB

VmallocChunk: 0 kB

DirectMap4k: 26488 kB

DirectMap2M: 2070528 kB

DirectMap1G: 0 kB

CPU:total 1 (initial active 1) (1 cores per cpu, 1 threads per core) family 6 model 63 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, lzcnt, tsc, bmi1, bmi2

/proc/cpuinfo:

processor : 0

vendor_id : GenuineIntel

cpu family : 6

model : 63

model name : Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz

stepping : 2

microcode : 0x1

cpu MHz : 2499.996

cache size : 16384 KB

physical id : 0

siblings : 1

core id : 0

cpu cores : 1

apicid : 0

initial apicid : 0

fpu : yes

fpu_exception : yes

cpuid level : 13

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm cpuid_fault invpcid_single pti retpoline fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt arat

bugs : cpu_meltdown spectre_v1 spectre_v2

bogomips : 5001.32

clflush size : 64

cache_alignment : 64

address sizes : 40 bits physical, 48 bits virtual

power management:

Memory: 4k page, physical 2035604k(24152k free), swap 1048572k(1048572k free)

vm_info: Java HotSpot™ 64-Bit Server VM (25.161-b12) for linux-amd64 JRE (1.8.0_161-b12), built on Dec 19 2017 16:12:43 by “java_re” with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)

time: Tue Feb 20 22:08:29 2018

elapsed time: 0 seconds (0d 0h 0m 0s)

=======================================================================================

dhis@dhis2_host:~$ tail -f tomcat-dhis/logs/catalina.out

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Feb 20, 2018 10:24:22 PM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deployment of web application archive /home/dhis/tomcat-dhis/webapps/ROOT.war has finished in 1,251 ms

Feb 20, 2018 10:24:22 PM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler [“http-bio-8080”]

Feb 20, 2018 10:24:22 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 1418 ms

Jalal Abdulatef | Information Management Officer | iMMAP

============================================

IMO for Emergency Health Response |UNICEF

     [](http://www.immap.org/)          

UNICEF Office, Nwakshot Street.

Sana’a - Yemen

E-Mail: jabdulatef@immap.org/ Mobile: (967) 711663152 / www.immap.org

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of iMMAP. The recipient should check this email and any attachments for the presence of viruses. iMMAP accepts no liability for any damage caused by any virus transmitted by this email.

iMMAP, 1300 Pennsylvania Avenue, N.W., Suite 470 Washington DC 20004, www.immap.org

Jalal,

I am sure there is not enough RAM on your linode VM. Please can you send the report of this command ‘vmstat -s’. From the manual you sent you need at least 12Gb RAM of which 8Gb should be allocated to the PostgresSQL.

image

···

On Tue, Feb 20, 2018 at 7:57 PM, Knut Staring knutst@gmail.com wrote:

Also, please redirect this to the list:
dhis2-users@lists.launchpad.net


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

On Feb 20, 2018 2:46 PM, “Jalal” jabdulatef@immap.org wrote:

Dears ,

Please I need your support for the below issue :

I have a hosting on linode 2048 (My Ubuntu 16.04 LTS),and I’m trying to install DHIS2 through the below link:

https://docs.dhis2.org/2.28/en/implementer/html/install_server_setup.html

but I got the below error: advice please

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (mmap) failed to map 2796224512 bytes for committing reserved memory.

Possible reasons:

The system is out of physical RAM or swap space

In 32 bit mode, the process size limit was hit

Possible solutions:

Reduce memory load on the system

Increase physical memory or swap space

Check if swap backing store is full

Use 64 bit Java on a 64 bit OS

Decrease Java heap size (-Xmx/-Xms)

Decrease number of Java threads

Decrease Java thread stack sizes (-Xss)

Set larger code cache with -XX:ReservedCodeCacheSize=

This output file may be truncated or incomplete.

Out of Memory Error (os_linux.cpp:2640), pid=7874, tid=0x00007f5b42495700

JRE version: (8.0_161-b12) (build )

Java VM: Java HotSpot™ 64-Bit Server VM (25.161-b12 mixed mode linux-amd64 compressed oops)

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again

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

Current thread (0x00007f5b3c00a800): JavaThread “Unknown thread” [_thread_in_vm, id=7875, stack(0x00007f5b42395000,0x00007f5b42496000)]

Stack: [0x00007f5b42395000,0x00007f5b42496000], sp=0x00007f5b42494350, free space=1020k

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)

V [libjvm.so+0xacf94a] VMError::report_and_die()+0x2ba

V [libjvm.so+0x50050b] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x8b

V [libjvm.so+0x92b133] os::linux::commit_memory_impl(char*, unsigned long, bool)+0x103

V [libjvm.so+0x92b5c9] os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x29

V [libjvm.so+0x924c0a] os::commit_memory(char*, unsigned long, unsigned long, bool)+0x2a

V [libjvm.so+0xacb629] VirtualSpace::expand_by(unsigned long, bool)+0x199

V [libjvm.so+0xacc17e] VirtualSpace::initialize(ReservedSpace, unsigned long)+0xee

V [libjvm.so+0x5fec11] CardGeneration::CardGeneration(ReservedSpace, unsigned long, int, GenRemSet*)+0xf1

V [libjvm.so+0xa7225f] TenuredGeneration::TenuredGeneration(ReservedSpace, unsigned long, int, GenRemSet*)+0x5f

V [libjvm.so+0x5fff19] GenerationSpec::init(ReservedSpace, int, GenRemSet*)+0x339

V [libjvm.so+0x5eeaae] GenCollectedHeap::initialize()+0x1de

V [libjvm.so+0xa979f3] Universe::initialize_heap()+0xf3

V [libjvm.so+0xa97f5e] universe_init()+0x3e

V [libjvm.so+0x641fb5] init_globals()+0x65

V [libjvm.so+0xa7c5ae] Threads::create_vm(JavaVMInitArgs*, bool*)+0x23e

V [libjvm.so+0x6d6c24] JNI_CreateJavaVM+0x74

C [libjli.so+0x797e] JavaMain+0x9e

C [libpthread.so.0+0x76ba] start_thread+0xca

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

Java Threads: ( => current thread )

Other Threads:

=>0x00007f5b3c00a800 (exited) JavaThread “Unknown thread” [_thread_in_vm, id=7875, stack(0x00007f5b42395000,0x00007f5b42496000)]

VM state:not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread: None

GC Heap History (0 events):

No events

Deoptimization events (0 events):

No events

Classes redefined (0 events):

No events

Internal exceptions (0 events):

No events

Events (0 events):

No events

Dynamic libraries:

00400000-00401000 r-xp 00000000 08:00 252076 /usr/lib/jvm/java-8-oracle/bin/java

00600000-00601000 rw-p 00000000 08:00 252076 /usr/lib/jvm/java-8-oracle/bin/java

021e2000-02203000 rw-p 00000000 00:00 0 [heap]

5eb400000-63e950000 rw-p 00000000 00:00 0

63e950000-687800000 —p 00000000 00:00 0

72e2b0000-7c0000000 —p 00000000 00:00 0

7f5b2af79000-7f5b2b3ac000 rw-p 00000000 00:00 0

7f5b2b3ac000-7f5b2bfb7000 —p 00000000 00:00 0

7f5b2bfb7000-7f5b2bfc2000 rw-p 00000000 00:00 0

7f5b2bfc2000-7f5b2c378000 —p 00000000 00:00 0

7f5b2c378000-7f5b2c5e8000 rwxp 00000000 00:00 0

7f5b2c5e8000-7f5b3b378000 —p 00000000 00:00 0

7f5b3b378000-7f5b3b393000 r-xp 00000000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b393000-7f5b3b593000 —p 0001b000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b593000-7f5b3b594000 rw-p 0001b000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b594000-7f5b3b59f000 r-xp 00000000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b59f000-7f5b3b79e000 —p 0000b000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b79e000-7f5b3b79f000 r–p 0000a000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b79f000-7f5b3b7a0000 rw-p 0000b000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b7a0000-7f5b3b7a6000 rw-p 00000000 00:00 0

7f5b3b7a6000-7f5b3b7b1000 r-xp 00000000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b7b1000-7f5b3b9b0000 —p 0000b000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b0000-7f5b3b9b1000 r–p 0000a000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b1000-7f5b3b9b2000 rw-p 0000b000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b2000-7f5b3b9c8000 r-xp 00000000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3b9c8000-7f5b3bbc7000 —p 00016000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc7000-7f5b3bbc8000 r–p 00015000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc8000-7f5b3bbc9000 rw-p 00016000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc9000-7f5b3bbcb000 rw-p 00000000 00:00 0

7f5b3bbcb000-7f5b3bbd3000 r-xp 00000000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bbd3000-7f5b3bdd2000 —p 00008000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd2000-7f5b3bdd3000 r–p 00007000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd3000-7f5b3bdd4000 rw-p 00008000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd4000-7f5b3bdff000 r-xp 00000000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3bdff000-7f5b3bffe000 —p 0002b000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3bffe000-7f5b3c000000 rw-p 0002a000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3c000000-7f5b3c037000 rw-p 00000000 00:00 0

7f5b3c037000-7f5b40000000 —p 00000000 00:00 0

7f5b40074000-7f5b40164000 rw-p 00000000 00:00 0

7f5b40164000-7f5b40171000 r-xp 00000000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40171000-7f5b40371000 —p 0000d000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40371000-7f5b40373000 rw-p 0000d000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40373000-7f5b4037a000 r-xp 00000000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4037a000-7f5b40579000 —p 00007000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b40579000-7f5b4057a000 r–p 00006000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4057a000-7f5b4057b000 rw-p 00007000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4057b000-7f5b40683000 r-xp 00000000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40683000-7f5b40882000 —p 00108000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40882000-7f5b40883000 r–p 00107000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40883000-7f5b40884000 rw-p 00108000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40884000-7f5b4155d000 r-xp 00000000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b4155d000-7f5b4175c000 —p 00cd9000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b4175c000-7f5b41835000 rw-p 00cd8000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b41835000-7f5b41881000 rw-p 00000000 00:00 0

7f5b41881000-7f5b41a41000 r-xp 00000000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41a41000-7f5b41c41000 —p 001c0000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c41000-7f5b41c45000 r–p 001c0000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c45000-7f5b41c47000 rw-p 001c4000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c47000-7f5b41c4b000 rw-p 00000000 00:00 0

7f5b41c4b000-7f5b41c4e000 r-xp 00000000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41c4e000-7f5b41e4d000 —p 00003000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4d000-7f5b41e4e000 r–p 00002000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4e000-7f5b41e4f000 rw-p 00003000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4f000-7f5b41e65000 r-xp 00000000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b41e65000-7f5b42064000 —p 00016000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b42064000-7f5b42065000 rw-p 00015000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b42065000-7f5b4207d000 r-xp 00000000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4207d000-7f5b4227c000 —p 00018000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227c000-7f5b4227d000 r–p 00017000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227d000-7f5b4227e000 rw-p 00018000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227e000-7f5b42282000 rw-p 00000000 00:00 0

7f5b42282000-7f5b422a8000 r-xp 00000000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b42395000-7f5b42398000 —p 00000000 00:00 0

7f5b42398000-7f5b4249b000 rw-p 00000000 00:00 0

7f5b4249d000-7f5b424a5000 rw-s 00000000 08:00 131302 /tmp/hsperfdata_dhis/7874

7f5b424a5000-7f5b424a6000 rw-p 00000000 00:00 0

7f5b424a6000-7f5b424a7000 r–p 00000000 00:00 0

7f5b424a7000-7f5b424a8000 r–p 00025000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b424a8000-7f5b424a9000 rw-p 00026000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b424a9000-7f5b424aa000 rw-p 00000000 00:00 0

7ffedea4e000-7ffedea6f000 rw-p 00000000 00:00 0 [stack]

7ffedeaea000-7ffedeaed000 r–p 00000000 00:00 0 [vvar]

7ffedeaed000-7ffedeaef000 r-xp 00000000 00:00 0 [vdso]

ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

VM Arguments:

jvm_args: -Djava.util.logging.config.file=/home/dhis/tomcat-dhis/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xmx7500m -Xms4000m -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -Dcatalina.base=/home/dhis/tomcat-dhis -Dcatalina.home=/usr/share/tomcat7 -Djava.io.tmpdir=/home/dhis/tomcat-dhis/temp

java_command: org.apache.catalina.startup.Bootstrap start

java_class_path (initial): /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar

Launcher Type: SUN_STANDARD

Environment Variables:

JAVA_HOME=/usr/lib/jvm/java-8-oracle/

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

USERNAME=dhis

SHELL=/bin/bash

Signal Handlers:

SIGSEGV: [libjvm.so+0xad01e0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGBUS: [libjvm.so+0xad01e0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGFPE: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGPIPE: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGXFSZ: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGILL: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGUSR2: [libjvm.so+0x9297f0], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO

SIGHUP: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGINT: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGTERM: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGQUIT: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

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

OS:DISTRIB_ID=Ubuntu

DISTRIB_RELEASE=16.04

DISTRIB_CODENAME=xenial

DISTRIB_DESCRIPTION=“Ubuntu 16.04.3 LTS”

uname:Linux 4.14.17-x86_64-linode99 #1 SMP Tue Feb 6 19:09:58 UTC 2018 x86_64

libc:glibc 2.23 NPTL 2.23

rlimit: STACK 8192k, CORE 0k, NPROC 7929, NOFILE 1048576, AS infinity

load average:0.00 0.00 0.00

/proc/meminfo:

MemTotal: 2035604 kB

MemFree: 24152 kB

MemAvailable: 1236104 kB

Buffers: 31928 kB

Cached: 1174788 kB

SwapCached: 0 kB

Active: 845296 kB

Inactive: 1021688 kB

Active(anon): 661804 kB

Inactive(anon): 17328 kB

Active(file): 183492 kB

Inactive(file): 1004360 kB

Unevictable: 0 kB

Mlocked: 0 kB

SwapTotal: 1048572 kB

SwapFree: 1048572 kB

Dirty: 60 kB

Writeback: 0 kB

AnonPages: 660328 kB

Mapped: 64884 kB

Shmem: 18804 kB

Slab: 78460 kB

SReclaimable: 57136 kB

SUnreclaim: 21324 kB

KernelStack: 2520 kB

PageTables: 7460 kB

NFS_Unstable: 0 kB

Bounce: 0 kB

WritebackTmp: 0 kB

CommitLimit: 2066372 kB

Committed_AS: 6318628 kB

VmallocTotal: 34359738367 kB

VmallocUsed: 0 kB

VmallocChunk: 0 kB

DirectMap4k: 26488 kB

DirectMap2M: 2070528 kB

DirectMap1G: 0 kB

CPU:total 1 (initial active 1) (1 cores per cpu, 1 threads per core) family 6 model 63 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, lzcnt, tsc, bmi1, bmi2

/proc/cpuinfo:

processor : 0

vendor_id : GenuineIntel

cpu family : 6

model : 63

model name : Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz

stepping : 2

microcode : 0x1

cpu MHz : 2499.996

cache size : 16384 KB

physical id : 0

siblings : 1

core id : 0

cpu cores : 1

apicid : 0

initial apicid : 0

fpu : yes

fpu_exception : yes

cpuid level : 13

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm cpuid_fault invpcid_single pti retpoline fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt arat

bugs : cpu_meltdown spectre_v1 spectre_v2

bogomips : 5001.32

clflush size : 64

cache_alignment : 64

address sizes : 40 bits physical, 48 bits virtual

power management:

Memory: 4k page, physical 2035604k(24152k free), swap 1048572k(1048572k free)

vm_info: Java HotSpot™ 64-Bit Server VM (25.161-b12) for linux-amd64 JRE (1.8.0_161-b12), built on Dec 19 2017 16:12:43 by “java_re” with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)

time: Tue Feb 20 22:08:29 2018

elapsed time: 0 seconds (0d 0h 0m 0s)

=======================================================================================

dhis@dhis2_host:~$ tail -f tomcat-dhis/logs/catalina.out

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Feb 20, 2018 10:24:22 PM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deployment of web application archive /home/dhis/tomcat-dhis/webapps/ROOT.war has finished in 1,251 ms

Feb 20, 2018 10:24:22 PM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler [“http-bio-8080”]

Feb 20, 2018 10:24:22 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 1418 ms

Jalal Abdulatef | Information Management Officer | iMMAP

============================================

IMO for Emergency Health Response |UNICEF

     [](http://www.immap.org/)          

UNICEF Office, Nwakshot Street.

Sana’a - Yemen

E-Mail: jabdulatef@immap.org/ Mobile: (967) 711663152 / www.immap.org

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of iMMAP. The recipient should check this email and any attachments for the presence of viruses. iMMAP accepts no liability for any damage caused by any virus transmitted by this email.

iMMAP, 1300 Pennsylvania Avenue, N.W., Suite 470 Washington DC 20004, www.immap.org

Regards,

Gerald

Dear Gerald,

There does indeed seem to be a problem with RAM, seems like maybe 32-bit Java is used? However, you definitely do not need as much as 12 Gb RAM to run a small instance of DHIS2, it should be possible with 2 Gb, and certainly with 4 Gb.

image

···

On Thu, Feb 22, 2018 at 12:38 PM, gerald thomas gerald17006@gmail.com wrote:

Jalal,

I am sure there is not enough RAM on your linode VM. Please can you send the report of this command ‘vmstat -s’. From the manual you sent you need at least 12Gb RAM of which 8Gb should be allocated to the PostgresSQL.

On Tue, Feb 20, 2018 at 7:57 PM, Knut Staring knutst@gmail.com wrote:

Also, please redirect this to the list:
dhis2-users@lists.launchpad.net


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Regards,

Gerald

On Feb 20, 2018 2:46 PM, “Jalal” jabdulatef@immap.org wrote:

Dears ,

Please I need your support for the below issue :

I have a hosting on linode 2048 (My Ubuntu 16.04 LTS),and I’m trying to install DHIS2 through the below link:

https://docs.dhis2.org/2.28/en/implementer/html/install_server_setup.html

but I got the below error: advice please

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (mmap) failed to map 2796224512 bytes for committing reserved memory.

Possible reasons:

The system is out of physical RAM or swap space

In 32 bit mode, the process size limit was hit

Possible solutions:

Reduce memory load on the system

Increase physical memory or swap space

Check if swap backing store is full

Use 64 bit Java on a 64 bit OS

Decrease Java heap size (-Xmx/-Xms)

Decrease number of Java threads

Decrease Java thread stack sizes (-Xss)

Set larger code cache with -XX:ReservedCodeCacheSize=

This output file may be truncated or incomplete.

Out of Memory Error (os_linux.cpp:2640), pid=7874, tid=0x00007f5b42495700

JRE version: (8.0_161-b12) (build )

Java VM: Java HotSpot™ 64-Bit Server VM (25.161-b12 mixed mode linux-amd64 compressed oops)

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again

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

Current thread (0x00007f5b3c00a800): JavaThread “Unknown thread” [_thread_in_vm, id=7875, stack(0x00007f5b42395000,0x00007f5b42496000)]

Stack: [0x00007f5b42395000,0x00007f5b42496000], sp=0x00007f5b42494350, free space=1020k

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)

V [libjvm.so+0xacf94a] VMError::report_and_die()+0x2ba

V [libjvm.so+0x50050b] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x8b

V [libjvm.so+0x92b133] os::linux::commit_memory_impl(char*, unsigned long, bool)+0x103

V [libjvm.so+0x92b5c9] os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x29

V [libjvm.so+0x924c0a] os::commit_memory(char*, unsigned long, unsigned long, bool)+0x2a

V [libjvm.so+0xacb629] VirtualSpace::expand_by(unsigned long, bool)+0x199

V [libjvm.so+0xacc17e] VirtualSpace::initialize(ReservedSpace, unsigned long)+0xee

V [libjvm.so+0x5fec11] CardGeneration::CardGeneration(ReservedSpace, unsigned long, int, GenRemSet*)+0xf1

V [libjvm.so+0xa7225f] TenuredGeneration::TenuredGeneration(ReservedSpace, unsigned long, int, GenRemSet*)+0x5f

V [libjvm.so+0x5fff19] GenerationSpec::init(ReservedSpace, int, GenRemSet*)+0x339

V [libjvm.so+0x5eeaae] GenCollectedHeap::initialize()+0x1de

V [libjvm.so+0xa979f3] Universe::initialize_heap()+0xf3

V [libjvm.so+0xa97f5e] universe_init()+0x3e

V [libjvm.so+0x641fb5] init_globals()+0x65

V [libjvm.so+0xa7c5ae] Threads::create_vm(JavaVMInitArgs*, bool*)+0x23e

V [libjvm.so+0x6d6c24] JNI_CreateJavaVM+0x74

C [libjli.so+0x797e] JavaMain+0x9e

C [libpthread.so.0+0x76ba] start_thread+0xca

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

Java Threads: ( => current thread )

Other Threads:

=>0x00007f5b3c00a800 (exited) JavaThread “Unknown thread” [_thread_in_vm, id=7875, stack(0x00007f5b42395000,0x00007f5b42496000)]

VM state:not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread: None

GC Heap History (0 events):

No events

Deoptimization events (0 events):

No events

Classes redefined (0 events):

No events

Internal exceptions (0 events):

No events

Events (0 events):

No events

Dynamic libraries:

00400000-00401000 r-xp 00000000 08:00 252076 /usr/lib/jvm/java-8-oracle/bin/java

00600000-00601000 rw-p 00000000 08:00 252076 /usr/lib/jvm/java-8-oracle/bin/java

021e2000-02203000 rw-p 00000000 00:00 0 [heap]

5eb400000-63e950000 rw-p 00000000 00:00 0

63e950000-687800000 —p 00000000 00:00 0

72e2b0000-7c0000000 —p 00000000 00:00 0

7f5b2af79000-7f5b2b3ac000 rw-p 00000000 00:00 0

7f5b2b3ac000-7f5b2bfb7000 —p 00000000 00:00 0

7f5b2bfb7000-7f5b2bfc2000 rw-p 00000000 00:00 0

7f5b2bfc2000-7f5b2c378000 —p 00000000 00:00 0

7f5b2c378000-7f5b2c5e8000 rwxp 00000000 00:00 0

7f5b2c5e8000-7f5b3b378000 —p 00000000 00:00 0

7f5b3b378000-7f5b3b393000 r-xp 00000000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b393000-7f5b3b593000 —p 0001b000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b593000-7f5b3b594000 rw-p 0001b000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b594000-7f5b3b59f000 r-xp 00000000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b59f000-7f5b3b79e000 —p 0000b000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b79e000-7f5b3b79f000 r–p 0000a000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b79f000-7f5b3b7a0000 rw-p 0000b000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b7a0000-7f5b3b7a6000 rw-p 00000000 00:00 0

7f5b3b7a6000-7f5b3b7b1000 r-xp 00000000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b7b1000-7f5b3b9b0000 —p 0000b000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b0000-7f5b3b9b1000 r–p 0000a000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b1000-7f5b3b9b2000 rw-p 0000b000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b2000-7f5b3b9c8000 r-xp 00000000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3b9c8000-7f5b3bbc7000 —p 00016000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc7000-7f5b3bbc8000 r–p 00015000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc8000-7f5b3bbc9000 rw-p 00016000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc9000-7f5b3bbcb000 rw-p 00000000 00:00 0

7f5b3bbcb000-7f5b3bbd3000 r-xp 00000000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bbd3000-7f5b3bdd2000 —p 00008000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd2000-7f5b3bdd3000 r–p 00007000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd3000-7f5b3bdd4000 rw-p 00008000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd4000-7f5b3bdff000 r-xp 00000000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3bdff000-7f5b3bffe000 —p 0002b000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3bffe000-7f5b3c000000 rw-p 0002a000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3c000000-7f5b3c037000 rw-p 00000000 00:00 0

7f5b3c037000-7f5b40000000 —p 00000000 00:00 0

7f5b40074000-7f5b40164000 rw-p 00000000 00:00 0

7f5b40164000-7f5b40171000 r-xp 00000000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40171000-7f5b40371000 —p 0000d000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40371000-7f5b40373000 rw-p 0000d000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40373000-7f5b4037a000 r-xp 00000000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4037a000-7f5b40579000 —p 00007000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b40579000-7f5b4057a000 r–p 00006000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4057a000-7f5b4057b000 rw-p 00007000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4057b000-7f5b40683000 r-xp 00000000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40683000-7f5b40882000 —p 00108000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40882000-7f5b40883000 r–p 00107000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40883000-7f5b40884000 rw-p 00108000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40884000-7f5b4155d000 r-xp 00000000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b4155d000-7f5b4175c000 —p 00cd9000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b4175c000-7f5b41835000 rw-p 00cd8000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b41835000-7f5b41881000 rw-p 00000000 00:00 0

7f5b41881000-7f5b41a41000 r-xp 00000000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41a41000-7f5b41c41000 —p 001c0000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c41000-7f5b41c45000 r–p 001c0000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c45000-7f5b41c47000 rw-p 001c4000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c47000-7f5b41c4b000 rw-p 00000000 00:00 0

7f5b41c4b000-7f5b41c4e000 r-xp 00000000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41c4e000-7f5b41e4d000 —p 00003000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4d000-7f5b41e4e000 r–p 00002000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4e000-7f5b41e4f000 rw-p 00003000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4f000-7f5b41e65000 r-xp 00000000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b41e65000-7f5b42064000 —p 00016000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b42064000-7f5b42065000 rw-p 00015000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b42065000-7f5b4207d000 r-xp 00000000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4207d000-7f5b4227c000 —p 00018000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227c000-7f5b4227d000 r–p 00017000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227d000-7f5b4227e000 rw-p 00018000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227e000-7f5b42282000 rw-p 00000000 00:00 0

7f5b42282000-7f5b422a8000 r-xp 00000000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b42395000-7f5b42398000 —p 00000000 00:00 0

7f5b42398000-7f5b4249b000 rw-p 00000000 00:00 0

7f5b4249d000-7f5b424a5000 rw-s 00000000 08:00 131302 /tmp/hsperfdata_dhis/7874

7f5b424a5000-7f5b424a6000 rw-p 00000000 00:00 0

7f5b424a6000-7f5b424a7000 r–p 00000000 00:00 0

7f5b424a7000-7f5b424a8000 r–p 00025000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b424a8000-7f5b424a9000 rw-p 00026000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b424a9000-7f5b424aa000 rw-p 00000000 00:00 0

7ffedea4e000-7ffedea6f000 rw-p 00000000 00:00 0 [stack]

7ffedeaea000-7ffedeaed000 r–p 00000000 00:00 0 [vvar]

7ffedeaed000-7ffedeaef000 r-xp 00000000 00:00 0 [vdso]

ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

VM Arguments:

jvm_args: -Djava.util.logging.config.file=/home/dhis/tomcat-dhis/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xmx7500m -Xms4000m -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -Dcatalina.base=/home/dhis/tomcat-dhis -Dcatalina.home=/usr/share/tomcat7 -Djava.io.tmpdir=/home/dhis/tomcat-dhis/temp

java_command: org.apache.catalina.startup.Bootstrap start

java_class_path (initial): /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar

Launcher Type: SUN_STANDARD

Environment Variables:

JAVA_HOME=/usr/lib/jvm/java-8-oracle/

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

USERNAME=dhis

SHELL=/bin/bash

Signal Handlers:

SIGSEGV: [libjvm.so+0xad01e0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGBUS: [libjvm.so+0xad01e0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGFPE: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGPIPE: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGXFSZ: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGILL: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGUSR2: [libjvm.so+0x9297f0], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO

SIGHUP: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGINT: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGTERM: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGQUIT: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

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

OS:DISTRIB_ID=Ubuntu

DISTRIB_RELEASE=16.04

DISTRIB_CODENAME=xenial

DISTRIB_DESCRIPTION=“Ubuntu 16.04.3 LTS”

uname:Linux 4.14.17-x86_64-linode99 #1 SMP Tue Feb 6 19:09:58 UTC 2018 x86_64

libc:glibc 2.23 NPTL 2.23

rlimit: STACK 8192k, CORE 0k, NPROC 7929, NOFILE 1048576, AS infinity

load average:0.00 0.00 0.00

/proc/meminfo:

MemTotal: 2035604 kB

MemFree: 24152 kB

MemAvailable: 1236104 kB

Buffers: 31928 kB

Cached: 1174788 kB

SwapCached: 0 kB

Active: 845296 kB

Inactive: 1021688 kB

Active(anon): 661804 kB

Inactive(anon): 17328 kB

Active(file): 183492 kB

Inactive(file): 1004360 kB

Unevictable: 0 kB

Mlocked: 0 kB

SwapTotal: 1048572 kB

SwapFree: 1048572 kB

Dirty: 60 kB

Writeback: 0 kB

AnonPages: 660328 kB

Mapped: 64884 kB

Shmem: 18804 kB

Slab: 78460 kB

SReclaimable: 57136 kB

SUnreclaim: 21324 kB

KernelStack: 2520 kB

PageTables: 7460 kB

NFS_Unstable: 0 kB

Bounce: 0 kB

WritebackTmp: 0 kB

CommitLimit: 2066372 kB

Committed_AS: 6318628 kB

VmallocTotal: 34359738367 kB

VmallocUsed: 0 kB

VmallocChunk: 0 kB

DirectMap4k: 26488 kB

DirectMap2M: 2070528 kB

DirectMap1G: 0 kB

CPU:total 1 (initial active 1) (1 cores per cpu, 1 threads per core) family 6 model 63 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, lzcnt, tsc, bmi1, bmi2

/proc/cpuinfo:

processor : 0

vendor_id : GenuineIntel

cpu family : 6

model : 63

model name : Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz

stepping : 2

microcode : 0x1

cpu MHz : 2499.996

cache size : 16384 KB

physical id : 0

siblings : 1

core id : 0

cpu cores : 1

apicid : 0

initial apicid : 0

fpu : yes

fpu_exception : yes

cpuid level : 13

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm cpuid_fault invpcid_single pti retpoline fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt arat

bugs : cpu_meltdown spectre_v1 spectre_v2

bogomips : 5001.32

clflush size : 64

cache_alignment : 64

address sizes : 40 bits physical, 48 bits virtual

power management:

Memory: 4k page, physical 2035604k(24152k free), swap 1048572k(1048572k free)

vm_info: Java HotSpot™ 64-Bit Server VM (25.161-b12) for linux-amd64 JRE (1.8.0_161-b12), built on Dec 19 2017 16:12:43 by “java_re” with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)

time: Tue Feb 20 22:08:29 2018

elapsed time: 0 seconds (0d 0h 0m 0s)

=======================================================================================

dhis@dhis2_host:~$ tail -f tomcat-dhis/logs/catalina.out

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Feb 20, 2018 10:24:22 PM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deployment of web application archive /home/dhis/tomcat-dhis/webapps/ROOT.war has finished in 1,251 ms

Feb 20, 2018 10:24:22 PM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler [“http-bio-8080”]

Feb 20, 2018 10:24:22 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 1418 ms

Jalal Abdulatef | Information Management Officer | iMMAP

============================================

IMO for Emergency Health Response |UNICEF

     [](http://www.immap.org/)          

UNICEF Office, Nwakshot Street.

Sana’a - Yemen

E-Mail: jabdulatef@immap.org/ Mobile: (967) 711663152 / www.immap.org

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of iMMAP. The recipient should check this email and any attachments for the presence of viruses. iMMAP accepts no liability for any damage caused by any virus transmitted by this email.

iMMAP, 1300 Pennsylvania Avenue, N.W., Suite 470 Washington DC 20004, www.immap.org

Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar

Dear Knut,

Thanks for your response. Now I have a question which had been disturbing me for a long time now. I have a desktop with 4Gb RAM and I used the DHIS2-tool method of installation; I am using Postgres 9.5. My instance is running OK but the “maintenance app” it showing blank or “pivot table” can’t load. On the log file, it is giving insufficient resources error.

Why?

image

···

On Thu, Feb 22, 2018 at 12:38 PM, gerald thomas gerald17006@gmail.com wrote:

Jalal,

I am sure there is not enough RAM on your linode VM. Please can you send the report of this command ‘vmstat -s’. From the manual you sent you need at least 12Gb RAM of which 8Gb should be allocated to the PostgresSQL.

On Tue, Feb 20, 2018 at 7:57 PM, Knut Staring knutst@gmail.com wrote:

Also, please redirect this to the list:
dhis2-users@lists.launchpad.net


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Regards,

Gerald

On Feb 20, 2018 2:46 PM, “Jalal” jabdulatef@immap.org wrote:

Dears ,

Please I need your support for the below issue :

I have a hosting on linode 2048 (My Ubuntu 16.04 LTS),and I’m trying to install DHIS2 through the below link:

https://docs.dhis2.org/2.28/en/implementer/html/install_server_setup.html

but I got the below error: advice please

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (mmap) failed to map 2796224512 bytes for committing reserved memory.

Possible reasons:

The system is out of physical RAM or swap space

In 32 bit mode, the process size limit was hit

Possible solutions:

Reduce memory load on the system

Increase physical memory or swap space

Check if swap backing store is full

Use 64 bit Java on a 64 bit OS

Decrease Java heap size (-Xmx/-Xms)

Decrease number of Java threads

Decrease Java thread stack sizes (-Xss)

Set larger code cache with -XX:ReservedCodeCacheSize=

This output file may be truncated or incomplete.

Out of Memory Error (os_linux.cpp:2640), pid=7874, tid=0x00007f5b42495700

JRE version: (8.0_161-b12) (build )

Java VM: Java HotSpot™ 64-Bit Server VM (25.161-b12 mixed mode linux-amd64 compressed oops)

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again

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

Current thread (0x00007f5b3c00a800): JavaThread “Unknown thread” [_thread_in_vm, id=7875, stack(0x00007f5b42395000,0x00007f5b42496000)]

Stack: [0x00007f5b42395000,0x00007f5b42496000], sp=0x00007f5b42494350, free space=1020k

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)

V [libjvm.so+0xacf94a] VMError::report_and_die()+0x2ba

V [libjvm.so+0x50050b] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x8b

V [libjvm.so+0x92b133] os::linux::commit_memory_impl(char*, unsigned long, bool)+0x103

V [libjvm.so+0x92b5c9] os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x29

V [libjvm.so+0x924c0a] os::commit_memory(char*, unsigned long, unsigned long, bool)+0x2a

V [libjvm.so+0xacb629] VirtualSpace::expand_by(unsigned long, bool)+0x199

V [libjvm.so+0xacc17e] VirtualSpace::initialize(ReservedSpace, unsigned long)+0xee

V [libjvm.so+0x5fec11] CardGeneration::CardGeneration(ReservedSpace, unsigned long, int, GenRemSet*)+0xf1

V [libjvm.so+0xa7225f] TenuredGeneration::TenuredGeneration(ReservedSpace, unsigned long, int, GenRemSet*)+0x5f

V [libjvm.so+0x5fff19] GenerationSpec::init(ReservedSpace, int, GenRemSet*)+0x339

V [libjvm.so+0x5eeaae] GenCollectedHeap::initialize()+0x1de

V [libjvm.so+0xa979f3] Universe::initialize_heap()+0xf3

V [libjvm.so+0xa97f5e] universe_init()+0x3e

V [libjvm.so+0x641fb5] init_globals()+0x65

V [libjvm.so+0xa7c5ae] Threads::create_vm(JavaVMInitArgs*, bool*)+0x23e

V [libjvm.so+0x6d6c24] JNI_CreateJavaVM+0x74

C [libjli.so+0x797e] JavaMain+0x9e

C [libpthread.so.0+0x76ba] start_thread+0xca

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

Java Threads: ( => current thread )

Other Threads:

=>0x00007f5b3c00a800 (exited) JavaThread “Unknown thread” [_thread_in_vm, id=7875, stack(0x00007f5b42395000,0x00007f5b42496000)]

VM state:not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread: None

GC Heap History (0 events):

No events

Deoptimization events (0 events):

No events

Classes redefined (0 events):

No events

Internal exceptions (0 events):

No events

Events (0 events):

No events

Dynamic libraries:

00400000-00401000 r-xp 00000000 08:00 252076 /usr/lib/jvm/java-8-oracle/bin/java

00600000-00601000 rw-p 00000000 08:00 252076 /usr/lib/jvm/java-8-oracle/bin/java

021e2000-02203000 rw-p 00000000 00:00 0 [heap]

5eb400000-63e950000 rw-p 00000000 00:00 0

63e950000-687800000 —p 00000000 00:00 0

72e2b0000-7c0000000 —p 00000000 00:00 0

7f5b2af79000-7f5b2b3ac000 rw-p 00000000 00:00 0

7f5b2b3ac000-7f5b2bfb7000 —p 00000000 00:00 0

7f5b2bfb7000-7f5b2bfc2000 rw-p 00000000 00:00 0

7f5b2bfc2000-7f5b2c378000 —p 00000000 00:00 0

7f5b2c378000-7f5b2c5e8000 rwxp 00000000 00:00 0

7f5b2c5e8000-7f5b3b378000 —p 00000000 00:00 0

7f5b3b378000-7f5b3b393000 r-xp 00000000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b393000-7f5b3b593000 —p 0001b000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b593000-7f5b3b594000 rw-p 0001b000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b594000-7f5b3b59f000 r-xp 00000000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b59f000-7f5b3b79e000 —p 0000b000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b79e000-7f5b3b79f000 r–p 0000a000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b79f000-7f5b3b7a0000 rw-p 0000b000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b7a0000-7f5b3b7a6000 rw-p 00000000 00:00 0

7f5b3b7a6000-7f5b3b7b1000 r-xp 00000000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b7b1000-7f5b3b9b0000 —p 0000b000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b0000-7f5b3b9b1000 r–p 0000a000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b1000-7f5b3b9b2000 rw-p 0000b000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b2000-7f5b3b9c8000 r-xp 00000000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3b9c8000-7f5b3bbc7000 —p 00016000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc7000-7f5b3bbc8000 r–p 00015000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc8000-7f5b3bbc9000 rw-p 00016000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc9000-7f5b3bbcb000 rw-p 00000000 00:00 0

7f5b3bbcb000-7f5b3bbd3000 r-xp 00000000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bbd3000-7f5b3bdd2000 —p 00008000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd2000-7f5b3bdd3000 r–p 00007000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd3000-7f5b3bdd4000 rw-p 00008000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd4000-7f5b3bdff000 r-xp 00000000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3bdff000-7f5b3bffe000 —p 0002b000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3bffe000-7f5b3c000000 rw-p 0002a000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3c000000-7f5b3c037000 rw-p 00000000 00:00 0

7f5b3c037000-7f5b40000000 —p 00000000 00:00 0

7f5b40074000-7f5b40164000 rw-p 00000000 00:00 0

7f5b40164000-7f5b40171000 r-xp 00000000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40171000-7f5b40371000 —p 0000d000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40371000-7f5b40373000 rw-p 0000d000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40373000-7f5b4037a000 r-xp 00000000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4037a000-7f5b40579000 —p 00007000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b40579000-7f5b4057a000 r–p 00006000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4057a000-7f5b4057b000 rw-p 00007000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4057b000-7f5b40683000 r-xp 00000000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40683000-7f5b40882000 —p 00108000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40882000-7f5b40883000 r–p 00107000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40883000-7f5b40884000 rw-p 00108000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40884000-7f5b4155d000 r-xp 00000000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b4155d000-7f5b4175c000 —p 00cd9000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b4175c000-7f5b41835000 rw-p 00cd8000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b41835000-7f5b41881000 rw-p 00000000 00:00 0

7f5b41881000-7f5b41a41000 r-xp 00000000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41a41000-7f5b41c41000 —p 001c0000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c41000-7f5b41c45000 r–p 001c0000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c45000-7f5b41c47000 rw-p 001c4000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c47000-7f5b41c4b000 rw-p 00000000 00:00 0

7f5b41c4b000-7f5b41c4e000 r-xp 00000000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41c4e000-7f5b41e4d000 —p 00003000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4d000-7f5b41e4e000 r–p 00002000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4e000-7f5b41e4f000 rw-p 00003000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4f000-7f5b41e65000 r-xp 00000000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b41e65000-7f5b42064000 —p 00016000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b42064000-7f5b42065000 rw-p 00015000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b42065000-7f5b4207d000 r-xp 00000000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4207d000-7f5b4227c000 —p 00018000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227c000-7f5b4227d000 r–p 00017000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227d000-7f5b4227e000 rw-p 00018000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227e000-7f5b42282000 rw-p 00000000 00:00 0

7f5b42282000-7f5b422a8000 r-xp 00000000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b42395000-7f5b42398000 —p 00000000 00:00 0

7f5b42398000-7f5b4249b000 rw-p 00000000 00:00 0

7f5b4249d000-7f5b424a5000 rw-s 00000000 08:00 131302 /tmp/hsperfdata_dhis/7874

7f5b424a5000-7f5b424a6000 rw-p 00000000 00:00 0

7f5b424a6000-7f5b424a7000 r–p 00000000 00:00 0

7f5b424a7000-7f5b424a8000 r–p 00025000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b424a8000-7f5b424a9000 rw-p 00026000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b424a9000-7f5b424aa000 rw-p 00000000 00:00 0

7ffedea4e000-7ffedea6f000 rw-p 00000000 00:00 0 [stack]

7ffedeaea000-7ffedeaed000 r–p 00000000 00:00 0 [vvar]

7ffedeaed000-7ffedeaef000 r-xp 00000000 00:00 0 [vdso]

ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

VM Arguments:

jvm_args: -Djava.util.logging.config.file=/home/dhis/tomcat-dhis/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xmx7500m -Xms4000m -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -Dcatalina.base=/home/dhis/tomcat-dhis -Dcatalina.home=/usr/share/tomcat7 -Djava.io.tmpdir=/home/dhis/tomcat-dhis/temp

java_command: org.apache.catalina.startup.Bootstrap start

java_class_path (initial): /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar

Launcher Type: SUN_STANDARD

Environment Variables:

JAVA_HOME=/usr/lib/jvm/java-8-oracle/

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

USERNAME=dhis

SHELL=/bin/bash

Signal Handlers:

SIGSEGV: [libjvm.so+0xad01e0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGBUS: [libjvm.so+0xad01e0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGFPE: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGPIPE: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGXFSZ: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGILL: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGUSR2: [libjvm.so+0x9297f0], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO

SIGHUP: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGINT: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGTERM: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGQUIT: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

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

OS:DISTRIB_ID=Ubuntu

DISTRIB_RELEASE=16.04

DISTRIB_CODENAME=xenial

DISTRIB_DESCRIPTION=“Ubuntu 16.04.3 LTS”

uname:Linux 4.14.17-x86_64-linode99 #1 SMP Tue Feb 6 19:09:58 UTC 2018 x86_64

libc:glibc 2.23 NPTL 2.23

rlimit: STACK 8192k, CORE 0k, NPROC 7929, NOFILE 1048576, AS infinity

load average:0.00 0.00 0.00

/proc/meminfo:

MemTotal: 2035604 kB

MemFree: 24152 kB

MemAvailable: 1236104 kB

Buffers: 31928 kB

Cached: 1174788 kB

SwapCached: 0 kB

Active: 845296 kB

Inactive: 1021688 kB

Active(anon): 661804 kB

Inactive(anon): 17328 kB

Active(file): 183492 kB

Inactive(file): 1004360 kB

Unevictable: 0 kB

Mlocked: 0 kB

SwapTotal: 1048572 kB

SwapFree: 1048572 kB

Dirty: 60 kB

Writeback: 0 kB

AnonPages: 660328 kB

Mapped: 64884 kB

Shmem: 18804 kB

Slab: 78460 kB

SReclaimable: 57136 kB

SUnreclaim: 21324 kB

KernelStack: 2520 kB

PageTables: 7460 kB

NFS_Unstable: 0 kB

Bounce: 0 kB

WritebackTmp: 0 kB

CommitLimit: 2066372 kB

Committed_AS: 6318628 kB

VmallocTotal: 34359738367 kB

VmallocUsed: 0 kB

VmallocChunk: 0 kB

DirectMap4k: 26488 kB

DirectMap2M: 2070528 kB

DirectMap1G: 0 kB

CPU:total 1 (initial active 1) (1 cores per cpu, 1 threads per core) family 6 model 63 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, lzcnt, tsc, bmi1, bmi2

/proc/cpuinfo:

processor : 0

vendor_id : GenuineIntel

cpu family : 6

model : 63

model name : Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz

stepping : 2

microcode : 0x1

cpu MHz : 2499.996

cache size : 16384 KB

physical id : 0

siblings : 1

core id : 0

cpu cores : 1

apicid : 0

initial apicid : 0

fpu : yes

fpu_exception : yes

cpuid level : 13

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm cpuid_fault invpcid_single pti retpoline fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt arat

bugs : cpu_meltdown spectre_v1 spectre_v2

bogomips : 5001.32

clflush size : 64

cache_alignment : 64

address sizes : 40 bits physical, 48 bits virtual

power management:

Memory: 4k page, physical 2035604k(24152k free), swap 1048572k(1048572k free)

vm_info: Java HotSpot™ 64-Bit Server VM (25.161-b12) for linux-amd64 JRE (1.8.0_161-b12), built on Dec 19 2017 16:12:43 by “java_re” with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)

time: Tue Feb 20 22:08:29 2018

elapsed time: 0 seconds (0d 0h 0m 0s)

=======================================================================================

dhis@dhis2_host:~$ tail -f tomcat-dhis/logs/catalina.out

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Feb 20, 2018 10:24:22 PM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deployment of web application archive /home/dhis/tomcat-dhis/webapps/ROOT.war has finished in 1,251 ms

Feb 20, 2018 10:24:22 PM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler [“http-bio-8080”]

Feb 20, 2018 10:24:22 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 1418 ms

Jalal Abdulatef | Information Management Officer | iMMAP

============================================

IMO for Emergency Health Response |UNICEF

     [](http://www.immap.org/)          

UNICEF Office, Nwakshot Street.

Sana’a - Yemen

E-Mail: jabdulatef@immap.org/ Mobile: (967) 711663152 / www.immap.org

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of iMMAP. The recipient should check this email and any attachments for the presence of viruses. iMMAP accepts no liability for any damage caused by any virus transmitted by this email.

iMMAP, 1300 Pennsylvania Avenue, N.W., Suite 470 Washington DC 20004, www.immap.org


Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar

Regards,

Gerald

Hi Gerald,

So you are runing Ubuntu on your machine? Perhaps you need to allocate more resources to Java using this type of setting (though you should adjust the values down a bit, since you dont have that much memory)

export JAVA_OPTS='-Xmx7500m -Xms4000m'
[https://docs.dhis2.org/2.25/en/implementer/html/install_server_setup.html](https://docs.dhis2.org/2.25/en/implementer/html/install_server_setup.html)

image

···

On Thu, Feb 22, 2018 at 8:34 PM, gerald thomas gerald17006@gmail.com wrote:

Dear Knut,

Thanks for your response. Now I have a question which had been disturbing me for a long time now. I have a desktop with 4Gb RAM and I used the DHIS2-tool method of installation; I am using Postgres 9.5. My instance is running OK but the “maintenance app” it showing blank or “pivot table” can’t load. On the log file, it is giving insufficient resources error.

Why?

On Thu, 22 Feb 2018 at 17:36, Knut Staring knutst@gmail.com wrote:

Dear Gerald,

There does indeed seem to be a problem with RAM, seems like maybe 32-bit Java is used? However, you definitely do not need as much as 12 Gb RAM to run a small instance of DHIS2, it should be possible with 2 Gb, and certainly with 4 Gb.

Regards,

Gerald

On Thu, Feb 22, 2018 at 12:38 PM, gerald thomas gerald17006@gmail.com wrote:

Jalal,

I am sure there is not enough RAM on your linode VM. Please can you send the report of this command ‘vmstat -s’. From the manual you sent you need at least 12Gb RAM of which 8Gb should be allocated to the PostgresSQL.

On Tue, Feb 20, 2018 at 7:57 PM, Knut Staring knutst@gmail.com wrote:

Also, please redirect this to the list:
dhis2-users@lists.launchpad.net


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Regards,

Gerald

On Feb 20, 2018 2:46 PM, “Jalal” jabdulatef@immap.org wrote:

Dears ,

Please I need your support for the below issue :

I have a hosting on linode 2048 (My Ubuntu 16.04 LTS),and I’m trying to install DHIS2 through the below link:

https://docs.dhis2.org/2.28/en/implementer/html/install_server_setup.html

but I got the below error: advice please

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (mmap) failed to map 2796224512 bytes for committing reserved memory.

Possible reasons:

The system is out of physical RAM or swap space

In 32 bit mode, the process size limit was hit

Possible solutions:

Reduce memory load on the system

Increase physical memory or swap space

Check if swap backing store is full

Use 64 bit Java on a 64 bit OS

Decrease Java heap size (-Xmx/-Xms)

Decrease number of Java threads

Decrease Java thread stack sizes (-Xss)

Set larger code cache with -XX:ReservedCodeCacheSize=

This output file may be truncated or incomplete.

Out of Memory Error (os_linux.cpp:2640), pid=7874, tid=0x00007f5b42495700

JRE version: (8.0_161-b12) (build )

Java VM: Java HotSpot™ 64-Bit Server VM (25.161-b12 mixed mode linux-amd64 compressed oops)

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again

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

Current thread (0x00007f5b3c00a800): JavaThread “Unknown thread” [_thread_in_vm, id=7875, stack(0x00007f5b42395000,0x00007f5b42496000)]

Stack: [0x00007f5b42395000,0x00007f5b42496000], sp=0x00007f5b42494350, free space=1020k

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)

V [libjvm.so+0xacf94a] VMError::report_and_die()+0x2ba

V [libjvm.so+0x50050b] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x8b

V [libjvm.so+0x92b133] os::linux::commit_memory_impl(char*, unsigned long, bool)+0x103

V [libjvm.so+0x92b5c9] os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x29

V [libjvm.so+0x924c0a] os::commit_memory(char*, unsigned long, unsigned long, bool)+0x2a

V [libjvm.so+0xacb629] VirtualSpace::expand_by(unsigned long, bool)+0x199

V [libjvm.so+0xacc17e] VirtualSpace::initialize(ReservedSpace, unsigned long)+0xee

V [libjvm.so+0x5fec11] CardGeneration::CardGeneration(ReservedSpace, unsigned long, int, GenRemSet*)+0xf1

V [libjvm.so+0xa7225f] TenuredGeneration::TenuredGeneration(ReservedSpace, unsigned long, int, GenRemSet*)+0x5f

V [libjvm.so+0x5fff19] GenerationSpec::init(ReservedSpace, int, GenRemSet*)+0x339

V [libjvm.so+0x5eeaae] GenCollectedHeap::initialize()+0x1de

V [libjvm.so+0xa979f3] Universe::initialize_heap()+0xf3

V [libjvm.so+0xa97f5e] universe_init()+0x3e

V [libjvm.so+0x641fb5] init_globals()+0x65

V [libjvm.so+0xa7c5ae] Threads::create_vm(JavaVMInitArgs*, bool*)+0x23e

V [libjvm.so+0x6d6c24] JNI_CreateJavaVM+0x74

C [libjli.so+0x797e] JavaMain+0x9e

C [libpthread.so.0+0x76ba] start_thread+0xca

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

Java Threads: ( => current thread )

Other Threads:

=>0x00007f5b3c00a800 (exited) JavaThread “Unknown thread” [_thread_in_vm, id=7875, stack(0x00007f5b42395000,0x00007f5b42496000)]

VM state:not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread: None

GC Heap History (0 events):

No events

Deoptimization events (0 events):

No events

Classes redefined (0 events):

No events

Internal exceptions (0 events):

No events

Events (0 events):

No events

Dynamic libraries:

00400000-00401000 r-xp 00000000 08:00 252076 /usr/lib/jvm/java-8-oracle/bin/java

00600000-00601000 rw-p 00000000 08:00 252076 /usr/lib/jvm/java-8-oracle/bin/java

021e2000-02203000 rw-p 00000000 00:00 0 [heap]

5eb400000-63e950000 rw-p 00000000 00:00 0

63e950000-687800000 —p 00000000 00:00 0

72e2b0000-7c0000000 —p 00000000 00:00 0

7f5b2af79000-7f5b2b3ac000 rw-p 00000000 00:00 0

7f5b2b3ac000-7f5b2bfb7000 —p 00000000 00:00 0

7f5b2bfb7000-7f5b2bfc2000 rw-p 00000000 00:00 0

7f5b2bfc2000-7f5b2c378000 —p 00000000 00:00 0

7f5b2c378000-7f5b2c5e8000 rwxp 00000000 00:00 0

7f5b2c5e8000-7f5b3b378000 —p 00000000 00:00 0

7f5b3b378000-7f5b3b393000 r-xp 00000000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b393000-7f5b3b593000 —p 0001b000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b593000-7f5b3b594000 rw-p 0001b000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b594000-7f5b3b59f000 r-xp 00000000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b59f000-7f5b3b79e000 —p 0000b000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b79e000-7f5b3b79f000 r–p 0000a000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b79f000-7f5b3b7a0000 rw-p 0000b000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b7a0000-7f5b3b7a6000 rw-p 00000000 00:00 0

7f5b3b7a6000-7f5b3b7b1000 r-xp 00000000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b7b1000-7f5b3b9b0000 —p 0000b000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b0000-7f5b3b9b1000 r–p 0000a000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b1000-7f5b3b9b2000 rw-p 0000b000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b2000-7f5b3b9c8000 r-xp 00000000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3b9c8000-7f5b3bbc7000 —p 00016000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc7000-7f5b3bbc8000 r–p 00015000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc8000-7f5b3bbc9000 rw-p 00016000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc9000-7f5b3bbcb000 rw-p 00000000 00:00 0

7f5b3bbcb000-7f5b3bbd3000 r-xp 00000000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bbd3000-7f5b3bdd2000 —p 00008000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd2000-7f5b3bdd3000 r–p 00007000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd3000-7f5b3bdd4000 rw-p 00008000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd4000-7f5b3bdff000 r-xp 00000000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3bdff000-7f5b3bffe000 —p 0002b000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3bffe000-7f5b3c000000 rw-p 0002a000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3c000000-7f5b3c037000 rw-p 00000000 00:00 0

7f5b3c037000-7f5b40000000 —p 00000000 00:00 0

7f5b40074000-7f5b40164000 rw-p 00000000 00:00 0

7f5b40164000-7f5b40171000 r-xp 00000000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40171000-7f5b40371000 —p 0000d000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40371000-7f5b40373000 rw-p 0000d000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40373000-7f5b4037a000 r-xp 00000000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4037a000-7f5b40579000 —p 00007000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b40579000-7f5b4057a000 r–p 00006000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4057a000-7f5b4057b000 rw-p 00007000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4057b000-7f5b40683000 r-xp 00000000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40683000-7f5b40882000 —p 00108000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40882000-7f5b40883000 r–p 00107000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40883000-7f5b40884000 rw-p 00108000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40884000-7f5b4155d000 r-xp 00000000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b4155d000-7f5b4175c000 —p 00cd9000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b4175c000-7f5b41835000 rw-p 00cd8000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b41835000-7f5b41881000 rw-p 00000000 00:00 0

7f5b41881000-7f5b41a41000 r-xp 00000000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41a41000-7f5b41c41000 —p 001c0000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c41000-7f5b41c45000 r–p 001c0000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c45000-7f5b41c47000 rw-p 001c4000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c47000-7f5b41c4b000 rw-p 00000000 00:00 0

7f5b41c4b000-7f5b41c4e000 r-xp 00000000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41c4e000-7f5b41e4d000 —p 00003000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4d000-7f5b41e4e000 r–p 00002000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4e000-7f5b41e4f000 rw-p 00003000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4f000-7f5b41e65000 r-xp 00000000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b41e65000-7f5b42064000 —p 00016000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b42064000-7f5b42065000 rw-p 00015000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b42065000-7f5b4207d000 r-xp 00000000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4207d000-7f5b4227c000 —p 00018000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227c000-7f5b4227d000 r–p 00017000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227d000-7f5b4227e000 rw-p 00018000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227e000-7f5b42282000 rw-p 00000000 00:00 0

7f5b42282000-7f5b422a8000 r-xp 00000000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b42395000-7f5b42398000 —p 00000000 00:00 0

7f5b42398000-7f5b4249b000 rw-p 00000000 00:00 0

7f5b4249d000-7f5b424a5000 rw-s 00000000 08:00 131302 /tmp/hsperfdata_dhis/7874

7f5b424a5000-7f5b424a6000 rw-p 00000000 00:00 0

7f5b424a6000-7f5b424a7000 r–p 00000000 00:00 0

7f5b424a7000-7f5b424a8000 r–p 00025000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b424a8000-7f5b424a9000 rw-p 00026000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b424a9000-7f5b424aa000 rw-p 00000000 00:00 0

7ffedea4e000-7ffedea6f000 rw-p 00000000 00:00 0 [stack]

7ffedeaea000-7ffedeaed000 r–p 00000000 00:00 0 [vvar]

7ffedeaed000-7ffedeaef000 r-xp 00000000 00:00 0 [vdso]

ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

VM Arguments:

jvm_args: -Djava.util.logging.config.file=/home/dhis/tomcat-dhis/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xmx7500m -Xms4000m -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -Dcatalina.base=/home/dhis/tomcat-dhis -Dcatalina.home=/usr/share/tomcat7 -Djava.io.tmpdir=/home/dhis/tomcat-dhis/temp

java_command: org.apache.catalina.startup.Bootstrap start

java_class_path (initial): /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar

Launcher Type: SUN_STANDARD

Environment Variables:

JAVA_HOME=/usr/lib/jvm/java-8-oracle/

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

USERNAME=dhis

SHELL=/bin/bash

Signal Handlers:

SIGSEGV: [libjvm.so+0xad01e0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGBUS: [libjvm.so+0xad01e0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGFPE: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGPIPE: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGXFSZ: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGILL: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGUSR2: [libjvm.so+0x9297f0], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO

SIGHUP: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGINT: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGTERM: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGQUIT: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

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

OS:DISTRIB_ID=Ubuntu

DISTRIB_RELEASE=16.04

DISTRIB_CODENAME=xenial

DISTRIB_DESCRIPTION=“Ubuntu 16.04.3 LTS”

uname:Linux 4.14.17-x86_64-linode99 #1 SMP Tue Feb 6 19:09:58 UTC 2018 x86_64

libc:glibc 2.23 NPTL 2.23

rlimit: STACK 8192k, CORE 0k, NPROC 7929, NOFILE 1048576, AS infinity

load average:0.00 0.00 0.00

/proc/meminfo:

MemTotal: 2035604 kB

MemFree: 24152 kB

MemAvailable: 1236104 kB

Buffers: 31928 kB

Cached: 1174788 kB

SwapCached: 0 kB

Active: 845296 kB

Inactive: 1021688 kB

Active(anon): 661804 kB

Inactive(anon): 17328 kB

Active(file): 183492 kB

Inactive(file): 1004360 kB

Unevictable: 0 kB

Mlocked: 0 kB

SwapTotal: 1048572 kB

SwapFree: 1048572 kB

Dirty: 60 kB

Writeback: 0 kB

AnonPages: 660328 kB

Mapped: 64884 kB

Shmem: 18804 kB

Slab: 78460 kB

SReclaimable: 57136 kB

SUnreclaim: 21324 kB

KernelStack: 2520 kB

PageTables: 7460 kB

NFS_Unstable: 0 kB

Bounce: 0 kB

WritebackTmp: 0 kB

CommitLimit: 2066372 kB

Committed_AS: 6318628 kB

VmallocTotal: 34359738367 kB

VmallocUsed: 0 kB

VmallocChunk: 0 kB

DirectMap4k: 26488 kB

DirectMap2M: 2070528 kB

DirectMap1G: 0 kB

CPU:total 1 (initial active 1) (1 cores per cpu, 1 threads per core) family 6 model 63 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, lzcnt, tsc, bmi1, bmi2

/proc/cpuinfo:

processor : 0

vendor_id : GenuineIntel

cpu family : 6

model : 63

model name : Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz

stepping : 2

microcode : 0x1

cpu MHz : 2499.996

cache size : 16384 KB

physical id : 0

siblings : 1

core id : 0

cpu cores : 1

apicid : 0

initial apicid : 0

fpu : yes

fpu_exception : yes

cpuid level : 13

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm cpuid_fault invpcid_single pti retpoline fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt arat

bugs : cpu_meltdown spectre_v1 spectre_v2

bogomips : 5001.32

clflush size : 64

cache_alignment : 64

address sizes : 40 bits physical, 48 bits virtual

power management:

Memory: 4k page, physical 2035604k(24152k free), swap 1048572k(1048572k free)

vm_info: Java HotSpot™ 64-Bit Server VM (25.161-b12) for linux-amd64 JRE (1.8.0_161-b12), built on Dec 19 2017 16:12:43 by “java_re” with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)

time: Tue Feb 20 22:08:29 2018

elapsed time: 0 seconds (0d 0h 0m 0s)

=======================================================================================

dhis@dhis2_host:~$ tail -f tomcat-dhis/logs/catalina.out

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Feb 20, 2018 10:24:22 PM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deployment of web application archive /home/dhis/tomcat-dhis/webapps/ROOT.war has finished in 1,251 ms

Feb 20, 2018 10:24:22 PM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler [“http-bio-8080”]

Feb 20, 2018 10:24:22 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 1418 ms

Jalal Abdulatef | Information Management Officer | iMMAP

============================================

IMO for Emergency Health Response |UNICEF

     [](http://www.immap.org/)          

UNICEF Office, Nwakshot Street.

Sana’a - Yemen

E-Mail: jabdulatef@immap.org/ Mobile: (967) 711663152 / www.immap.org

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of iMMAP. The recipient should check this email and any attachments for the presence of viruses. iMMAP accepts no liability for any damage caused by any virus transmitted by this email.

iMMAP, 1300 Pennsylvania Avenue, N.W., Suite 470 Washington DC 20004, www.immap.org


Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar

Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar

Hi Knut,

Noted!! I will try again and get back to you.

image

···

On Fri, Feb 23, 2018 at 8:06 AM, Knut Staring knutst@gmail.com wrote:

Hi Gerald,

So you are runing Ubuntu on your machine? Perhaps you need to allocate more resources to Java using this type of setting (though you should adjust the values down a bit, since you dont have that much memory)

export JAVA_OPTS='-Xmx7500m -Xms4000m'
[https://docs.dhis2.org/2.25/en/implementer/html/install_server_setup.html](https://docs.dhis2.org/2.25/en/implementer/html/install_server_setup.html)

On Thu, Feb 22, 2018 at 8:34 PM, gerald thomas gerald17006@gmail.com wrote:

Dear Knut,

Thanks for your response. Now I have a question which had been disturbing me for a long time now. I have a desktop with 4Gb RAM and I used the DHIS2-tool method of installation; I am using Postgres 9.5. My instance is running OK but the “maintenance app” it showing blank or “pivot table” can’t load. On the log file, it is giving insufficient resources error.

Why?

On Thu, 22 Feb 2018 at 17:36, Knut Staring knutst@gmail.com wrote:

Dear Gerald,

There does indeed seem to be a problem with RAM, seems like maybe 32-bit Java is used? However, you definitely do not need as much as 12 Gb RAM to run a small instance of DHIS2, it should be possible with 2 Gb, and certainly with 4 Gb.

Regards,

Gerald


Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar

On Thu, Feb 22, 2018 at 12:38 PM, gerald thomas gerald17006@gmail.com wrote:

Jalal,

I am sure there is not enough RAM on your linode VM. Please can you send the report of this command ‘vmstat -s’. From the manual you sent you need at least 12Gb RAM of which 8Gb should be allocated to the PostgresSQL.

On Tue, Feb 20, 2018 at 7:57 PM, Knut Staring knutst@gmail.com wrote:

Also, please redirect this to the list:
dhis2-users@lists.launchpad.net


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Regards,

Gerald

On Feb 20, 2018 2:46 PM, “Jalal” jabdulatef@immap.org wrote:

Dears ,

Please I need your support for the below issue :

I have a hosting on linode 2048 (My Ubuntu 16.04 LTS),and I’m trying to install DHIS2 through the below link:

https://docs.dhis2.org/2.28/en/implementer/html/install_server_setup.html

but I got the below error: advice please

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (mmap) failed to map 2796224512 bytes for committing reserved memory.

Possible reasons:

The system is out of physical RAM or swap space

In 32 bit mode, the process size limit was hit

Possible solutions:

Reduce memory load on the system

Increase physical memory or swap space

Check if swap backing store is full

Use 64 bit Java on a 64 bit OS

Decrease Java heap size (-Xmx/-Xms)

Decrease number of Java threads

Decrease Java thread stack sizes (-Xss)

Set larger code cache with -XX:ReservedCodeCacheSize=

This output file may be truncated or incomplete.

Out of Memory Error (os_linux.cpp:2640), pid=7874, tid=0x00007f5b42495700

JRE version: (8.0_161-b12) (build )

Java VM: Java HotSpot™ 64-Bit Server VM (25.161-b12 mixed mode linux-amd64 compressed oops)

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again

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

Current thread (0x00007f5b3c00a800): JavaThread “Unknown thread” [_thread_in_vm, id=7875, stack(0x00007f5b42395000,0x00007f5b42496000)]

Stack: [0x00007f5b42395000,0x00007f5b42496000], sp=0x00007f5b42494350, free space=1020k

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)

V [libjvm.so+0xacf94a] VMError::report_and_die()+0x2ba

V [libjvm.so+0x50050b] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x8b

V [libjvm.so+0x92b133] os::linux::commit_memory_impl(char*, unsigned long, bool)+0x103

V [libjvm.so+0x92b5c9] os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x29

V [libjvm.so+0x924c0a] os::commit_memory(char*, unsigned long, unsigned long, bool)+0x2a

V [libjvm.so+0xacb629] VirtualSpace::expand_by(unsigned long, bool)+0x199

V [libjvm.so+0xacc17e] VirtualSpace::initialize(ReservedSpace, unsigned long)+0xee

V [libjvm.so+0x5fec11] CardGeneration::CardGeneration(ReservedSpace, unsigned long, int, GenRemSet*)+0xf1

V [libjvm.so+0xa7225f] TenuredGeneration::TenuredGeneration(ReservedSpace, unsigned long, int, GenRemSet*)+0x5f

V [libjvm.so+0x5fff19] GenerationSpec::init(ReservedSpace, int, GenRemSet*)+0x339

V [libjvm.so+0x5eeaae] GenCollectedHeap::initialize()+0x1de

V [libjvm.so+0xa979f3] Universe::initialize_heap()+0xf3

V [libjvm.so+0xa97f5e] universe_init()+0x3e

V [libjvm.so+0x641fb5] init_globals()+0x65

V [libjvm.so+0xa7c5ae] Threads::create_vm(JavaVMInitArgs*, bool*)+0x23e

V [libjvm.so+0x6d6c24] JNI_CreateJavaVM+0x74

C [libjli.so+0x797e] JavaMain+0x9e

C [libpthread.so.0+0x76ba] start_thread+0xca

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

Java Threads: ( => current thread )

Other Threads:

=>0x00007f5b3c00a800 (exited) JavaThread “Unknown thread” [_thread_in_vm, id=7875, stack(0x00007f5b42395000,0x00007f5b42496000)]

VM state:not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread: None

GC Heap History (0 events):

No events

Deoptimization events (0 events):

No events

Classes redefined (0 events):

No events

Internal exceptions (0 events):

No events

Events (0 events):

No events

Dynamic libraries:

00400000-00401000 r-xp 00000000 08:00 252076 /usr/lib/jvm/java-8-oracle/bin/java

00600000-00601000 rw-p 00000000 08:00 252076 /usr/lib/jvm/java-8-oracle/bin/java

021e2000-02203000 rw-p 00000000 00:00 0 [heap]

5eb400000-63e950000 rw-p 00000000 00:00 0

63e950000-687800000 —p 00000000 00:00 0

72e2b0000-7c0000000 —p 00000000 00:00 0

7f5b2af79000-7f5b2b3ac000 rw-p 00000000 00:00 0

7f5b2b3ac000-7f5b2bfb7000 —p 00000000 00:00 0

7f5b2bfb7000-7f5b2bfc2000 rw-p 00000000 00:00 0

7f5b2bfc2000-7f5b2c378000 —p 00000000 00:00 0

7f5b2c378000-7f5b2c5e8000 rwxp 00000000 00:00 0

7f5b2c5e8000-7f5b3b378000 —p 00000000 00:00 0

7f5b3b378000-7f5b3b393000 r-xp 00000000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b393000-7f5b3b593000 —p 0001b000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b593000-7f5b3b594000 rw-p 0001b000 08:00 253822 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so

7f5b3b594000-7f5b3b59f000 r-xp 00000000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b59f000-7f5b3b79e000 —p 0000b000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b79e000-7f5b3b79f000 r–p 0000a000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b79f000-7f5b3b7a0000 rw-p 0000b000 08:00 6186 /lib/x86_64-linux-gnu/libnss_files-2.23.so

7f5b3b7a0000-7f5b3b7a6000 rw-p 00000000 00:00 0

7f5b3b7a6000-7f5b3b7b1000 r-xp 00000000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b7b1000-7f5b3b9b0000 —p 0000b000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b0000-7f5b3b9b1000 r–p 0000a000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b1000-7f5b3b9b2000 rw-p 0000b000 08:00 6554 /lib/x86_64-linux-gnu/libnss_nis-2.23.so

7f5b3b9b2000-7f5b3b9c8000 r-xp 00000000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3b9c8000-7f5b3bbc7000 —p 00016000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc7000-7f5b3bbc8000 r–p 00015000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc8000-7f5b3bbc9000 rw-p 00016000 08:00 4264 /lib/x86_64-linux-gnu/libnsl-2.23.so

7f5b3bbc9000-7f5b3bbcb000 rw-p 00000000 00:00 0

7f5b3bbcb000-7f5b3bbd3000 r-xp 00000000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bbd3000-7f5b3bdd2000 —p 00008000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd2000-7f5b3bdd3000 r–p 00007000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd3000-7f5b3bdd4000 rw-p 00008000 08:00 6114 /lib/x86_64-linux-gnu/libnss_compat-2.23.so

7f5b3bdd4000-7f5b3bdff000 r-xp 00000000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3bdff000-7f5b3bffe000 —p 0002b000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3bffe000-7f5b3c000000 rw-p 0002a000 08:00 253816 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so

7f5b3c000000-7f5b3c037000 rw-p 00000000 00:00 0

7f5b3c037000-7f5b40000000 —p 00000000 00:00 0

7f5b40074000-7f5b40164000 rw-p 00000000 00:00 0

7f5b40164000-7f5b40171000 r-xp 00000000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40171000-7f5b40371000 —p 0000d000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40371000-7f5b40373000 rw-p 0000d000 08:00 253821 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so

7f5b40373000-7f5b4037a000 r-xp 00000000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4037a000-7f5b40579000 —p 00007000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b40579000-7f5b4057a000 r–p 00006000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4057a000-7f5b4057b000 rw-p 00007000 08:00 6555 /lib/x86_64-linux-gnu/librt-2.23.so

7f5b4057b000-7f5b40683000 r-xp 00000000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40683000-7f5b40882000 —p 00108000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40882000-7f5b40883000 r–p 00107000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40883000-7f5b40884000 rw-p 00108000 08:00 4262 /lib/x86_64-linux-gnu/libm-2.23.so

7f5b40884000-7f5b4155d000 r-xp 00000000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b4155d000-7f5b4175c000 —p 00cd9000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b4175c000-7f5b41835000 rw-p 00cd8000 08:00 253799 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

7f5b41835000-7f5b41881000 rw-p 00000000 00:00 0

7f5b41881000-7f5b41a41000 r-xp 00000000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41a41000-7f5b41c41000 —p 001c0000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c41000-7f5b41c45000 r–p 001c0000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c45000-7f5b41c47000 rw-p 001c4000 08:00 4286 /lib/x86_64-linux-gnu/libc-2.23.so

7f5b41c47000-7f5b41c4b000 rw-p 00000000 00:00 0

7f5b41c4b000-7f5b41c4e000 r-xp 00000000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41c4e000-7f5b41e4d000 —p 00003000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4d000-7f5b41e4e000 r–p 00002000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4e000-7f5b41e4f000 rw-p 00003000 08:00 4289 /lib/x86_64-linux-gnu/libdl-2.23.so

7f5b41e4f000-7f5b41e65000 r-xp 00000000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b41e65000-7f5b42064000 —p 00016000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b42064000-7f5b42065000 rw-p 00015000 08:00 253437 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so

7f5b42065000-7f5b4207d000 r-xp 00000000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4207d000-7f5b4227c000 —p 00018000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227c000-7f5b4227d000 r–p 00017000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227d000-7f5b4227e000 rw-p 00018000 08:00 4284 /lib/x86_64-linux-gnu/libpthread-2.23.so

7f5b4227e000-7f5b42282000 rw-p 00000000 00:00 0

7f5b42282000-7f5b422a8000 r-xp 00000000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b42395000-7f5b42398000 —p 00000000 00:00 0

7f5b42398000-7f5b4249b000 rw-p 00000000 00:00 0

7f5b4249d000-7f5b424a5000 rw-s 00000000 08:00 131302 /tmp/hsperfdata_dhis/7874

7f5b424a5000-7f5b424a6000 rw-p 00000000 00:00 0

7f5b424a6000-7f5b424a7000 r–p 00000000 00:00 0

7f5b424a7000-7f5b424a8000 r–p 00025000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b424a8000-7f5b424a9000 rw-p 00026000 08:00 4268 /lib/x86_64-linux-gnu/ld-2.23.so

7f5b424a9000-7f5b424aa000 rw-p 00000000 00:00 0

7ffedea4e000-7ffedea6f000 rw-p 00000000 00:00 0 [stack]

7ffedeaea000-7ffedeaed000 r–p 00000000 00:00 0 [vvar]

7ffedeaed000-7ffedeaef000 r-xp 00000000 00:00 0 [vdso]

ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

VM Arguments:

jvm_args: -Djava.util.logging.config.file=/home/dhis/tomcat-dhis/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xmx7500m -Xms4000m -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -Dcatalina.base=/home/dhis/tomcat-dhis -Dcatalina.home=/usr/share/tomcat7 -Djava.io.tmpdir=/home/dhis/tomcat-dhis/temp

java_command: org.apache.catalina.startup.Bootstrap start

java_class_path (initial): /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar

Launcher Type: SUN_STANDARD

Environment Variables:

JAVA_HOME=/usr/lib/jvm/java-8-oracle/

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

USERNAME=dhis

SHELL=/bin/bash

Signal Handlers:

SIGSEGV: [libjvm.so+0xad01e0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGBUS: [libjvm.so+0xad01e0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGFPE: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGPIPE: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGXFSZ: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGILL: [libjvm.so+0x927fb0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO

SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGUSR2: [libjvm.so+0x9297f0], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO

SIGHUP: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGINT: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGTERM: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

SIGQUIT: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none

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

OS:DISTRIB_ID=Ubuntu

DISTRIB_RELEASE=16.04

DISTRIB_CODENAME=xenial

DISTRIB_DESCRIPTION=“Ubuntu 16.04.3 LTS”

uname:Linux 4.14.17-x86_64-linode99 #1 SMP Tue Feb 6 19:09:58 UTC 2018 x86_64

libc:glibc 2.23 NPTL 2.23

rlimit: STACK 8192k, CORE 0k, NPROC 7929, NOFILE 1048576, AS infinity

load average:0.00 0.00 0.00

/proc/meminfo:

MemTotal: 2035604 kB

MemFree: 24152 kB

MemAvailable: 1236104 kB

Buffers: 31928 kB

Cached: 1174788 kB

SwapCached: 0 kB

Active: 845296 kB

Inactive: 1021688 kB

Active(anon): 661804 kB

Inactive(anon): 17328 kB

Active(file): 183492 kB

Inactive(file): 1004360 kB

Unevictable: 0 kB

Mlocked: 0 kB

SwapTotal: 1048572 kB

SwapFree: 1048572 kB

Dirty: 60 kB

Writeback: 0 kB

AnonPages: 660328 kB

Mapped: 64884 kB

Shmem: 18804 kB

Slab: 78460 kB

SReclaimable: 57136 kB

SUnreclaim: 21324 kB

KernelStack: 2520 kB

PageTables: 7460 kB

NFS_Unstable: 0 kB

Bounce: 0 kB

WritebackTmp: 0 kB

CommitLimit: 2066372 kB

Committed_AS: 6318628 kB

VmallocTotal: 34359738367 kB

VmallocUsed: 0 kB

VmallocChunk: 0 kB

DirectMap4k: 26488 kB

DirectMap2M: 2070528 kB

DirectMap1G: 0 kB

CPU:total 1 (initial active 1) (1 cores per cpu, 1 threads per core) family 6 model 63 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, lzcnt, tsc, bmi1, bmi2

/proc/cpuinfo:

processor : 0

vendor_id : GenuineIntel

cpu family : 6

model : 63

model name : Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz

stepping : 2

microcode : 0x1

cpu MHz : 2499.996

cache size : 16384 KB

physical id : 0

siblings : 1

core id : 0

cpu cores : 1

apicid : 0

initial apicid : 0

fpu : yes

fpu_exception : yes

cpuid level : 13

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm cpuid_fault invpcid_single pti retpoline fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt arat

bugs : cpu_meltdown spectre_v1 spectre_v2

bogomips : 5001.32

clflush size : 64

cache_alignment : 64

address sizes : 40 bits physical, 48 bits virtual

power management:

Memory: 4k page, physical 2035604k(24152k free), swap 1048572k(1048572k free)

vm_info: Java HotSpot™ 64-Bit Server VM (25.161-b12) for linux-amd64 JRE (1.8.0_161-b12), built on Dec 19 2017 16:12:43 by “java_re” with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)

time: Tue Feb 20 22:08:29 2018

elapsed time: 0 seconds (0d 0h 0m 0s)

=======================================================================================

dhis@dhis2_host:~$ tail -f tomcat-dhis/logs/catalina.out

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Feb 20, 2018 10:24:22 PM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deployment of web application archive /home/dhis/tomcat-dhis/webapps/ROOT.war has finished in 1,251 ms

Feb 20, 2018 10:24:22 PM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler [“http-bio-8080”]

Feb 20, 2018 10:24:22 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 1418 ms

Jalal Abdulatef | Information Management Officer | iMMAP

============================================

IMO for Emergency Health Response |UNICEF

     [](http://www.immap.org/)          

UNICEF Office, Nwakshot Street.

Sana’a - Yemen

E-Mail: jabdulatef@immap.org/ Mobile: (967) 711663152 / www.immap.org

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of iMMAP. The recipient should check this email and any attachments for the presence of viruses. iMMAP accepts no liability for any damage caused by any virus transmitted by this email.

iMMAP, 1300 Pennsylvania Avenue, N.W., Suite 470 Washington DC 20004, www.immap.org


Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar

Regards,

Gerald

3 posts were merged into an existing topic: DHIS2- TompCat Issue(Java heap space) caused by out of memeory error