Re: [Dhis2-users] insufficient memory problem
Hi Knut, Noted!! I will try again and get back to you. On Fri, Feb 23, 2018 at 8:06 AM, Knut Staring 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 > > > On Thu, Feb 22, 2018 at 8:34 PM, gerald thomas > 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 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. >>> >>> On Thu, Feb 22, 2018 at 12:38 PM, gerald thomas >>> 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 wrote: > Also, please redirect this to the list: > dhis2-users@lists.launchpad.net > > On Feb 20, 2018 2:46 PM, "Jalal" 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_serv >> er_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=0x7f5b42495700 >> >> # >> >> # JRE version: (8.0_161-b12) (build ) >> >> # Java VM: Java HotSpot(TM) 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 (0x7f5b3c00a800): JavaThread "Unknown thread" >> [_thread_in_vm, id=7875, stack(0x7f5b42395000,0x000 >> 07f5b42496000)] >> >> >> >> Stack: [0x7f5b42395000,0x7f5b42496000], >> sp=0x7f5b42494350, 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 >> >
Re: [Dhis2-users] insufficient memory problem
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 On Thu, Feb 22, 2018 at 8:34 PM, gerald thomas 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 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. >> >> On Thu, Feb 22, 2018 at 12:38 PM, gerald thomas >> 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 wrote: >>> Also, please redirect this to the list: dhis2-users@lists.launchpad.net On Feb 20, 2018 2:46 PM, "Jalal" 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=0x7f5b42495700 > > # > > # JRE version: (8.0_161-b12) (build ) > > # Java VM: Java HotSpot(TM) 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 (0x7f5b3c00a800): JavaThread "Unknown thread" > [_thread_in_vm, id=7875, stack(0x7f5b42395000,0x7f5b42496000)] > > > > Stack: [0x7f5b42395000,0x7f5b42496000], > sp=0x7f5b42494350, 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::i
Re: [Dhis2-users] insufficient memory problem
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 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. > > On Thu, Feb 22, 2018 at 12:38 PM, gerald thomas > 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 wrote: >> >>> Also, please redirect this to the list: >>> dhis2-users@lists.launchpad.net >>> >>> On Feb 20, 2018 2:46 PM, "Jalal" 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=0x7f5b42495700 # # JRE version: (8.0_161-b12) (build ) # Java VM: Java HotSpot(TM) 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 (0x7f5b3c00a800): JavaThread "Unknown thread" [_thread_in_vm, id=7875, stack(0x7f5b42395000,0x7f5b42496000)] Stack: [0x7f5b42395000,0x7f5b42496000], sp=0x7f5b42494350, 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
Re: [Dhis2-users] insufficient memory problem
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. On Thu, Feb 22, 2018 at 12:38 PM, gerald thomas 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 wrote: > >> Also, please redirect this to the list: >> dhis2-users@lists.launchpad.net >> >> On Feb 20, 2018 2:46 PM, "Jalal" 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_serv >>> er_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=0x7f5b42495700 >>> >>> # >>> >>> # JRE version: (8.0_161-b12) (build ) >>> >>> # Java VM: Java HotSpot(TM) 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 (0x7f5b3c00a800): JavaThread "Unknown thread" >>> [_thread_in_vm, id=7875, stack(0x7f5b42395000,0x7f5b42496000)] >>> >>> >>> >>> Stack: [0x7f5b42395000,0x7f5b42496000], >>> sp=0x7f5b42494350, 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: >>> >>> >>> >>> =>0x7f5b3c00a800 (exited) JavaThread "Unknown thread" >>> [_thread_in_vm, id=7875, stack(0x7f5b42395000,0x7f5b42496000)] >>> >>> >>> >>> 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 >>> >>> >>
Re: [Dhis2-users] insufficient memory problem
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 wrote: > Also, please redirect this to the list: > dhis2-users@lists.launchpad.net > > On Feb 20, 2018 2:46 PM, "Jalal" 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=0x7f5b42495700 >> >> # >> >> # JRE version: (8.0_161-b12) (build ) >> >> # Java VM: Java HotSpot(TM) 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 (0x7f5b3c00a800): JavaThread "Unknown thread" >> [_thread_in_vm, id=7875, stack(0x7f5b42395000,0x7f5b42496000)] >> >> >> >> Stack: [0x7f5b42395000,0x7f5b42496000], sp=0x7f5b42494350, >> 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: >> >> >> >> =>0x7f5b3c00a800 (exited) JavaThread "Unknown thread" [_thread_in_vm, >> id=7875, stack(0x7f5b42395000,0x7f5b42496000)] >> >> >> >> 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: >> >> 0040-00401000 r-xp 08:00 252076 >> /usr/lib/jvm/java-8-oracle/bin/java >> >> 0060-00601000 rw-p 08:00 252076 >> /usr/lib/jvm/java-8-oracle/bin/java >> >> 021e2000-02203000 rw-p 00:00 0 >> [heap] >> >> 5eb40-63e95 rw-p 00:00 0 >> >> 63e95-68780 ---p 00:00 0 >> >> 72e2b-7c000 ---p 00:00 0 >> >> 7f5b2af79000-7f5b2b3ac000 rw-p 00:00
Re: [Dhis2-users] insufficient memory problem
Also, please redirect this to the list: dhis2-users@lists.launchpad.net On Feb 20, 2018 2:46 PM, "Jalal" 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=0x7f5b42495700 > > # > > # JRE version: (8.0_161-b12) (build ) > > # Java VM: Java HotSpot(TM) 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 (0x7f5b3c00a800): JavaThread "Unknown thread" > [_thread_in_vm, id=7875, stack(0x7f5b42395000,0x7f5b42496000)] > > > > Stack: [0x7f5b42395000,0x7f5b42496000], sp=0x7f5b42494350, > 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: > > > > =>0x7f5b3c00a800 (exited) JavaThread "Unknown thread" [_thread_in_vm, > id=7875, stack(0x7f5b42395000,0x7f5b42496000)] > > > > 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: > > 0040-00401000 r-xp 08:00 252076 > /usr/lib/jvm/java-8-oracle/bin/java > > 0060-00601000 rw-p 08:00 252076 > /usr/lib/jvm/java-8-oracle/bin/java > > 021e2000-02203000 rw-p 00:00 0 > [heap] > > 5eb40-63e95 rw-p 00:00 0 > > 63e95-68780 ---p 00:00 0 > > 72e2b-7c000 ---p 00:00 0 > > 7f5b2af79000-7f5b2b3ac000 rw-p 00:00 0 > > 7f5b2b3ac000-7f5b2bfb7000 ---p 00:00 0 > > 7f5b2bfb7000-7f5b2bfc2000 rw-p 00:00 0 > > 7f5b2bfc2000-7f5b2c378000 ---p 00:00 0 > > 7f5b2c378000-7f5b2c5e8000 rwxp 00:00 0 > > 7f5b2c5e8000-7f5b3b378000 ---p 00:00 0 > > 7f5b3b378000-7f5b3b393000 r-xp 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 > > 7f5