Can't run dhis2 from .war file

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”

···


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

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 and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

···

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org

How can i do in mac 10.9?

···

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knutst@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 JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

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.bilalsiddqui@micromerger.com wrote:

How can i do in mac 10.9?

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knutst@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 JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Probably export VARIABLE='something' inside .bash_profile.

export JAVA_OPTS='-Xms512m -Xmx1024m -XX:PermSize=128m

-XX:MaxPermSize=256m’

···

On Fri, Apr 17, 2015 at 2:58 PM, Knut Staring knutst@gmail.com wrote:

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.bilalsiddqui@micromerger.com wrote:

How can i do in mac 10.9?


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knutst@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 JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

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 shows

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

···

On Fri, Apr 17, 2015 at 1:01 PM, Knut Staring knutst@gmail.com wrote:

Probably export VARIABLE='something' inside .bash_profile.

export JAVA_OPTS='-Xms512m -Xmx1024m -XX:PermSize=128m

-XX:MaxPermSize=256m’

On Fri, Apr 17, 2015 at 2:58 PM, Knut Staring knutst@gmail.com wrote:

http://apple.stackexchange.com/questions/106778/how-do-i-set-environment-variables-on-os-x


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 2:45 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

How can i do in mac 10.9?


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knutst@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 JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

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 1:01 PM, Knut Staring knutst@gmail.com wrote:

Probably export VARIABLE='something' inside .bash_profile.

export JAVA_OPTS='-Xms512m -Xmx1024m -XX:PermSize=128m

-XX:MaxPermSize=256m’

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 2:58 PM, Knut Staring knutst@gmail.com wrote:

http://apple.stackexchange.com/questions/106778/how-do-i-set-environment-variables-on-os-x


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 2:45 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

How can i do in mac 10.9?


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knutst@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 JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org

this setenv.sh file is not in bin dir.

···

On Fri, Apr 17, 2015 at 11:10 AM, Jason Pickering jason.p.pickering@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 need to modify any system environment variables.

Regards,

Jason

On Fri, Apr 17, 2015 at 10:04 AM Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

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 shows

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier


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 Fri, Apr 17, 2015 at 1:01 PM, Knut Staring knutst@gmail.com wrote:

Probably export VARIABLE='something' inside .bash_profile.

export JAVA_OPTS='-Xms512m -Xmx1024m -XX:PermSize=128m

-XX:MaxPermSize=256m’

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 2:58 PM, Knut Staring knutst@gmail.com wrote:

http://apple.stackexchange.com/questions/106778/how-do-i-set-environment-variables-on-os-x


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 2:45 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

How can i do in mac 10.9?


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knutst@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 JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

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.bilalsiddqui@micromerger.com wrote:

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 shows

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

On Fri, Apr 17, 2015 at 1:01 PM, Knut Staring knutst@gmail.com wrote:

Probably export VARIABLE='something' inside .bash_profile.

export JAVA_OPTS='-Xms512m -Xmx1024m -XX:PermSize=128m

-XX:MaxPermSize=256m’

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 2:58 PM, Knut Staring knutst@gmail.com wrote:

http://apple.stackexchange.com/questions/106778/how-do-i-set-environment-variables-on-os-x


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 2:45 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

How can i do in mac 10.9?


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knutst@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 JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Will leave it to the more experienced Mac users on the list to say what is best practice on Mac…

But I would think you can just create the setenv.sh file yourself in the bin folder

···

On Fri, Apr 17, 2015 at 3:12 PM, Knut Staring knutst@gmail.com wrote:

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.bilalsiddqui@micromerger.com wrote:

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 shows

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 1:01 PM, Knut Staring knutst@gmail.com wrote:

Probably export VARIABLE='something' inside .bash_profile.

export JAVA_OPTS='-Xms512m -Xmx1024m -XX:PermSize=128m

-XX:MaxPermSize=256m’

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 2:58 PM, Knut Staring knutst@gmail.com wrote:

http://apple.stackexchange.com/questions/106778/how-do-i-set-environment-variables-on-os-x


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 2:45 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

How can i do in mac 10.9?


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knutst@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 JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

ok i am doing that now

Thanks all

···

On Fri, Apr 17, 2015 at 11:17 AM, Knut Staring knutst@gmail.com wrote:

