insufficent heap memory error with cq6-author-4502.jar on 8GB RAM physical machine | Community
Skip to main content
Level 2
Oct 16, 2015 2:28 AM UTC
Solved

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

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Oct 16, 2015 2:28 AM UTC

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

7 replies

joerghoh
joerghohAccepted solution
Employee
Oct 16, 2015 2:28 AM UTC

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

Translate
smacdonald2008
Level 10
Oct 16, 2015 2:28 AM UTC

Please take a look at this AEM doc topic:

https://docs.adobe.com/docs/en/cq/5-6-1/deploying/performance.html

Translate
Level 2
Oct 16, 2015 2:28 AM UTC

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

Translate
Level 2
Oct 16, 2015 2:28 AM UTC

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

Translate
joerghoh
Employee
Oct 16, 2015 2:28 AM UTC

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.

Translate
Level 3
Aug 22, 2021 5:44 AM UTC

i tried in this way also i still facing same problem

 

Translate
Level 2
Oct 16, 2015 2:28 AM UTC

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

Translate