Problem with PermGen space

Hi,

I'm trying to run DHIS Live on a Win8 platform with the default empty
H2 db, but for some reason keep running into OutOfMemory:
PermGenSpace.

I find this strange to begin with, but especially that it does not
seem to help to create a JAVA_OPTS variable with values as specified
here:

It is still complaining after reboot, even when I start it with "java
-jar dhis-live.jar" in a command window after verifying the
environment variable using "echo %JAVA_OPTS"

Any ideas?

···

--
Knut Staring
Dept. of Informatics, University of Oslo
+4791880522

Hi,

just checking… Its the max perm size option that controls perm gen space, did you include it in the value? Also, try setting it to 512 mb.

-XX:MaxPermSize=512m

Have you checked in the About page in DHIS 2 that the java opts env is being picked up?

Lars

···

On Wed, Feb 20, 2013 at 5:00 PM, Knut Staring knutst@gmail.com wrote:

Hi,

I’m trying to run DHIS Live on a Win8 platform with the default empty

H2 db, but for some reason keep running into OutOfMemory:

PermGenSpace.

I find this strange to begin with, but especially that it does not

seem to help to create a JAVA_OPTS variable with values as specified

here:

http://dhis2.org/development

It is still complaining after reboot, even when I start it with "java

-jar dhis-live.jar" in a command window after verifying the

environment variable using “echo %JAVA_OPTS”

Any ideas?

Knut Staring

Dept. of Informatics, University of Oslo

+4791880522

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

Hi,

just checking.. Its the max perm size option that controls perm gen space,
did you include it in the value? Also, try setting it to 512 mb.

-XX:MaxPermSize=512m

Just to be sure why don't you try pass that option directly through
the java command line, ie
java -XX:MaxPermSize=512m -jar dhis-live.jar

Have you checked in the About page in DHIS 2 that the java opts env is being
picked up?

I guess he's not getting as far as being able to check that :frowning:

···

On 20 February 2013 16:51, Lars Helge Øverland <larshelge@gmail.com> wrote:

Lars

On Wed, Feb 20, 2013 at 5:00 PM, Knut Staring <knutst@gmail.com> wrote:

Hi,

I'm trying to run DHIS Live on a Win8 platform with the default empty
H2 db, but for some reason keep running into OutOfMemory:
PermGenSpace.

I find this strange to begin with, but especially that it does not
seem to help to create a JAVA_OPTS variable with values as specified
here:
Developer Resources - DHIS2

It is still complaining after reboot, even when I start it with "java
-jar dhis-live.jar" in a command window after verifying the
environment variable using "echo %JAVA_OPTS"

Any ideas?

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

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

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

Hi,

just checking.. Its the max perm size option that controls perm gen space,
did you include it in the value? Also, try setting it to 512 mb.

-XX:MaxPermSize=512m

Just to be sure why don't you try pass that option directly through
the java command line, ie
java -XX:MaxPermSize=512m -jar dhis-live.jar

Thanks, that's helpful, but how can I include this in a clickable
shortcut that I can put on the dashboard for the user? I don't want to
require them to open a command window..

It's very strange to me that Java still does not pick up on the
environment variable...

Knut

···

On Wed, Feb 20, 2013 at 11:59 AM, Bob Jolliffe <bobjolliffe@gmail.com> wrote:

On 20 February 2013 16:51, Lars Helge Øverland <larshelge@gmail.com> wrote:

Have you checked in the About page in DHIS 2 that the java opts env is being
picked up?

I guess he's not getting as far as being able to check that :frowning:

Lars

On Wed, Feb 20, 2013 at 5:00 PM, Knut Staring <knutst@gmail.com> wrote:

Hi,

I'm trying to run DHIS Live on a Win8 platform with the default empty
H2 db, but for some reason keep running into OutOfMemory:
PermGenSpace.

I find this strange to begin with, but especially that it does not
seem to help to create a JAVA_OPTS variable with values as specified
here:
Developer Resources - DHIS2

It is still complaining after reboot, even when I start it with "java
-jar dhis-live.jar" in a command window after verifying the
environment variable using "echo %JAVA_OPTS"

Any ideas?

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

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

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

--
Knut Staring
Dept. of Informatics, University of Oslo
+4791880522