Will leave it to the more experienced Mac users on the list to say what is best practice on Mac…

But I would think you can just create the setenv.sh file yourself in the bin folder

On Fri, Apr 17, 2015 at 3:12 PM, Knut Staring knutst@gmail.com wrote:

Hm…maybe it needs to be double quotes:
export JAVA_OPTS=“-Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m”


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 3:04 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

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 shows

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 1:01 PM, Knut Staring knutst@gmail.com wrote:

Probably export VARIABLE='something' inside .bash_profile.

export JAVA_OPTS='-Xms512m -Xmx1024m -XX:PermSize=128m

-XX:MaxPermSize=256m’

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 2:58 PM, Knut Staring knutst@gmail.com wrote:

http://apple.stackexchange.com/questions/106778/how-do-i-set-environment-variables-on-os-x


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 2:45 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

How can i do in mac 10.9?


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knutst@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 JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

i followed every suggestion but at one point sooner or later i have same issue
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “http-8080-1”

Is there same problem in MAC. because in my windows machine not that many problems.
MAC Specification
Processor 1.3 GHz Intel Core i5
Memory 4GB

OSX 10.9.5

···

On Fri, Apr 17, 2015 at 1:18 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

ok i am doing that now

Thanks all

On Fri, Apr 17, 2015 at 11:17 AM, Knut Staring knutst@gmail.com wrote:

Will leave it to the more experienced Mac users on the list to say what is best practice on Mac…

But I would think you can just create the setenv.sh file yourself in the bin folder

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 3:12 PM, Knut Staring knutst@gmail.com wrote:

Hm…maybe it needs to be double quotes:
export JAVA_OPTS=“-Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m”


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 3:04 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

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 shows

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 1:01 PM, Knut Staring knutst@gmail.com wrote:

Probably export VARIABLE='something' inside .bash_profile.

export JAVA_OPTS='-Xms512m -Xmx1024m -XX:PermSize=128m

-XX:MaxPermSize=256m’

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 2:58 PM, Knut Staring knutst@gmail.com wrote:

http://apple.stackexchange.com/questions/106778/how-do-i-set-environment-variables-on-os-x


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 2:45 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

How can i do in mac 10.9?


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knutst@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 JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

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.bilalsiddqui@micromerger.com wrote:

i followed every suggestion but at one point sooner or later i have same issue
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “http-8080-1”

Is there same problem in MAC. because in my windows machine not that many problems.
MAC Specification
Processor 1.3 GHz Intel Core i5
Memory 4GB

OSX 10.9.5

On Fri, Apr 17, 2015 at 1:18 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

ok i am doing that now

Thanks all

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 11:17 AM, Knut Staring knutst@gmail.com wrote:

Will leave it to the more experienced Mac users on the list to say what is best practice on Mac…

But I would think you can just create the setenv.sh file yourself in the bin folder

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 3:12 PM, Knut Staring knutst@gmail.com wrote:

Hm…maybe it needs to be double quotes:
export JAVA_OPTS=“-Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m”


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 3:04 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

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 shows

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 1:01 PM, Knut Staring knutst@gmail.com wrote:

Probably export VARIABLE='something' inside .bash_profile.

export JAVA_OPTS='-Xms512m -Xmx1024m -XX:PermSize=128m

-XX:MaxPermSize=256m’

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 2:58 PM, Knut Staring knutst@gmail.com wrote:

http://apple.stackexchange.com/questions/106778/how-do-i-set-environment-variables-on-os-x


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 2:45 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

How can i do in mac 10.9?


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knutst@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 JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

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, 2015 at 4:35 PM, Knut Staring knutst@gmail.com wrote:

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.bilalsiddqui@micromerger.com wrote:

i followed every suggestion but at one point sooner or later i have same issue
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “http-8080-1”

Is there same problem in MAC. because in my windows machine not that many problems.
MAC Specification
Processor 1.3 GHz Intel Core i5
Memory 4GB

OSX 10.9.5


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 1:18 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

ok i am doing that now

Thanks all

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 11:17 AM, Knut Staring knutst@gmail.com wrote:

Will leave it to the more experienced Mac users on the list to say what is best practice on Mac…

But I would think you can just create the setenv.sh file yourself in the bin folder

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 3:12 PM, Knut Staring knutst@gmail.com wrote:

