CQ6 is running with two JVM instances | Community
Skip to main content
VINAYAKS
Level 2
October 16, 2015
Solved

CQ6 is running with two JVM instances

  • October 16, 2015
  • 4 replies
  • 1511 views

Hello Everyone,

1. By double clicking the jar file, AEM instance opened with single JVM . Please refer the file1 in attachments.

2. By running with "quickstart" batch file, AEM instance opened with two JVMs. Please refer the file2 in attachments.

Could you please anyone explain why the behavior is different in above cases ?

 

Thanks & Regards,

Vinayak S

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by sarchiz

Hi Vinayak,

 

Looking at the paths, I can see that the first JVM is launched from what appears to be an IBM JRE while the second from a standard Oracle one. You can set your file associations and JAVA_HOME environment variable to point to the same Java installation and the behavior will be consistent.

Once that is done, could you re-run the quickstart by both double clicking it and running the batch script and see if the difference is still there?

4 replies

sarchizAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Hi Vinayak,

 

Looking at the paths, I can see that the first JVM is launched from what appears to be an IBM JRE while the second from a standard Oracle one. You can set your file associations and JAVA_HOME environment variable to point to the same Java installation and the behavior will be consistent.

Once that is done, could you re-run the quickstart by both double clicking it and running the batch script and see if the difference is still there?

VINAYAKS
VINAYAKSAuthor
Level 2
October 16, 2015

Hi Alex,

How can you say first JVM launched from IBM JRE and second one from Stardard Oracle one ?

In my classpath variable I am pointing to single java installation directory. Still experiencing same behavior which I explained in previous post.

 

Thanks & Regards,

Vinayak S

VINAYAKS
VINAYAKSAuthor
Level 2
October 16, 2015

Hi Alex,

How can you say first JVM launched from IBM JRE and second one from Stardard Oracle one ?

In my classpath variable I am pointing to single java installation directory. Still experiencing same behavior which I explained in previous post.

 

Thanks & Regards,

Vinayak S

Adobe Employee
October 16, 2015

Hi Vinyak,

Your first screenshot indicates that the JVM is running from Program Files\IBM\Java60, while the second is running from Program Files\Java.

In the case of running quickstart from the batch script, the second JVM instance is there because it was forked due to insufficient heap (the default low memory action is set to fork). To solve this, increase your heap size by altering this section of the script:

::* default JVM options
set CQ_JVM_OPTS=-Xmx1024m -XX:MaxPermSize=256M

Try doubling it to 2 gigs and see if the behavior persists.