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

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)

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)

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.