Hm…maybe it needs to be double quotes:
export JAVA_OPTS=“-Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m”


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 3:04 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

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 shows

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 1:01 PM, Knut Staring knutst@gmail.com wrote:

Probably export VARIABLE='something' inside .bash_profile.

export JAVA_OPTS='-Xms512m -Xmx1024m -XX:PermSize=128m

-XX:MaxPermSize=256m’

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 2:58 PM, Knut Staring knutst@gmail.com wrote:

http://apple.stackexchange.com/questions/106778/how-do-i-set-environment-variables-on-os-x


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 2:45 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

How can i do in mac 10.9?


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knutst@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 JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

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"

If you open a new terminal window, what do you get if you type this:

echo $JAVA_OPTS

Also perhaps try restarting your laptop.

i followed every suggestion but at one point sooner or later i have same
issue
Exception: java.lang.OutOfMemoryError thrown from the
UncaughtExceptionHandler in thread "http-8080-1"

Is there same problem in MAC. because in my windows machine not that
many problems.
MAC Specification
Processor 1.3 GHz Intel Core i5
Memory 4GB
OSX 10.9.5

ok i am doing that now
Thanks all

Will leave it to the more experienced Mac users on the list to say
what is best practice on Mac...

But I would think you can just create the setenv.sh file yourself in
the bin folder

Hm..maybe it needs to be double quotes:

export JAVA_OPTS="-Xmx512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m"

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 shows

-bash: export: `-Xmx1024m': not a valid identifier

-bash: export: `-XX:PermSize=128m': not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m': not a valid identifier

-bash: export: `-XX:PermSize=128m': not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m': not a valid identifier

-bash: export: `-XX:PermSize=128m': not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

Probably export VARIABLE='something' inside .bash_profile.

export JAVA_OPTS='-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m'

terminal - How do I set environment variables on OS X? - Ask Different

How can i do in mac 10.9?

Hi,
You need to configure Java with sufficient PermGen space, as
described
at Developer Resources - DHIS2

"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 and
CATALINA_OPTS in order to get Maven and Tomcat respectively to
pick it
up."

I have a war file that i put in tomcat's webapp folder it
extracted but when i try using browser localhost:8080/dhis nothing showed
up and then i check tomcat logs it henerates some error how do i resolve so
i can run dhis from webapp folder
following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10]
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1]
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2]
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread "main"
Exception: java.lang.OutOfMemoryError thrown from the
UncaughtExceptionHandler in thread "main"
17-Apr-2015 08:33:14.838 INFO [Thread-11]
org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
["http-nio-8080"]
Exception in thread "Thread-11"
Exception: java.lang.OutOfMemoryError thrown from the
UncaughtExceptionHandler in thread "Thread-11"
--
--
Regards
*Muhammad Bilal Siddiqui*

*MicroMerger IT Solutions*
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

*C* : +923325694928 *P* : +92514863592
*E* : m.bilalsiddqui@micromerger.com <m.haroon@micromerger.com>
  *W* : www.micromerger.com

*This e-mail and any files transmitted with it are confidential
to the intended recipient and may be privileged. If you are not the
intended recipient, please immediately notify the sender. Whilst we have
used Anti-Virus software to alert us to the presence of computer viruses,
we cannot guarantee that this email and any files transmitted with it are
free from them.*N : Think before print do you really need this
on paper. thanks

_______________________________________________
Mailing list: DHIS 2 Users in Launchpad
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : DHIS 2 Users in Launchpad
More help : ListHelp - Launchpad Help

--
Knut Staring
Dept. of Informatics, University of Oslo
Norway: +4791880522
Skype: knutstar
http://dhis2.org

--
--
Regards
*Muhammad Bilal Siddiqui*

*MicroMerger IT Solutions*
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

*C* : +923325694928 *P* : +92514863592
*E* : m.bilalsiddqui@micromerger.com <m.haroon@micromerger.com>
*W* : www.micromerger.com

*This e-mail and any files transmitted with it are confidential
to the intended recipient and may be privileged. If you are not the
intended recipient, please immediately notify the sender. Whilst we have
used Anti-Virus software to alert us to the presence of computer viruses,
we cannot guarantee that this email and any files transmitted with it are
free from them.*N : Think before print do you really need this
on paper. thanks

