← Back to team overview

dhis2-users team mailing list archive

Re: Can't run dhis2 from .war file

 

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@xxxxxxxxxxxxxxx> wrote:

> How can i do in mac 10.9?
>
> On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring <knutst@xxxxxxxxx> 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@xxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx <m.haroon@xxxxxxxxxxxxxxx>  *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@xxxxxxxxxxxxxxxxxxx
>>> 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@xxxxxxxxxxxxxxx <m.haroon@xxxxxxxxxxxxxxx>  *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

Follow ups

References