Can't run dhis2 from .war file

Mac 10.9.5 (mavericks)
Java 7 (1.7)

···

On Sat, Apr 18, 2015 at 5:57 AM, Knut Staring knutst@gmail.com wrote:

Hi Muhammad,

Can I ask which version of Java you’re using?

Knut

On Fri, Apr 17, 2015 at 7:31 PM, Muhammad Bilal Siddqui m.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


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

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


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

Thanks - I was asking because i was told the PermGen should no longer be an issue with Java 8.

Knut

···

On Mon, Apr 20, 2015 at 12:52 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

Mac 10.9.5 (mavericks)
Java 7 (1.7)

On Sat, Apr 18, 2015 at 5:57 AM, Knut Staring knutst@gmail.com wrote:

Hi Muhammad,

Can I ask which version of Java you’re using?

Knut

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: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


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

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

PermGen was completely removed in 1.8.

···

On Mon, Apr 20, 2015 at 4:29 PM, Knut Staring knutst@gmail.com wrote:

Knut

Thanks - I was asking because i was told the PermGen should no longer be an issue with Java 8.


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


Morten

On Mon, Apr 20, 2015 at 12:52 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

Mac 10.9.5 (mavericks)
Java 7 (1.7)


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Sat, Apr 18, 2015 at 5:57 AM, Knut Staring knutst@gmail.com wrote:

Hi Muhammad,

Can I ask which version of Java you’re using?

Knut

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: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


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

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

Thanks for info.

I checked it is very good news. Thanks

···

On Mon, Apr 20, 2015 at 12:29 PM, Knut Staring knutst@gmail.com wrote:

Knut

Thanks - I was asking because i was told the PermGen should no longer be an issue with Java 8.

On Mon, Apr 20, 2015 at 12:52 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

Mac 10.9.5 (mavericks)
Java 7 (1.7)


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Sat, Apr 18, 2015 at 5:57 AM, Knut Staring knutst@gmail.com wrote:

Hi Muhammad,

Can I ask which version of Java you’re using?

Knut

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: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


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

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


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 Muhammad,

not sure if you are still having the same problem. If you are just trying to run dhis2 on your local machine for demo/testing you can have a look at this

https://github.com/pgracio/dhis2-docker

Best regards,
/Paulo

···

On 20 April 2015 at 11:39, Morten Olav Hansen mortenoh@gmail.com wrote:

PermGen was completely removed in 1.8.


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


Morten

On Mon, Apr 20, 2015 at 4:29 PM, Knut Staring knutst@gmail.com wrote:

Knut

Thanks - I was asking because i was told the PermGen should no longer be an issue with Java 8.


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 Mon, Apr 20, 2015 at 12:52 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

Mac 10.9.5 (mavericks)
Java 7 (1.7)


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Sat, Apr 18, 2015 at 5:57 AM, Knut Staring knutst@gmail.com wrote:

Hi Muhammad,

Can I ask which version of Java you’re using?

Knut

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: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


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

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

Paulo Grácio

Thanks. Well i solved my problems by above suggestion about increase heap memory allocation. after that i am not face any difficulties. Moreover after upgrade Java 8 that problem never occur yet

···

On Fri, Apr 24, 2015 at 8:16 PM, Paulo Grácio paulogracio@gmail.com wrote:

Hi Muhammad,

not sure if you are still having the same problem. If you are just trying to run dhis2 on your local machine for demo/testing you can have a look at this

https://github.com/pgracio/dhis2-docker

Best regards,
/Paulo

On 20 April 2015 at 11:39, Morten Olav Hansen mortenoh@gmail.com wrote:

PermGen was completely removed in 1.8.


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

Paulo Grácio


Morten

On Mon, Apr 20, 2015 at 4:29 PM, Knut Staring knutst@gmail.com wrote:

Knut

Thanks - I was asking because i was told the PermGen should no longer be an issue with Java 8.


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 Mon, Apr 20, 2015 at 12:52 PM, Muhammad Bilal Siddqui m.bilalsiddqui@micromerger.com wrote:

Mac 10.9.5 (mavericks)
Java 7 (1.7)


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Sat, Apr 18, 2015 at 5:57 AM, Knut Staring knutst@gmail.com wrote:

Hi Muhammad,

Can I ask which version of Java you’re using?

Knut

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: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


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

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


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