--
Knut Staring
Dept. of Informatics, University of Oslo
Norway: +4791880522
Skype: knutstar
http://dhis2.org

--
Knut Staring
Dept. of Informatics, University of Oslo
Norway: +4791880522
Skype: knutstar
http://dhis2.org

--
--
Regards
*Muhammad Bilal Siddiqui*

*MicroMerger IT Solutions*
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

*C* : +923325694928 *P* : +92514863592
*E* : m.bilalsiddqui@micromerger.com <m.haroon@micromerger.com> *W*
: www.micromerger.com

*This e-mail and any files transmitted with it are confidential to
the intended recipient and may be privileged. If you are not the intended
recipient, please immediately notify the sender. Whilst we have used
Anti-Virus software to alert us to the presence of computer viruses, we
cannot guarantee that this email and any files transmitted with it are free
from them.*N : Think before print do you really need this on paper.
thanks

--
Knut Staring
Dept. of Informatics, University of Oslo
Norway: +4791880522
Skype: knutstar
http://dhis2.org

--
Knut Staring
Dept. of Informatics, University of Oslo
Norway: +4791880522
Skype: knutstar
http://dhis2.org

--
--
Regards
*Muhammad Bilal Siddiqui*

*MicroMerger IT Solutions*
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

*C* : +923325694928 *P* : +92514863592
*E* : m.bilalsiddqui@micromerger.com <m.haroon@micromerger.com> *W* :
www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the
intended recipient and may be privileged. If you are not the intended
recipient, please immediately notify the sender. Whilst we have used
Anti-Virus software to alert us to the presence of computer viruses, we
cannot guarantee that this email and any files transmitted with it are free
from them.*N : Think before print do you really need this on paper.
thanks

--
--
Regards
*Muhammad Bilal Siddiqui*

*MicroMerger IT Solutions*
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

*C* : +923325694928 *P* : +92514863592
*E* : m.bilalsiddqui@micromerger.com <m.haroon@micromerger.com> *W* :
www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the
intended recipient and may be privileged. If you are not the intended
recipient, please immediately notify the sender. Whilst we have used
Anti-Virus software to alert us to the presence of computer viruses, we
cannot guarantee that this email and any files transmitted with it are free
from them.*N : Think before print do you really need this on paper.
thanks

--
Knut Staring
Dept. of Informatics, University of Oslo
Norway: +4791880522
Skype: knutstar
http://dhis2.org

--
--
Regards
*Muhammad Bilal Siddiqui*

*MicroMerger IT Solutions*
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

*C* : +923325694928 *P* : +92514863592
*E* : m.bilalsiddqui@micromerger.com <m.haroon@micromerger.com> *W* :
www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the
intended recipient and may be privileged. If you are not the intended
recipient, please immediately notify the sender. Whilst we have used
Anti-Virus software to alert us to the presence of computer viruses, we
cannot guarantee that this email and any files transmitted with it are free
from them.*N : Think before print do you really need this on paper. thanks

···

On Fri, Apr 17, 2015 at 6:58 PM, Muhammad Bilal Siddqui < m.bilalsiddqui@micromerger.com> wrote:

On Fri, Apr 17, 2015 at 4:35 PM, Knut Staring <knutst@gmail.com> wrote:

On Fri, Apr 17, 2015 at 6:32 PM, Muhammad Bilal Siddqui < >> m.bilalsiddqui@micromerger.com> wrote:

On Fri, Apr 17, 2015 at 1:18 PM, Muhammad Bilal Siddqui < >>> m.bilalsiddqui@micromerger.com> wrote:

On Fri, Apr 17, 2015 at 11:17 AM, Knut Staring <knutst@gmail.com> >>>> wrote:

On Fri, Apr 17, 2015 at 3:12 PM, Knut Staring <knutst@gmail.com> >>>>> wrote:

On Fri, Apr 17, 2015 at 3:04 PM, Muhammad Bilal Siddqui < >>>>>> m.bilalsiddqui@micromerger.com> wrote:

On Fri, Apr 17, 2015 at 1:01 PM, Knut Staring <knutst@gmail.com> >>>>>>> wrote:

On Fri, Apr 17, 2015 at 2:58 PM, Knut Staring <knutst@gmail.com> >>>>>>>> wrote:

