insufficent heap memory error with cq6-author-4502.jar on 8GB RAM physical machine

Avatar

Avatar

matthewh3000790

Avatar

matthewh3000790

matthewh3000790

15-10-2015

Please let me know what might help get this app running. It's been a few years since I've supported any Java app.

My OS: CentOS 7 x86_64 updated as of today.

java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

When I run

java -Xmx1024M -jar cq6-author-4502.jar

The service can't quite start.

Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]
**** WARNING: insufficent heap memory ******************************************
The JVM reports 910 MB but we recommend at least 1024 MB +/- 20
Use your JVM's heap size option (like -Xmx1024M) to set that size.
Will fork a JVM to get enough memory.
********************************************************************************
**** WARNING: insufficent PermGen memory ***************************************
The JVM MBean:PS Perm Gen reports 82 MB but we recommend at least 256 MB +/- 20
Use your JVM's PermGen size option (like -XX:MaxPermSize=256M) to set that size.
Will fork a JVM to get enough memory.
********************************************************************************
Available memory below specified limits and low-memory action set to fork, will fork to get enough memory
Preparing to fork JVM, OS name=Linux, isWindows=false
Forking JVM: [/usr/java/jdk1.7.0_79/jre/bin/java, -Xmx1024m, -XX:MaxPermSize=256m, -jar, /home/msh/cq6-author-4502.jar, -nofork, -pt, CHILD]
Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]
**** WARNING: insufficent heap memory ******************************************
The JVM reports 910 MB but we recommend at least 1024 MB +/- 20
Use your JVM's heap size option (like -Xmx1024M) to set that size.
Will fork a JVM to get enough memory.
********************************************************************************
The JVM MBean:PS Perm Gen reports a maximum size of 256 MB, meets our expectation of 256 MB +/- 20
Available memory below specified limits and low-memory action set to fork, will fork to get enough memory
Not forking JVM as -nofork option is set
Setting properties from filename '/home/msh/cq6-author-4502.jar'
Verbose option not active, closing stdin and redirecting stdout and stderr

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K
Jörg_Hoh
Employee

15-10-2015

Hi,

I recommend to start with 1.5G of heap. So your command line looks like this:

java -Xmx1536M -jar cq6-author-4502.jar

kind regards,
Jörg

Answers (5)

Answers (5)

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K
Jörg_Hoh
Employee

15-10-2015

That's strange.

Can you first unpack the Jar like this:

java -jar cq6-author-4502.jar -unpack

and then try to use the start script:

cd crx-quickstart/bin
./start

I use it that way and I never had problems with it.

Avatar

Avatar

matthewh3000790

Avatar

matthewh3000790

matthewh3000790

15-10-2015

Running crx-quickstart/bin/start worked. Thanks.

Avatar

Avatar

matthewh3000790

Avatar

matthewh3000790

matthewh3000790

15-10-2015

I'm just trying to install the app so I know how to install the app. I'm not using a production machine.

Avatar

Avatar

matthewh3000790

Avatar

matthewh3000790

matthewh3000790

15-10-2015

Yes, I tried using more memory. I tried 2048 then 4096 and this had no effect. 

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

15-10-2015