Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

7 Replies

Avatar

Correct answer by
Employee Advisor

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

Avatar

Level 2

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

Avatar

Level 2

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

Avatar

Employee Advisor

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

Level 4

i tried in this way also i still facing same problem

 

Avatar

Level 2

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