On Fri, Apr 17, 2015 at 2:45 PM, Muhammad Bilal Siddqui < >>>>>>>>> m.bilalsiddqui@micromerger.com> wrote:

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring <knutst@gmail.com> >>>>>>>>>> wrote:

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui < >>>>>>>>>>> m.bilalsiddqui@micromerger.com> wrote:

--
Knut Staring
Dept. of Informatics, University of Oslo
Norway: +4791880522
Skype: knutstar

And I dont’t think you need the first line:

#!/bin/bash

···

On Fri, Apr 17, 2015 at 7:04 PM, Knut Staring knutst@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, Knut Staring knutst@gmail.com wrote:


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 6:58 PM, Muhammad Bilal Siddqui m.bilalsiddqui@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 -Xmx2048m”

export JAVA_OPTS=“-Xms512m -Xmx2048m”

export MAVEN_OPTS=“-Xms512m -Xmx2048m”


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 4:35 PM, Knut Staring knutst@gmail.com wrote:

If you open a new terminal window, what do you get if you type this:

echo $JAVA_OPTS

Also perhaps try restarting your laptop.

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 6:32 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

i followed every suggestion but at one point sooner or later i have same issue
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “http-8080-1”

Is there same problem in MAC. because in my windows machine not that many problems.
MAC Specification
Processor 1.3 GHz Intel Core i5
Memory 4GB

OSX 10.9.5


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 1:18 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

ok i am doing that now

Thanks all

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 11:17 AM, Knut Staring knutst@gmail.com wrote:

Will leave it to the more experienced Mac users on the list to say what is best practice on Mac…

But I would think you can just create the setenv.sh file yourself in the bin folder

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 3:12 PM, Knut Staring knutst@gmail.com wrote:

Hm…maybe it needs to be double quotes:
export JAVA_OPTS=“-Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m”


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 3:04 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

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 shows

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 1:01 PM, Knut Staring knutst@gmail.com wrote:

Probably export VARIABLE='something' inside .bash_profile.

export JAVA_OPTS='-Xms512m -Xmx1024m -XX:PermSize=128m

-XX:MaxPermSize=256m’

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 2:58 PM, Knut Staring knutst@gmail.com wrote:

http://apple.stackexchange.com/questions/106778/how-do-i-set-environment-variables-on-os-x


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 2:45 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

How can i do in mac 10.9?


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knutst@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 JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

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 7:05 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I wrote that before
export JAVA_OPTS= “-Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m”
and when i try to start server not started and invalid heap error generated

On Fri, Apr 17, 2015 at 5:04 PM, Knut Staring knutst@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”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 7:01 PM, Knut Staring knutst@gmail.com wrote:


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 6:58 PM, Muhammad Bilal Siddqui m.bilalsiddqui@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 -Xmx2048m”

export JAVA_OPTS=“-Xms512m -Xmx2048m”

export MAVEN_OPTS=“-Xms512m -Xmx2048m”


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 4:35 PM, Knut Staring knutst@gmail.com wrote:

If you open a new terminal window, what do you get if you type this:

echo $JAVA_OPTS

Also perhaps try restarting your laptop.

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 6:32 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

i followed every suggestion but at one point sooner or later i have same issue
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “http-8080-1”

Is there same problem in MAC. because in my windows machine not that many problems.
MAC Specification
Processor 1.3 GHz Intel Core i5
Memory 4GB

OSX 10.9.5


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 1:18 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

ok i am doing that now

Thanks all

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 11:17 AM, Knut Staring knutst@gmail.com wrote:

Will leave it to the more experienced Mac users on the list to say what is best practice on Mac…

But I would think you can just create the setenv.sh file yourself in the bin folder

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 3:12 PM, Knut Staring knutst@gmail.com wrote:

Hm…maybe it needs to be double quotes:
export JAVA_OPTS=“-Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m”


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 3:04 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

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 shows

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 1:01 PM, Knut Staring knutst@gmail.com wrote:

Probably export VARIABLE='something' inside .bash_profile.

export JAVA_OPTS='-Xms512m -Xmx1024m -XX:PermSize=128m

-XX:MaxPermSize=256m’

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 2:58 PM, Knut Staring knutst@gmail.com wrote:

http://apple.stackexchange.com/questions/106778/how-do-i-set-environment-variables-on-os-x


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 2:45 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

