Hi all,
I am trying to deploy dhis.war on Ubuntu vm. It has 4GB of memory.
Tomcat starts successfully and shows ‘server startup in 233821 ms’.
This is the first time I m accessing the deployed web app (i.e. no configuration done yet) and it throws following exception.
http://pastebin.com/j2yWY3dH
I have followed this but no luck.
https://wiki.openmrs.org/display/docs/Troubleshooting+Memory+Errors
In my endeavors to troubleshoot tomcat memory issues i performed the following in Ubuntu 10.04:
sudo gedit /etc/init.d/tomcat6
Changed (~line 81):
if [ -z “$JAVA_OPTS” ]; then
JAVA_OPTS=“-Djava.awt.headless=true -Xmx128M”
fi
To:
if [ -z “$JAVA_OPTS” ]; then
JAVA_OPTS="-Djava.awt.headless=true -Xmx1024M -Xms1024M*********-XX:PermSize=256m -XX:MaxPermSize=256m -XX:NewSize=128m******"***
fi
Plz help me understanding the missing steps…
Thanks,
Maimoona
Wilfred
(Wilfred)
2
Hello Maimoona
Its better you create a setenv.sh file in the tomcat bin folder and set the memory size.
For more details check http://www.dhis2.org/doc/snapshot/en/implementer/html/ch08s02.html#d5e513 on the implementer’s documentation.
Cheers
···
Wilfred F. Senyoni
Computer Science and Engineering Department
College of Information and Communication Technologies
University of Dar es salaam
On Wed, Jan 29, 2014 at 12:29 PM, Maimoona Kausar maimoona.kausar@irdinformatics.org wrote:
Hi all,
I am trying to deploy dhis.war on Ubuntu vm. It has 4GB of memory.
Tomcat starts successfully and shows ‘server startup in 233821 ms’.
This is the first time I m accessing the deployed web app (i.e. no configuration done yet) and it throws following exception.
http://pastebin.com/j2yWY3dH
I have followed this but no luck.
https://wiki.openmrs.org/display/docs/Troubleshooting+Memory+Errors
In my endeavors to troubleshoot tomcat memory issues i performed the following in Ubuntu 10.04:
sudo gedit /etc/init.d/tomcat6
Changed (~line 81):
if [ -z “$JAVA_OPTS” ]; then
JAVA_OPTS=“-Djava.awt.headless=true -Xmx128M”
fi
To:
if [ -z “$JAVA_OPTS” ]; then
JAVA_OPTS="-Djava.awt.headless=true -Xmx1024M -Xms1024M*********-XX:PermSize=256m -XX:MaxPermSize=256m -XX:NewSize=128m******"***
fi
Plz help me understanding the missing steps…
Thanks,
Maimoona
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
Thanks Wilfred. Its giving me error
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
config file is here http://pastebin.com/nMABm7hA
···
On Wed, Jan 29, 2014 at 2:41 PM, Wilfred Senyoni senyoni@gmail.com wrote:
Hello Maimoona
Its better you create a setenv.sh file in the tomcat bin folder and set the memory size.
For more details check http://www.dhis2.org/doc/snapshot/en/implementer/html/ch08s02.html#d5e513 on the implementer’s documentation.
Cheers
Wilfred F. Senyoni
Computer Science and Engineering Department
College of Information and Communication Technologies
University of Dar es salaam
On Wed, Jan 29, 2014 at 12:29 PM, Maimoona Kausar maimoona.kausar@irdinformatics.org wrote:
Hi all,
I am trying to deploy dhis.war on Ubuntu vm. It has 4GB of memory.
Tomcat starts successfully and shows ‘server startup in 233821 ms’.
This is the first time I m accessing the deployed web app (i.e. no configuration done yet) and it throws following exception.
http://pastebin.com/j2yWY3dH
I have followed this but no luck.
https://wiki.openmrs.org/display/docs/Troubleshooting+Memory+Errors
In my endeavors to troubleshoot tomcat memory issues i performed the following in Ubuntu 10.04:
sudo gedit /etc/init.d/tomcat6
Changed (~line 81):
if [ -z “$JAVA_OPTS” ]; then
JAVA_OPTS=“-Djava.awt.headless=true -Xmx128M”
fi
To:
if [ -z “$JAVA_OPTS” ]; then
JAVA_OPTS="-Djava.awt.headless=true -Xmx1024M -Xms1024M*********-XX:PermSize=256m -XX:MaxPermSize=256m -XX:NewSize=128m******"***
fi
Plz help me understanding the missing steps…
Thanks,
Maimoona
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
Hi Maimoona, since you only have 4GB RAM, you cannot reserve all of it for the JVM, which is what you are doing here:
-Xms4000m
I suggest you reduce this to 2 GB or something like that
···
On Wed, Jan 29, 2014 at 12:55 PM, Maimoona Kausar maimoona.kausar@irdinformatics.org wrote:
Thanks Wilfred. Its giving me error
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
config file is here http://pastebin.com/nMABm7hA
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
–
Knut Staring
Dept. of Informatics, University of Oslo
+4791880522
http://dhis2.org
On Wed, Jan 29, 2014 at 2:41 PM, Wilfred Senyoni senyoni@gmail.com wrote:
Hello Maimoona
Its better you create a setenv.sh file in the tomcat bin folder and set the memory size.
For more details check http://www.dhis2.org/doc/snapshot/en/implementer/html/ch08s02.html#d5e513 on the implementer’s documentation.
Cheers
Wilfred F. Senyoni
Computer Science and Engineering Department
College of Information and Communication Technologies
University of Dar es salaam
On Wed, Jan 29, 2014 at 12:29 PM, Maimoona Kausar maimoona.kausar@irdinformatics.org wrote:
Hi all,
I am trying to deploy dhis.war on Ubuntu vm. It has 4GB of memory.
Tomcat starts successfully and shows ‘server startup in 233821 ms’.
This is the first time I m accessing the deployed web app (i.e. no configuration done yet) and it throws following exception.
http://pastebin.com/j2yWY3dH
I have followed this but no luck.
https://wiki.openmrs.org/display/docs/Troubleshooting+Memory+Errors
In my endeavors to troubleshoot tomcat memory issues i performed the following in Ubuntu 10.04:
sudo gedit /etc/init.d/tomcat6
Changed (~line 81):
if [ -z “$JAVA_OPTS” ]; then
JAVA_OPTS=“-Djava.awt.headless=true -Xmx128M”
fi
To:
if [ -z “$JAVA_OPTS” ]; then
JAVA_OPTS="-Djava.awt.headless=true -Xmx1024M -Xms1024M*********-XX:PermSize=256m -XX:MaxPermSize=256m -XX:NewSize=128m******"***
fi
Plz help me understanding the missing steps…
Thanks,
Maimoona
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
Lars
(Lars Øverland)
5
Hi,
if you are on windows using binary tomcat try this java_opts value:
-Xmx768M -Xms512M -XX:PermSize=256m -XX:MaxPermSize=256m
Lars
···
On Wed, Jan 29, 2014 at 1:55 PM, Maimoona Kausar maimoona.kausar@irdinformatics.org wrote:
Thanks Wilfred. Its giving me error
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
config file is here http://pastebin.com/nMABm7hA
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 Wed, Jan 29, 2014 at 2:41 PM, Wilfred Senyoni senyoni@gmail.com wrote:
Hello Maimoona
Its better you create a setenv.sh file in the tomcat bin folder and set the memory size.
For more details check http://www.dhis2.org/doc/snapshot/en/implementer/html/ch08s02.html#d5e513 on the implementer’s documentation.
Cheers
Wilfred F. Senyoni
Computer Science and Engineering Department
College of Information and Communication Technologies
University of Dar es salaam
On Wed, Jan 29, 2014 at 12:29 PM, Maimoona Kausar maimoona.kausar@irdinformatics.org wrote:
Hi all,
I am trying to deploy dhis.war on Ubuntu vm. It has 4GB of memory.
Tomcat starts successfully and shows ‘server startup in 233821 ms’.
This is the first time I m accessing the deployed web app (i.e. no configuration done yet) and it throws following exception.
http://pastebin.com/j2yWY3dH
I have followed this but no luck.
https://wiki.openmrs.org/display/docs/Troubleshooting+Memory+Errors
In my endeavors to troubleshoot tomcat memory issues i performed the following in Ubuntu 10.04:
sudo gedit /etc/init.d/tomcat6
Changed (~line 81):
if [ -z “$JAVA_OPTS” ]; then
JAVA_OPTS=“-Djava.awt.headless=true -Xmx128M”
fi
To:
if [ -z “$JAVA_OPTS” ]; then
JAVA_OPTS="-Djava.awt.headless=true -Xmx1024M -Xms1024M*********-XX:PermSize=256m -XX:MaxPermSize=256m -XX:NewSize=128m******"***
fi
Plz help me understanding the missing steps…
Thanks,
Maimoona
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
Thanks alot team. Knut`s suggestion worked. I was able to run dhis by assigning 1MB of memory to JVM.
···
On Wed, Jan 29, 2014 at 6:26 PM, Lars Helge Øverland larshelge@gmail.com wrote:
Hi,
if you are on windows using binary tomcat try this java_opts value:
-Xmx768M -Xms512M -XX:PermSize=256m -XX:MaxPermSize=256m
Lars
On Wed, Jan 29, 2014 at 1:55 PM, Maimoona Kausar maimoona.kausar@irdinformatics.org wrote:
Thanks Wilfred. Its giving me error
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
config file is here http://pastebin.com/nMABm7hA
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 Wed, Jan 29, 2014 at 2:41 PM, Wilfred Senyoni senyoni@gmail.com wrote:
Hello Maimoona
Its better you create a setenv.sh file in the tomcat bin folder and set the memory size.
For more details check http://www.dhis2.org/doc/snapshot/en/implementer/html/ch08s02.html#d5e513 on the implementer’s documentation.
Cheers
Wilfred F. Senyoni
Computer Science and Engineering Department
College of Information and Communication Technologies
University of Dar es salaam
On Wed, Jan 29, 2014 at 12:29 PM, Maimoona Kausar maimoona.kausar@irdinformatics.org wrote:
Hi all,
I am trying to deploy dhis.war on Ubuntu vm. It has 4GB of memory.
Tomcat starts successfully and shows ‘server startup in 233821 ms’.
This is the first time I m accessing the deployed web app (i.e. no configuration done yet) and it throws following exception.
http://pastebin.com/j2yWY3dH
I have followed this but no luck.
https://wiki.openmrs.org/display/docs/Troubleshooting+Memory+Errors
In my endeavors to troubleshoot tomcat memory issues i performed the following in Ubuntu 10.04:
sudo gedit /etc/init.d/tomcat6
Changed (~line 81):
if [ -z “$JAVA_OPTS” ]; then
JAVA_OPTS=“-Djava.awt.headless=true -Xmx128M”
fi
To:
if [ -z “$JAVA_OPTS” ]; then
JAVA_OPTS="-Djava.awt.headless=true -Xmx1024M -Xms1024M*********-XX:PermSize=256m -XX:MaxPermSize=256m -XX:NewSize=128m******"***
fi
Plz help me understanding the missing steps…
Thanks,
Maimoona
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp