Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-29 Thread Muhammad Bilal Siddqui
Thanks. Well i solved my problems by above suggestion about increase heap memory allocation. after that i am not face any difficulties. Moreover after upgrade Java 8 that problem never occur yet On Fri, Apr 24, 2015 at 8:16 PM, Paulo Grácio paulogra...@gmail.com wrote: Hi Muhammad, not sure

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-24 Thread Paulo Grácio
Hi Muhammad, not sure if you are still having the same problem. If you are just trying to run dhis2 on your local machine for demo/testing you can have a look at this https://github.com/pgracio/dhis2-docker Best regards, /Paulo On 20 April 2015 at 11:39, Morten Olav Hansen morte...@gmail.com

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-20 Thread Muhammad Bilal Siddqui
Thanks for info. I checked it is very good news. Thanks On Mon, Apr 20, 2015 at 12:29 PM, Knut Staring knu...@gmail.com wrote: Thanks - I was asking because i was told the PermGen should no longer be an issue with Java 8. Knut On Mon, Apr 20, 2015 at 12:52 PM, Muhammad Bilal Siddqui

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-19 Thread Muhammad Bilal Siddqui
Mac 10.9.5 (mavericks) Java 7 (1.7) On Sat, Apr 18, 2015 at 5:57 AM, Knut Staring knu...@gmail.com wrote: Hi Muhammad, Can I ask which version of Java you're using? Knut On Fri, Apr 17, 2015 at 7:31 PM, Muhammad Bilal Siddqui m.bilalsidd...@micromerger.com wrote: export JAVA_OPTS=

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-17 Thread Knut Staring
Hi, You need to configure Java with sufficient PermGen space, as described at http://dhis2.org/development To allocate more memory to the Java process you can define an evironment variable JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-17 Thread Muhammad Bilal Siddqui
How can i do in mac 10.9? On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knu...@gmail.com wrote: Hi, You need to configure Java with sufficient PermGen space, as described at http://dhis2.org/development To allocate more memory to the Java process you can define an evironment variable

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-17 Thread Muhammad Bilal Siddqui
I write inside .bash_profile export JAVA_OPTS=‘-Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m’ export MAVEN_OPTS=‘-Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m’ export CATALINA_OPTS=‘-Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m’ after that i restart terminal it

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-17 Thread Jason Pickering
The cleaner way to do this (I am not familiar with Mac at all but it should work) is inside of of the setenv.sh file in the Tomcat bin directory. That way you do not need to modify any system environment variables. Regards, Jason On Fri, Apr 17, 2015 at 10:04 AM Muhammad Bilal Siddqui

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-17 Thread Muhammad Bilal Siddqui
this setenv.sh file is not in bin dir. On Fri, Apr 17, 2015 at 11:10 AM, Jason Pickering jason.p.picker...@gmail.com wrote: The cleaner way to do this (I am not familiar with Mac at all but it should work) is inside of of the setenv.sh file in the Tomcat bin directory. That way you do not

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-17 Thread Knut Staring
Hm..maybe it needs to be double quotes: export JAVA_OPTS=-Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m On Fri, Apr 17, 2015 at 3:04 PM, Muhammad Bilal Siddqui m.bilalsidd...@micromerger.com wrote: I write inside .bash_profile export JAVA_OPTS=‘-Xmx512m -Xmx1024m -XX:PermSize=128m

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-17 Thread Knut Staring
http://apple.stackexchange.com/questions/106778/how-do-i-set-environment-variables-on-os-x On Fri, Apr 17, 2015 at 2:45 PM, Muhammad Bilal Siddqui m.bilalsidd...@micromerger.com wrote: How can i do in mac 10.9? On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knu...@gmail.com wrote: Hi, You

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-17 Thread Knut Staring
Then we need input from some more experienced Mac users. You could perhaps try to start DHIS2 Live from the terminal like this: java -jar -XX:MaxPermSize=256m dhis2-live.jar If that works, change the dhis-live/conf/hibernate.properties file to point to your postgres db. On Fri, Apr 17, 2015 at

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-17 Thread Muhammad Bilal Siddqui
export JAVA_OPTS= -Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m in above line first 2 param are same it showuld be Xms then Xmx. But i wrote on both Xmx that is why i got invalid heap error. now i allocated 2GB for now it is working and importing data successfully. But i still need

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-17 Thread Knut Staring
Good you got it to work on your machine. I don't think you need to change those variables for a local machine. For a server setup you would want to tweak it more, but then you should use dhis2-tools on Ubuntu, not OSX. Knut On Fri, Apr 17, 2015 at 7:31 PM, Muhammad Bilal Siddqui

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-17 Thread Knut Staring
If you open a new terminal window, what do you get if you type this: echo $JAVA_OPTS Also perhaps try restarting your laptop. On Fri, Apr 17, 2015 at 6:32 PM, Muhammad Bilal Siddqui m.bilalsidd...@micromerger.com wrote: i followed every suggestion but at one point sooner or later i have same

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-17 Thread Muhammad Bilal Siddqui
echo $JAVA_OPTS this shows blank line also after restart shows blank line. i created file setenv.sh under bin folder in tomcat file contents are follow #!/bin/bash export CATALINA_OPTS=-Xms512m -Xmx2048m export JAVA_OPTS=-Xms512m -Xmx2048m export MAVEN_OPTS=-Xms512m -Xmx2048m On Fri, Apr 17,

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-17 Thread Knut Staring
And I dont't think you need the first line: #!/bin/bash On Fri, Apr 17, 2015 at 7:04 PM, Knut Staring knu...@gmail.com wrote: You left out the crucial part. It should be like this export JAVA_OPTS= -Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m On Fri, Apr 17, 2015 at 7:01 PM,

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-17 Thread Knut Staring
On Fri, Apr 17, 2015 at 6:58 PM, Muhammad Bilal Siddqui m.bilalsidd...@micromerger.com wrote: echo $JAVA_OPTS this shows blank line also after restart shows blank line. i created file setenv.sh under bin folder in tomcat file contents are follow #!/bin/bash export CATALINA_OPTS=-Xms512m

Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-17 Thread Knut Staring
Hi Muhammad, Can I ask which version of Java you're using? Knut On Fri, Apr 17, 2015 at 7:31 PM, Muhammad Bilal Siddqui m.bilalsidd...@micromerger.com wrote: export JAVA_OPTS= -Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m in above line first 2 param are same it showuld be Xms