How can i do in mac 10.9?


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knutst@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 JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

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 some suggestion about that memory params that how they will assign so they cannot overflow and yes i think that info will provide some experience mac user. I am waiting for that.

Thanks @Knut Staring and @Jason Pickering and @all for that much guidelines and help

···

On Fri, Apr 17, 2015 at 5:15 PM, Knut Staring knutst@gmail.com wrote:

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 7:05 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I wrote that before
export JAVA_OPTS= “-Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m”
and when i try to start server not started and invalid heap error generated


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 5:04 PM, Knut Staring knutst@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”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 7:01 PM, Knut Staring knutst@gmail.com wrote:


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 6:58 PM, Muhammad Bilal Siddqui m.bilalsiddqui@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 -Xmx2048m”

export JAVA_OPTS=“-Xms512m -Xmx2048m”

export MAVEN_OPTS=“-Xms512m -Xmx2048m”


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 4:35 PM, Knut Staring knutst@gmail.com wrote:

If you open a new terminal window, what do you get if you type this:

echo $JAVA_OPTS

Also perhaps try restarting your laptop.

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 6:32 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

i followed every suggestion but at one point sooner or later i have same issue
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “http-8080-1”

Is there same problem in MAC. because in my windows machine not that many problems.
MAC Specification
Processor 1.3 GHz Intel Core i5
Memory 4GB

OSX 10.9.5


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 1:18 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

ok i am doing that now

Thanks all

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 11:17 AM, Knut Staring knutst@gmail.com wrote:

Will leave it to the more experienced Mac users on the list to say what is best practice on Mac…

But I would think you can just create the setenv.sh file yourself in the bin folder

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 3:12 PM, Knut Staring knutst@gmail.com wrote:

Hm…maybe it needs to be double quotes:
export JAVA_OPTS=“-Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m”


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 3:04 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

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 shows

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 1:01 PM, Knut Staring knutst@gmail.com wrote:

Probably export VARIABLE='something' inside .bash_profile.

export JAVA_OPTS='-Xms512m -Xmx1024m -XX:PermSize=128m

-XX:MaxPermSize=256m’

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 2:58 PM, Knut Staring knutst@gmail.com wrote:

http://apple.stackexchange.com/questions/106778/how-do-i-set-environment-variables-on-os-x


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 2:45 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

How can i do in mac 10.9?


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knutst@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 JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

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 m.bilalsiddqui@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 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 some suggestion about that memory params that how they will assign so they cannot overflow and yes i think that info will provide some experience mac user. I am waiting for that.

Thanks @Knut Staring and @Jason Pickering and @all for that much guidelines and help

On Fri, Apr 17, 2015 at 5:15 PM, Knut Staring knutst@gmail.com wrote:

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.

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 7:05 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I wrote that before
export JAVA_OPTS= “-Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m”
and when i try to start server not started and invalid heap error generated


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 5:04 PM, Knut Staring knutst@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”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 7:01 PM, Knut Staring knutst@gmail.com wrote:


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 6:58 PM, Muhammad Bilal Siddqui m.bilalsiddqui@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 -Xmx2048m”

export JAVA_OPTS=“-Xms512m -Xmx2048m”

export MAVEN_OPTS=“-Xms512m -Xmx2048m”


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 4:35 PM, Knut Staring knutst@gmail.com wrote:

If you open a new terminal window, what do you get if you type this:

echo $JAVA_OPTS

Also perhaps try restarting your laptop.

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 6:32 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

i followed every suggestion but at one point sooner or later i have same issue
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “http-8080-1”

Is there same problem in MAC. because in my windows machine not that many problems.
MAC Specification
Processor 1.3 GHz Intel Core i5
Memory 4GB

OSX 10.9.5


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 1:18 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

ok i am doing that now

Thanks all

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 11:17 AM, Knut Staring knutst@gmail.com wrote:

Will leave it to the more experienced Mac users on the list to say what is best practice on Mac…

But I would think you can just create the setenv.sh file yourself in the bin folder

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 3:12 PM, Knut Staring knutst@gmail.com wrote:

Hm…maybe it needs to be double quotes:
export JAVA_OPTS=“-Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m”


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 3:04 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

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 shows

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 1:01 PM, Knut Staring knutst@gmail.com wrote:

