On Fri, Apr 17, 2015 at 6:58 PM, Muhammad Bilal Siddqui < m.bilalsidd...@micromerger.com> wrote:
> echo $JAVA_OPTS > this shows blank line > also after restart shows blank line. > > i created file setenv.sh under bin folder in tomcat > file contents are follow > #!/bin/bash > > export CATALINA_OPTS="-Xms512m -Xmx2048m" > export JAVA_OPTS="-Xms512m -Xmx2048m" > export MAVEN_OPTS="-Xms512m -Xmx2048m" > > On Fri, Apr 17, 2015 at 4:35 PM, Knut Staring <knu...@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.bilalsidd...@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.bilalsidd...@micromerger.com> wrote: >>> >>>> ok i am doing that now >>>> Thanks all >>>> >>>> On Fri, Apr 17, 2015 at 11:17 AM, Knut Staring <knu...@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 <knu...@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.bilalsidd...@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 <knu...@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 <knu...@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.bilalsidd...@micromerger.com> wrote: >>>>>>>>> >>>>>>>>>> How can i do in mac 10.9? >>>>>>>>>> >>>>>>>>>> On Fri, Apr 17, 2015 at 10:05 AM, Knut Staring <knu...@gmail.com> >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>>> Hi, >>>>>>>>>>> You 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.bilalsidd...@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.bilalsidd...@micromerger.com <m.har...@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.bilalsidd...@micromerger.com <m.har...@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.bilalsidd...@micromerger.com <m.har...@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.bilalsidd...@micromerger.com <m.har...@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.bilalsidd...@micromerger.com <m.har...@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.bilalsidd...@micromerger.com <m.har...@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
_______________________________________________ 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