Probably export VARIABLE='something' inside .bash_profile.

export JAVA_OPTS='-Xms512m -Xmx1024m -XX:PermSize=128m

-XX:MaxPermSize=256m’

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 2:58 PM, Knut Staring knutst@gmail.com wrote:

http://apple.stackexchange.com/questions/106778/how-do-i-set-environment-variables-on-os-x


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 2:45 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

How can i do in mac 10.9?


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knutst@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 JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

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.bilalsiddqui@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 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 some suggestion about that memory params that how they will assign so they cannot overflow and yes i think that info will provide some experience mac user. I am waiting for that.

Thanks @Knut Staring and @Jason Pickering and @all for that much guidelines and help

On Fri, Apr 17, 2015 at 5:15 PM, Knut Staring knutst@gmail.com wrote:

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.

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 7:05 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I wrote that before
export JAVA_OPTS= “-Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m”
and when i try to start server not started and invalid heap error generated


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 5:04 PM, Knut Staring knutst@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”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 7:01 PM, Knut Staring knutst@gmail.com wrote:


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 6:58 PM, Muhammad Bilal Siddqui m.bilalsiddqui@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 -Xmx2048m”

export JAVA_OPTS=“-Xms512m -Xmx2048m”

export MAVEN_OPTS=“-Xms512m -Xmx2048m”


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 4:35 PM, Knut Staring knutst@gmail.com wrote:

If you open a new terminal window, what do you get if you type this:

echo $JAVA_OPTS

Also perhaps try restarting your laptop.

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 6:32 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

i followed every suggestion but at one point sooner or later i have same issue
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “http-8080-1”

Is there same problem in MAC. because in my windows machine not that many problems.
MAC Specification
Processor 1.3 GHz Intel Core i5
Memory 4GB

OSX 10.9.5


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 1:18 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

ok i am doing that now

Thanks all

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 11:17 AM, Knut Staring knutst@gmail.com wrote:

Will leave it to the more experienced Mac users on the list to say what is best practice on Mac…

But I would think you can just create the setenv.sh file yourself in the bin folder

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 3:12 PM, Knut Staring knutst@gmail.com wrote:

Hm…maybe it needs to be double quotes:
export JAVA_OPTS=“-Xmx512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m”


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 3:04 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

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 shows

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier

-bash: export: `-Xmx1024m’: not a valid identifier

-bash: export: `-XX:PermSize=128m’: not a valid identifier

-bash: export: `-XX:MaxPermSize=256m’': not a valid identifier


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 1:01 PM, Knut Staring knutst@gmail.com wrote:

Probably export VARIABLE='something' inside .bash_profile.

export JAVA_OPTS='-Xms512m -Xmx1024m -XX:PermSize=128m

-XX:MaxPermSize=256m’

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 2:58 PM, Knut Staring knutst@gmail.com wrote:

http://apple.stackexchange.com/questions/106778/how-do-i-set-environment-variables-on-os-x


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 2:45 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

How can i do in mac 10.9?


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring knutst@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 JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m. You might have to specify MAVEN_OPTS and
CATALINA_OPTS in order to get Maven and Tomcat respectively to pick it
up.”

Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks

On Fri, Apr 17, 2015 at 1:51 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

I have a war file that i put in tomcat’s webapp folder it extracted but when i try using browser localhost:8080/dhis nothing showed up and then i check tomcat logs it henerates some error how do i resolve so i can run dhis from webapp folder

following is a log

17-Apr-2015 08:25:15.109 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:17.314 SEVERE [http-nio-8080-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

17-Apr-2015 08:25:32.279 SEVERE [http-nio-8080-exec-2] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
java.lang.OutOfMemoryError: PermGen space

Exception in thread “main”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
17-Apr-2015 08:33:14.838 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
Exception in thread “Thread-11”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-11”


Regards
Muhammad Bilal Siddiqui

MicroMerger IT Solutions
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

C : +923325694928 P : +92514863592
E : m.bilalsiddqui@micromerger.com W : www.micromerger.com

*This e-mail and any files transmitted with it are confidential to the intended recipient and may be privileged. If you are not the intended recipient, please immediately notify the sender. Whilst we have used Anti-Virus software to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from them.*N : Think before print do you really need this on paper. thanks


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

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org